code: public static AlertDialog.Builder buildLocationAccessDialog(final Activity activity,
        final DialogInterface.OnClickListener onOkClickListener) {
      final Resources resources = activity.getResources();
      final String title = resources.getString(R.string.requesting_location_access);
      final String message = resources.getString(R.string.do_you_want_to_open_location_settings);
      return buildLocationAccessDialog(activity, onOkClickListener, title, message);
    }
docs: Creates dialog for accessing Location Services
  
  @param activity where dialog is build
  @param onOkClickListener implementation for action customisation
  @return dialog builder