android - How to get version number of another application? -



android - How to get version number of another application? -

i'm trying hear updates apps aren't own. can hear intent.action.package_added , utilize uid app name so:

packagemanager manager = context.getpackagemanager(); string name = manager.getnameforuid(uid);

is there way app's version number? i've looked through packagemanager methods , couldn't find helpful.

that info part of packageinfo (versioncode , versionname).

you can via packagemanager.getpackageinfo() method

android

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -