Android Can an application request reinstallation of its own APK? (from installation service)
<p>I have an android admin which performs all admin functions on my tablet, now I need a way to update the admin application inself.  I don't really want to install yet another app to do this, however what I am finding is that there is an error when an application brings up the Android installer and passes it an APK file that is the same as the calling application, it does not show a successful install.  Is there anyway for an application to update itself with a new apk.  (Restart is OK)  It is really quite common in general to allow apps to be self updating often requiring a restart of the application?</p>

<p>Here is the code:</p>

<p>(Environment.getExternalStorageDirectory() + "/download/" + apkName)), "application/vnd.android.package-archive");
                context.startActivity(intent);  </p>

<p>Where apkName is the same application as is issuing this call?  </p>

<p>If this cannot be done, what are my options without installing yet another admin to update the admin application?</p>
