'How can I request turn on the location?
I have previously requested location permission in Android Studio (Java) for Android version higher 6.0, and now I want to request to turn it on.
On the other hand, I also requested Bluetooth permission and turn it on, using the following Intent:
if (!adapter.isEnabled()) {
Intent enableBluetoothIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableBluetoothIntent, REQUEST_ENABLE_BT);
}
Nevertheless, I don't know which intent I could throw in order to request to turn it on.
Thank you in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
