Detect android device movement!


Assume my device does not have any movement or is on the table.i want to detect when my device got any can i do that?(shaking is not my mean)


I assume you mean something along the line of using the accelerometer. If so check out the Unity Script Reference page here.

Check accelerometer, gyro, compass. Prime31 has a DeviceMotion plugin.

Unity has many ways to access it as well, check if any of these values change in the tick/update.

Maybe check location if you have that on. If you make a method to pull all the values you can check if they move by a certain amount and thus is will check if it moved.