If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Java Development

Reply
Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Accelerometer reading on Blackberry 6.0 devices

Hi,

I need to integrate Blackberry device's accelerometer in my application. I added the code as per sample application provided on blakcberry site. But x,y,z value i receive is different . 

X =  -30

Y =  -241

Z =  961

 

but on BB10 device i receive is something like

x = 1.2

Y = 2.1

Z= 0.3

 

How can i convert (x,y,z) -> (-30,-241,961) to BB10 reading

 

 

Please use plain text.