We created a small app, that tells your location. On some devices, if there is no signal to gps satellites (in a house, tunnel, underground) it is searching for a while, then it stops and never searches again. So it is disables automatically after some time. How can I prevent this?
Asked
Active
Viewed 2,669 times
1 Answers
1
hi check this post for enabling and disable the gps programmtically hope you get some idea/help
How can I enable or disable the GPS programmatically on Android?
-
I can enable/disable a gps programmatically. The problem is, that if it has no satellite signal, it turns off, and never tries to connect to satellites again. – McDermott Sep 07 '11 at 07:38
-
@McDermott, Pratik probably tried to say that you could just reenable GPS once it was disabled / had lost all the satellite signals. I don't know whether it helps to find the lost signals or not. – Ivan Silkin Jun 27 '20 at 15:15