I am developing an application in that I need user current location so if there is no location service is enabled then I created one Alert to set location service but I am not getting to redirect to location settings
Asked
Active
Viewed 4,355 times
1 Answers
21
You can start an Activity using the Intent below to redirect the user to the settings screen :
startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));

ddewaele
- 22,363
- 10
- 69
- 82
-
@ddwaele how to backpress return to app, currently it goes to settings instead of app – Jithish P N May 09 '19 at 13:01