Which sensors should I use in order to detect if the device is in the user’s hand or it is on a table? Any tutorials will be appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use the Accelerometer sensor.
Web is full of tutorial and code examples:
android-sdk-accelerometer-example-tutorial
github.com/commonsguy/cw-andtutorials/tree/master/38-Sensors
AndroidSensor/article.html
an-android-accelerometer-example
Orientation sensor
and here ther’s a good white paper on detecting user activities.