I am new to Android.
I am having Accelerometer sensor data in one activity. I stopped the SensorManager after a shake has been detected. Now I need to restart the activity automatically after 5 seconds, the SensorManager has stopped. Is it possible?
or is it possible to start the current activity from the same?
Can somebody help me with this?
Thanks in Advance :)
Use this code when
SensorManagerhas stopped. It will restart the Activity after 5 sec whenSensorManagerhas stopped.