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.
Latest Posts
- Android: CookieManager removeAllCookie() Crash
- XlistView: A listview which can pull to refresh and load more (1)
- Millions of Android Phones Could Be Affected by the Heartbleed Bug. Check to See if Yours Is One of Them
- TOP 10 ANDROID GAMES FOR MARCH 2014
- Android:Button with different textcolor and background in different states
1939 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.