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
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));