【问题标题】:How to activate Bluetooth programatically in android [duplicate]如何在android中以编程方式激活蓝牙[重复]
【发布时间】:2014-05-24 07:13:35
【问题描述】:

我无法在 android 中以编程方式打开我的蓝牙。怎么做。

感谢您的帮助

【问题讨论】:

    标签: android bluetooth


    【解决方案1】:

    活动中:

    蓝牙适配器 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); mBluetoothAdapter.enable();

    在 AndroidManifest.xml 中:

    <uses-permission android:name="android.permission.BLUETOOTH"/>
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
    

    【讨论】:

      猜你喜欢
      • 2015-03-14
      • 1970-01-01
      • 2011-05-01
      • 2012-12-04
      • 1970-01-01
      • 1970-01-01
      • 2011-04-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多