Can I install an Android application from a byte array programmatically?
<p>I know I can install an Android application programmatically by the below code which passes the <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier" rel="nofollow">URI</a> of an <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="nofollow">APK</a> file. Can I install the application without passing an APK file URI? For example, getting the byte array of an APK file and installing it?</p>

<pre><code>File appFile = new File("application.apk");
Intent installIntent = new Intent(Intent.ACTION_VIEW);
installIntent.setDataAndType(Uri.fromFile(appFile),"application/vnd.android.package-archive");
startActivity(installIntent);
</code></pre>
