I have called the finish() method after the apk is installed, I receive the PACKAGE_ADD broadcast and in this broadcastreceiver I send another broadcast, like this:
sendBroadcast(intent); // another broadcast to do something, after this I want to finish my app this.finsh(); If I press the "Open" or "Done" button on the installation UI, my application will restart. On Mon, Jun 20, 2011 at 6:35 PM, Saurav <[email protected]>wrote: > Have you tried calling finish() after your apk installation procedure? > > > > > Regards, > Saurav Mukherjee. > > > > On Mon, Jun 20, 2011 at 2:53 PM, June Hello < > [email protected]> wrote: > >> ation to install another apk. however, I find that after the installation, >> my application will re-run >> >> from the method onCreate(), is there any way to interrupt it? I just >> wanna exit from my own application after >> >> installation, never to restart it again. >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

