2012-10-19 3 views

Répondre

3

Ce code fonctionne pour moi. Vous pouvez essayer ceci

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