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

Adobe AIR Development

Reply
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -
Accepted Solution

Using Accelerometer in BB10

I want to create a game which will respond to tilting of the BB10 device(almost similar interaction to classical Labyrinth game).

 

I want to undretsand if this is possible in BB10 using AIR SDK, I guess it requires Accelerometer but I could not find the API to access Accelerometer sensor.

 

Any sample code would be highly appritiated!

 

Sangram

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon
Please use plain text.
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -

Re: Using Accelerometer in BB10

Thanks for the reply.

 

I was wondering why the same sensor API not available in AIR SDK API for BB10

 

 AIR API for BB10

 


Waiting to check if I am eligible to receive BB10 dev alpha and will test it on device directly!

 

Sangram

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Using Accelerometer in BB10

Because those APIs (and sensors) are unique to BB10. AIR SDK leverages existing AIR API for sensors including geolocation and accelerometer.
Please use plain text.