Is it smart to switch off bt/gps/wifi on app exit?
I have an Android app that deals with GPS data. When a user starts it, it offers to turn on the GPS.
Is it smart (or is it bad) if I code the app to automatically turn off the GPS when a 开发者_如何转开发user closes the app?
What about automatically turning off Wi-Fi or Bluetooth?
Since about Android 1.6, it has not been possible to turn GPS off/on programatically. All you can do is launch the system preference screen, which does allow the user to disable/enable it for all applications.
I think the answer is different for every user, so let users choose: On the messagebox that asks to turn on the GPS etc just add a checkbox saying "turn these off when exiting the application" that people can check before accepting.
精彩评论