Skip to content Skip to sidebar Skip to footer

How To Update The Pre-installed Application Programmatically In Android

I am working on an app where app installs .apk file which is available on my local server. and if there is any update notification for the installed local server application,its n

Solution 1:

Does Android application work as client for your server? If this is the case, I do not recommend you to use server-side pushes for update notifications. If notification fails to reach device (AFAIK, official documentation says, that this is normal behavior), user will have outdated version. It is better to check for new version periodically/on every access to server and download/install apk as explained here and here. You may also want to look at source code of FDroid, which consist of server- and client-side components and can fetch, download and install updates for number of applications.


Post a Comment for "How To Update The Pre-installed Application Programmatically In Android"