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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -