android - GPS toggle editing AOSP -
i want toggle gps without going android settings intents etc . have tried these methods none of them worked :
how can enable or disable gps programmatically on android?
toggle gps on root devices on android
so far understood , there no way doing . asking , possible approach editing custom rom or aosp ? , if possible can or other ideas ?
you can if edit aosp. don't think need go far. use settings.secure.setlocationproviderenabled(context.getcontentresolver(), provider, true);
, write system app , should able it. description of how install app system app can found @ http://www.addictivetips.com/mobile/how-to-install-any-app-as-system-app-on-android/. add write_secure_settings permission manifest , you're good.
Comments
Post a Comment