I want to enable disable bluetooth from my service class in android i am using the following code
     BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();    
                    if (!mBluetoothAdapter.isEnabled()) {
                        mBluetoothAdapter.enable();
                    }else{ 
                        mBluetoothAdapter.disable(); 
                    }  
But it is not working so how can i enable/disable bluetooth from my service class and which permissions i need
 
    