开发者

Is it smart to switch off bt/gps/wifi on app exit?

开发者 https://www.devze.com 2023-02-08 13:00 出处:网络
I have an Android app that deals with GPS data. When a user starts it, it offers to turn on the GPS.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消