在Android中删除蓝牙权限消息

时间:2014-08-02 06:20:01

标签: android android-layout bluetooth android-bluetooth

您好我们在Android中使用蓝牙。 当我们打开蓝牙时,它会给我们默认对话框“一个应用程序想要打开蓝牙”,带有拒绝和允许按钮。有了这条消息,在该对话框后面会显示一条蓝线,它只是一个文本“蓝牙权限”。我们可以隐藏或删除对话框后面的此消息。我附上了该页面的截图。

enter image description here

enter image description here

以下是代码段

if (!mBluetoothAdapter.isEnabled()) {
           Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
           startActivityForResult(enableIntent, REQUEST_ENABLE_BT);
}

0 个答案:

没有答案
相关问题