code: private void startLauncherActivityIfRoot() {
  		try {
  			if (isTaskRoot()) {
  				PackageManager packageManager = getPackageManager();
  				Intent intent = packageManager.getLaunchIntentForPackage(getPackageName());
  			/*
  			 Make this work with Instant Apps. It is possible and even likely to create an Instant App
  			 that doesn't have the Main Activity included in its APK. In such cases, this Intent is null,
  			 and we can't do anything apart from exiting our Activity.
  			  */
  				if (intent != null) {
  					ComponentName componentName = intent.getComponent();
  					/* Backwards compatible method that will clear all activities in the stack. */
  					Intent mainIntent = Util.makeRestartActivityTask(componentName);
  					if (mainIntent != null) {
  						startActivity(mainIntent);
  					}
  				} else {
  					ApptentiveLog.w("Unable to start app's main activity: launch intent is missing");
  				}
  			}
  		} catch (Exception e) {
  			ApptentiveLog.e(e, "Exception while starting app's main activity");
  			logException(e);
  		}
  	}
docs: /* If Apptentive interaction activity is the only activity of a task, backing from it will
  automatically launch the app main activity.
  
  This is to make sure when Apptentive interaction is
  launched from non-activity context, such as pending intent when application is not running,service
  context, or application context, exiting fom Apptentive interaction will land on a  default app
  activity, instead of desktop.