title: Installing an APK results in a parse error
body: <p>I created an <code>app-debug.apk</code> file in <code>/sdcard/Download</code></p>
  <p>I have this code:</p>
  <pre><code>@Override
  public void onClick(View v){
      Intent intent = new Intent(Intent.ACTION_VIEW);
      intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + &quot;/sdcard/Download/&quot; + &quot;app-debug.apk&quot;)),
      &quot;application/vnd.android.package-archive&quot;);
      intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      startActivity(intent);
  }
  </code></pre>
  <p>I am getting this error:</p>
  <blockquote>
  <p>Parse error</p>
  <p>There was a problem parsing the package.</p>
  </blockquote>
  <p>How can I modify it programmatically without getting this error?</p>