简体   繁体   English

以编程方式在Android中无需用户交互即可连接蓝牙设备

[英]Connect Bluetooth devices without user interaction in Android programmatically

How to connect Bluetooth devices without user interaction for pairing and connect via secure method too? 如何在没有用户交互的情况下连接蓝牙设备进行配对并通过安全方法进行连接? And also want to know about android.permission.BLUETOOTH_PRIVILEDGE permission. 并且还想了解android.permission.BLUETOOTH_PRIVILEDGE权限。

The only way to achieve this is use the BLUETOOTH_PRIVILEGED permission, but you can't use this permission if your app is a third party app (non-system app). 实现此目的的唯一方法是使用BLUETOOTH_PRIVILEGED权限,但如果您的应用是第三方应用(非系统应用),则无法使用此权限。 To learn more, see Android API: BLUETOOTH_PRIVILEGED 要了解更多信息,请参阅Android API: BLUETOOTH_PRIVILEGED

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无需用户交互,以编程方式将 android 设备连接到 wifi - Connect android device to wifi programmatically without user interaction 以编程方式使用蓝牙连接两个Android设备 - Connect two Android devices using bluetooth programmatically 如何以编程方式将 2 个 android 设备与蓝牙连接? - How to programmatically connect 2 android devices with bluetooth? 如何在没有用户交互的情况下以编程方式配对蓝牙设备? - How to pair bluetooth devices programatically without user interaction? 无法以编程方式连接到蓝牙设备 - Not able to connect to bluetooth devices programmatically Android:通过蓝牙连接两个设备并以编程方式启用互联网访问 - Android : connect two devices by bluetooth and enable internet access programmatically (Android && Bluetooth)是否可以在无需用户干预的情况下从服务中发现设备? - (Android && Bluetooth) Make device discoverable from service without user interaction? 是否可以在没有用户交互的情况下访问 android [enable() 或 disable()] 中的蓝牙? - Is it possible to access the bluetooth in android [enable() or disable()] without the user interaction? Android程序连接蓝牙设备 - Android program to connect Bluetooth devices 使用蓝牙连接Android设备? - Connect Android Devices using bluetooth?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM