Android: How to prevent GPS auto-disable
We created a开发者_Python百科 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?
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
精彩评论