How can I auto install apk on android without market NOT system app
<p>I get apk in server.</p>

<p>and I try</p>

<pre><code>File apkFile = new File("/sdcard/Download/openapk.apk");
Uri apkUri = Uri.fromFile(apkFile);
Intent webIntent = new Intent(Intent.ACTION_VIEW);
webIntent.setDataAndType(Uri.fromFile(apkFile), "application/vnd.android.package-archive");
webIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(webIntent);
</code></pre>

<p>this code.
after showing under picture.
this code is when I click install button. start install.
but I want auto install .and apk execution</p>

<p>perhaps possible auto install after apk execution. ?</p>

<p><a href="https://i.stack.imgur.com/aC6zm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aC6zm.jpg" alt="enter image description here"></a></p>