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

Posts: 39
Registered: ‎08-15-2013
My Device: Blackberry 10
My Carrier: XL

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 ?

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

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 :