I need to turn off the gsm network at my application but enable bluetooth. I know how to change to airplane mode Toggle airplane mode in Android, but is there a way to keep the bluetooth on (I know that them both working on radio signals), I think it's possible on android 4 cause I saw some application that doing it like "Auto Airplane".
I've tried the code below with no help:
Settings.System.putInt(context.getContentResolver(),
Settings.System.AIRPLANE_MODE_ON,1);
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", 1);
context.sendBroadcast(intent);
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mBluetoothAdapter.enable();
thank's, david