You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There still this issue here, the settings dialog is not showing if the GPS is OFF!
I am not sure if it is related to Android OS version!
Anyway,
Android OS is 8.0.0
here is my code provider = new LocationGooglePlayServicesProvider(); provider.setCheckLocationSettings(true); provider.setLocationSettingsAlwaysShow(true); provider.init(this, LoggerFactory.buildLogger(true));
Thank you.
The text was updated successfully, but these errors were encountered:
Basically you can not show Location Settings if not init SmartLocation using Activity Context, because the Dialog only show if context is instance of Activity as shown below..
if (context instanceof Activity) { try { // Show the dialog by calling startResolutionForResult(), and check the result // in onActivityResult(). status.startResolutionForResult((Activity) context, REQUEST_CHECK_SETTINGS); } catch (IntentSender.SendIntentException e) { logger.i("PendingIntent unable to execute request."); } } else { logger.w("Provided context is not the context of an activity, therefore we can't launch the resolution activity."); }
Thanks for the great work on this library!
There still this issue here, the settings dialog is not showing if the GPS is OFF!
I am not sure if it is related to Android OS version!
Anyway,
Android OS is 8.0.0
here is my code
provider = new LocationGooglePlayServicesProvider(); provider.setCheckLocationSettings(true); provider.setLocationSettingsAlwaysShow(true); provider.init(this, LoggerFactory.buildLogger(true));
Thank you.
The text was updated successfully, but these errors were encountered: