AndroidのサービスクラスからBluetoothの無効化を有効にしたいのですが、次のコードを使用しています
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (!mBluetoothAdapter.isEnabled()) {
mBluetoothAdapter.enable();
}else{
mBluetoothAdapter.disable();
}
しかし、それは機能していないので、サービスクラスからBluetoothを有効/無効にするにはどうすればよいですか?どの権限が必要ですか?