Android App Update programmatically
<p>I am trying to update an Android Application programmatically. All is working great, the Installation prompt is visible. 
But if i run the Installation of the App it says: "Application not installed". 
Any Ideas why it is not working?</p>

<p>Update progress:</p>

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