【发布时间】:2011-07-12 18:34:30
【问题描述】:
我正在尝试将我的 Android 手机广播为蓝牙服务器,为此,我首先想让 Android 为“可发现”。
我正在使用 ACTION_REQUEST_DISCOVERABLE 这样做,如下所示: http://developer.android.com/guide/topics/wireless/bluetooth.html#EnablingDiscoverability
testIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
startActivity(testIntent);
不幸的是,这也会在手机上弹出一个“蓝牙权限请求”对话框。
有什么方法可以让我的手机“可发现”,而无需提示用户?
谢谢!
【问题讨论】:
标签: android bluetooth broadcast discovery