How to redirect my application to location service in settings

I am developing the application in that I need the current location of the user, so if the location service is not turned on, I created one warning to install the location service, but I won’t go to the location settings

+5
source share
1 answer

To redirect the user to the settings screen, you can start the Activity using the Intent below:

startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));
+14
source

All Articles