控制硬件功能
在用 Java 编写的 Android 应用程序中,我希望能够打开/关闭 GPS、WiFi、蓝牙等硬件功能。
我该怎么做?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,你不需要。
欢迎您检查
android.provider.System.Settings
类,看看您可以控制什么,不能控制什么。您列出的大部分内容都是您无法控制的。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.