code: public void onResume() {
  		if (requestPermissionOnStart && firstTime) {
  			checkPermission(false);
  			firstTime = false;
  		} else if (pendingAppInfoDialog) {
  			pendingAppInfoDialog = false;
  			showAppInfoDialog();
  		}
  	}
docs: This method must be called from the respective method of the fragment/activity.