systempuntoout
systempuntoout

Reputation: 74134

How to detect if an Android device has been touched or moved

Is it possible to know if the phone has been touched/moved (lifting it for example), using some Events?
How would you code it?

Upvotes: 2

Views: 1175

Answers (1)

anto8421
anto8421

Reputation: 32

I think you are referring to the Sensors API in android. You can find info about the orientation of the device. Here's the guide i used. Thanks to Marko Gargenta

http://marakana.com/forums/android/android_examples/43.html

Upvotes: 3

Related Questions