title: How to close settings activity when going into Kiosk Mode
body: <p>When I set my application into Kiosk mode, if I recently opened settings it will remain in the recent app list. I disable the status bar so that the user cannot normally get to the settings app, but because its remaining in recent, it is still there for the user to get to.</p>
  <p>I need to keep the recent apps as the kiosk mode allows for multiple applications, but I do not want the user to be able to access any of the phones settings in any way. So this loophole that leaves a way to get it is becoming a problem if the admin user forgets to close it before going into kiosk mode.</p>
  <p>Is there a way to ensure this settings 'app' gets closed? I couldn't find it in the package manager to try and kill. Not sure how to reference it.</p>
  <pre><code>dpm.setStatusBarDisabled(component, true);
  dpm.setLockTaskPackages(component, PACKAGE_WHITE_LIST); // contains multiple packages
  dpm.setLockTaskFeatures(component, DevicePolicyManager.LOCK_TASK_FEATURE_HOME | DevicePolicyManager.LOCK_TASK_FEATURE_OVERVIEW | DevicePolicyManager.LOCK_TASK_FEATURE_KEYGUARD | DevicePolicyManager.LOCK_TASK_FEATURE_SYSTEM_INFO);
  
  AcivityOptions options = ActivityOptions.makeBasic();
  options.setLockTaskEnabled(true);
  Intent luanchIntent = context.getPackageManager().getLaunchIntentForPackage(package_name);
  if (launchIntent != null)
  {
      launchIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
      context.startActivity(launchIntent, options.toBundle());
      // I need any existing windows like settings to not be left open at this point
  }
  </code></pre>