0

Is there anyway to notify the users (inside of my application) if newer versions is published? perhaps through Dialog?

Leon
  • 339
  • 1
  • 7
  • 23
  • Yes, you can use Dialog, but you may be more specific if you want more help. – clemp6r Jan 04 '12 at 09:03
  • Lets say, you installed my app today, and the next day I published a newer version. What I really want to do is, once you launch my application I want some dialog to pop out inside of my application notifying the users that newer version is published in the Market. – Leon Jan 04 '12 at 09:10

2 Answers2

0

Usually in web client android application we make a request to the server for getting the current version. Use

String versionName = context.getPackageManager().getPackageInfo(context.getPackageName(), 0 ).versionName;

And compare and notify the user with a dialog.

san
  • 1,845
  • 13
  • 23
0

Santosh's solution just allow you to access to the "android:versionName" attribute in your manifest.
look at Android Market Application Updates.
It could help you

Community
  • 1
  • 1