Android : How to get notify when user has enabled Location services

on Tuesday, September 2, 2014


I have an application that sends push. Push sends request to enable Location services. As soon as I receive push, I have called a notification, and on notification action



Intent viewIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
context.startActivity(viewIntent);


But how to log, if the user has enabled location setting or not.


Push is received in broadcastReceiver, So we dont have startActivityForResult(). Is there any other way to do?


0 comments:

Post a Comment