1

I have to create a custom app store for android apps. The app store application will download the applications from the server and install it in the users device. Suppose the application gets updated on the server, and server sends the push notification to the device for the update.

Now how can the app store application un-install the previous application and install the new one?

What code examples can help to implement it ?

EDIT :

njzk2 Thanks a lot !!!

So will just use the Installing app logic even for update :

For installing : Android: install .apk programmatically

Community
  • 1
  • 1
Parth mehta
  • 1,468
  • 2
  • 23
  • 33
  • 2
    why would you uninstall the previous version ? you would loose the user's data ! – njzk2 Oct 08 '13 at 08:55
  • Ok. So w/o un-install, what should the app-store do to update other apps ? – Parth mehta Oct 08 '13 at 09:06
  • 1
    the same as for a plain install. there is nothing special to do. – njzk2 Oct 08 '13 at 09:17
  • Will there be no package issues, and an alert message from android that the application with the same package already exists? And if the install works in both the cases, then how should the app-store install the application ? – Parth mehta Oct 08 '13 at 10:26
  • 1
    if the application is signed with the same signature, it will work. Just like it works when you update an application from play or when you update using adb or eclipse. – njzk2 Oct 08 '13 at 10:30

0 Answers0