I need to add a feature to our mobile application which is “to disable the mobile device while user is driving at certain speed”. Is this a good idea to listen to the LocationManager.GPS_PROVIDER & use the getSpeed()? Can someone comment on it?
I need to add a feature to our mobile application which is to disable
Share
You will have to record the previous location and then check with the new location in a particular interval of time(preset to 5-10sec) and the get the distance moved in a time frame to get speed.
Its a good concept but it will drain your device battery.