I am new to android and I am currently implementing a class which extends from surface view class and implements surface holder.
I just want to get the points like x-axis, y-axis from accelerometer and pass it on to a draw method which will then display the image on the received postions.
So, how can i get these points? I implemented the accelerometer based on this answer.
Moving an image using Accelerometer of android
Now I want to get the points from the accelerometer class. How can I do this?
Thanks in advance