2012-10-19 100 views

回答

3

此代碼適用於我。您可以試試這個

BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();  
     if (!mBluetoothAdapter.isEnabled()) { 
      //Play with bluetooth 
     }else{ 
      mBluetoothAdapter.disable(); 
     }