Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there is any way to clear the location details which is already captured from android device manually?

I'm developing an android application which deals with location co-ordinates capturing with gps.

I'm also getting the location details which is last known(via "locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER");

It works correctly. But again I need to check it. I need to clear already captured locations manually then again i need to check it.

Is there is any way to clear the location details which is already captured from android device manually(like goto settings menu and do other process).

I'm using android device which having the sdk>=android2.2.

All your ideas are welcome.

like image 873
SIVAKUMAR.J Avatar asked Nov 03 '22 14:11

SIVAKUMAR.J


1 Answers

Well please try the following link, it might help:

Link to solution

Detail: I just disabled the GPS then restarted the Android phone & I found that the locationManager.getLastKnownLocation returned NULL for location

like image 189
user1400290 Avatar answered Nov 08 '22 03:11

user1400290