Android:How to get the AndroidManifest.xml 's information
PackageManager pm = getActivity().getPackageManager(); try { PackageInfo info = pm.getPackageInfo(getActivity().getPackageName(), 0); Log.i("PersonIntro", info.versionName); Log.i("PersonIntro", String.format("%d", info.versionCode)); } catch (Exception e) { e.printStackTrace(); }
You must Sign up as a member of Effecthub to view the content.
1296 views 3 comments
You must Sign up as a member of Effecthub to join the conversation.
android phones are cool but ,now older phones and devices wont work older phones for the new games it suck for us that cant afford new phones ect.