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
New Contributor
DevSJ
Posts: 8
Registered: ‎08-16-2010
My Device: Not Specified

How to track shake event in blackberry?

Hi, Everyone!

 

I need to create an app where i need to implement some action when blackberry device is shaked.  But I don't know how to track that shake event. I'm new in  development for BB, so some code example or some algorythm for this will be most welcome. I found on forums many advices such as 'Look at AccelerometerDemo Sample' - I saw this sample and didn't find there anything that can help me to program shake event.

Please use plain text.
Developer
daveyem
Posts: 31
Registered: ‎03-01-2010
My Device: 9300
My Carrier: O2

Re: How to track shake event in blackberry?

I don't believe there is a shake event.

 

See this post for more info:

 

http://supportforums.blackberry.com/t5/Java-Development/iPhone-Shake-effect-in-Storm/m-p/194280

Please use plain text.
New Contributor
DevSJ
Posts: 8
Registered: ‎08-16-2010
My Device: Not Specified

Re: How to track shake event in blackberry?

Thanks for information! I have looked at that post and still don't know how to program using of  the X,Y,Z movements coming from the accelerometer for determine a shake... May be someone has code example for this?

Please use plain text.