code: public static AlertDialog.Builder buildLocationAccessDialog(Activity activity,
        DialogInterface.OnClickListener onOkClickListener, String title, String message) {
      final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
      builder.setTitle(title);
      builder.setMessage(message);
      builder.setPositiveButton(android.R.string.ok, onOkClickListener);
      builder.setNegativeButton(android.R.string.no, null);
      builder.setCancelable(true);
      return builder;
    }
docs: Creates dialog for accessing Location Services
  
  @param activity where dialog is build
  @param onOkClickListener implementation for action customisation
  @param title of the dialog window
  @param message of the dialog window
  @return dialog builder