Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically turn on/off GPS on Android [duplicate]

Tags:

android

gps

Possible Duplicate:
Enable GPS programatically like Tasker

Is it possible to programmatically turn on/off gps on android? It is mentioned on this SO post: How can I enable or disable the GPS programmatically on Android? that it cannot be done without the user consent.

like image 806
ssk Avatar asked Feb 27 '26 14:02

ssk


1 Answers

No it is not possible. The closest you can get is firing an Intent that shows the GPS settings to the user. Please follow this guide: Guide for GPS intent Android

like image 124
MarchingHome Avatar answered Mar 02 '26 05:03

MarchingHome