Get X, Y & Z Direction through Accelerometer in Android Create Accelerometer Sensor Event in Android Shake to call Next Page Activity in Android Note Download ADT Plugin Here. Here I am using, OS : Linux (Ubuntu 12.04) Eclipse : Juno (Version 4.2.0) Android API Level : 3 to 'n' as per need Emulator API Level : It will be displayed in output image A. Get X, Y & Z Direction through Accelerometer in Android Step 1 : Select File -> New -> Project -> Android Application Project (or) Android Project. Fill the forms and click "Finish" button. If you have any doubt regarding create a new project Click Here . Step 2 : Open res -> layout -> activity_main.xml (or) main.xml and add following code : < RelativeLayout xmlns:android =" http://schemas.android.com/apk/res/android" xmlns:tools =" http://schemas.android.com/tools" android:id =" @+id/rl" android:l