Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

BlackBerry 10 sensor docs for android ?

BlackBerry 10 sensor docs for android runtime ? How is coordinate system hadled, does it changes when orientation change etc ?

Developer
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook
My Carrier: T-Mobile

Re: BlackBerry 10 sensor docs for android ?

[ Edited ]

I think what you are looking for is here: http://goo.gl/pYzug

You can check if what you are using is supported or not.

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: BlackBerry 10 sensor docs for android ?

I can't find what I need. In android SensorEvent returns 

 

values[0]: Acceleration minus Gx on the x-axis

values[1]: Acceleration minus Gy on the y-axis

values[2]: Acceleration minus Gz on the z-axis

 

but when I set my x,y and z variables to these values, values of my variables are set to wrong axis (y is set to x axis) when device is in portrait mode etc. In landcape same story, inverted again.