Lukap
Lukap

Reputation: 31963

How to check if system update is available

Sometimes on my phone there is notification for system update. Is there some snippet of code for checking if system update is available ?

or is there something that I can do in code to force check for system update available ?

Thanks

Upvotes: 2

Views: 608

Answers (1)

dcanh121
dcanh121

Reputation: 4695

Your app needs to call your server and get the information.

Simply, you can get small xml file from the server and get the newest version number available and check that against the installed app version. If there is one available, you may notify a popup and direct the user to the Android market screen to update the app.

Upvotes: 1

Related Questions