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
Post a Comment