Reputation: 157
In an Android application written in Java, I want to be able to turn on/off hardware features like GPS, WiFi, Bluetooth etc.
How can I do that?
Upvotes: 0
Views: 254
Reputation: 1006839
I want to be able to turn on/off hardware features like GPS, WiFi, Bluetooth... How can I do?
Generally speaking, you don't.
You are welcome to examine the android.provider.System.Settings
class to see what you can and cannot control. Most of what you list you cannot control.
Upvotes: 1