【问题标题】:How to read DeveloperSettings in Android如何在 Android 中阅读 DeveloperSettings
【发布时间】:2014-08-25 04:02:34
【问题描述】:

我想阅读 DeveloperSettings 之类的 - Bluetooth HCI snoop capture enabled/disabled。 Android 是否提供 API 供用户应用程序读取此信息。当 DeveloperSettings 的值发生变化时,用户空间应用是否可以注册并获取回调的侦听器?

【问题讨论】:

    标签: android android-developer-api


    【解决方案1】:

    AFAIK 您可以访问设置中的一些属性,例如:Settings.Secure.getInt(getContentResolver(),Settings.Secure.BLUETOOTH_ON,0);

    我不确定开发人员可以使用的所有功能。还有一些需要root来修改。

    【讨论】:

    • 我特别想阅读 Settings.Secure.BLUETOOTH_HCI_LOG 。
    猜你喜欢
    • 2011-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-24
    相关资源
    最近更新 更多