简体   繁体   中英

How to turn on GPS automatically whenever off in android?

I am developing an android app and I need to turn on gps automatically if gps is off and if users try to turn off gps then too I need to turn gps on. In short users must not be able to turn of gps. But I have read that this is possible only in rooted phones. But this app need to be used in unrooted phones. Is there anyway to turn gps on automatically? and never allow to turn off?

Fortunately, no, for obvious privacy reasons. You will find various script-kiddie hacks that may work on certain devices or certain older Android versions, but that is it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM