jjzjj

DISCOVERABLE

全部标签

android - 在 Android 上禁用 "Bluetooth Permission Request"确认 - 使用 ACTION_REQUEST_DISCOVERABLE

我正在尝试将我的Android手机作为蓝牙服务器广播,为此,我首先想让Android“可发现”。我正在使用ACTION_REQUEST_DISCOVERABLE这样做,如下所示:http://developer.android.com/guide/topics/wireless/bluetooth.html#EnablingDiscoverabilitytestIntent=newIntent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);startActivity(testIntent);不幸的是,这还会在手机上弹出“蓝牙权限请求”对话框