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: 33
Registered: ‎06-16-2010
My Device: Blackberry 8520
My Carrier: Rogers
Accepted Solution

Detect a Shake from the accelerometer? Anyone can provide a sample method?

Hello,

 

I'm trying to use the accelerometer to detect a shake, anyone can provide a sample method? Thanks a lot!

BlackBerry Development Advisor
Posts: 15,809
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Detect a Shake from the accelerometer? Anyone can provide a sample method?

Have a look at the accelerometerdemo included with the BlackBerry JDE and BlackBerry Java SDK.  It shows how to capture movement input.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Contributor
Posts: 33
Registered: ‎06-16-2010
My Device: Blackberry 8520
My Carrier: Rogers

Re: Detect a Shake from the accelerometer? Anyone can provide a sample method?

Thanks Mark, I solved this problem already, just forget to mark it solved here.Smiley Happy

Developer
Posts: 201
Registered: ‎12-17-2010
My Device: Not Specified

Re: Detect a Shake from the accelerometer? Anyone can provide a sample method?

hi,

I read that you had solved shake issue.

can you help me solve the same.

I cant find that how could I detect the shake event...

so please become helpfull.

 

Thanks & regards

New Contributor
Posts: 2
Registered: ‎02-22-2014
My Device: bold
My Carrier: docomo

Re: Detect a Shake from the accelerometer? Anyone can provide a sample method?

Hi 

I would like to implement shake listener in blackberry If any one  have idea please help me.

 

Thanks in Advance 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Detect a Shake from the accelerometer? Anyone can provide a sample method?

Have you looked at the accelerometerdemo that Mark mentioned?

New Contributor
Posts: 2
Registered: ‎02-22-2014
My Device: bold
My Carrier: docomo

Re: Detect a Shake from the accelerometer? Anyone can provide a sample method?

Dear peter,

 

Thansk for your replay,i have seen accelometer application but i want exact code or logic for detect shake in blackberry ,

Please halp me i new to blackberry development.

 

Thanks in Advance