How to run install app in internal files dir?
<p>I have some lines of code and apk file in internal cache dir: </p>

<pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(newFile(context.getCacheDir() + "/update.apk")), "application/vnd.android.package-archive");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
</code></pre>

<p>But I had a parsing error: "There was a problem parsing the package"</p>

<p>Thank You for helping!</p>