2

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?

McDermott
  • 1,025
  • 2
  • 16
  • 28

1 Answers1

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?

How to programmatically enable GPS in Android Cupcake

Turn off GPS programmatically when i exit my program

Community
  • 1
  • 1
Pratik
  • 30,639
  • 18
  • 84
  • 159
  • 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