title: PackageInstallerActivity not found on Android M developer preview
body: <p>I have a feature to be implemented: install an apk programmatically. Code I'm using:</p>
  
  <pre><code>ComponentName comp = new ComponentName("com.android.packageinstaller", "com.android.packageinstaller.PackageInstallerActivity");
  Intent newIntent = new Intent(callingIntent);
  newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  newIntent.setComponent(comp);
  </code></pre>
  
  <p>The callingIntent contains an apk from another service. </p>
  
  <p>On Android 6.0 (MPA44G, Nexus 5), this intent is crashing. Logcat:</p>
  
  <pre><code>08-20 14:58:56.127 26222 26222 E AndroidRuntime: Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}; have you declared this activity in your AndroidManifest.xml?
  </code></pre>
  
  <p>On Lollipop- devices, the above code is working fine.</p>
  
  <p>Has Google completely removed the PackageInstallerActivity? Is there any workaround to programmatically install an apk specifically on Android 6.0?</p>
  
  <p>Reference: <a href="https://code.google.com/p/android-developer-preview/issues/detail?id=3017">Issue 3017: Unable to find explicit activity class com.android.packageinstaller.PackageInstallerActivity</a></p>