Get Version App

Vincenzo

Member
Licensed User
Longtime User
Hi,
new problem by reflect.
you can not add a class in java for some functionality a little compicate?
have read the version of my app, and I found some examples in java.
someone can convert them with the class reflector?
_____________
try {
PackageInfo manager=getPackageManager().getPackageInfo(getPackageName(), 0);
manager.versionName;
} catch (NameNotFoundException e) {
//Handle exception
}
________
 

Vincenzo

Member
Licensed User
Longtime User
ok

thanks Erel,
works!
However it would be nice to be able to integrate in the future of file in java.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…