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
Contributor
Posts: 36
Registered: ‎08-15-2013
My Device: Blackberry 10

How to use accelerometer to detect vibration

Hi, i want to make Step Counter in Blackberry. I want my counter up when user walk. But i don't know how to detect vibration using Accelerometer like SensorEvent in Android. Anybody can help me ?

Contributor
Posts: 49
Registered: ‎12-29-2011
My Device: 9800

Re: How to use accelerometer to detect vibration

yes, there is an interface AccelerometerListener and class AccelerometerSensor.

you can get the notification and raw data about the user movement using this.

here is a link which may some how replicate your query and can be helpful : 

http://stackoverflow.com/questions/13653780/blackberry-accelerometer-data-for-rotation

 

 

Thanks,