7

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

Ashish Jani
  • 295
  • 3
  • 14

1 Answers1

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