I want to navigate directly to the bluetooth settings Connect & pair screen on a button click now I can navigate till the wireless settings..
My code is as follows:
Intent i=new Intent();
i.setClassName("com.android.settings","com.android.settings.WirelessSettings");
startActivity(i);
It's pretty simple, try this:
Intent settingsIntent = new Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS);
startActivity(settingsIntent);
Use the follwoing:
Intent settings_intent = new Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS);
startActivityForResult(settings_intent, 0);
This way you will open Bluetooth settings page and later return back to your activity that started the Intent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With