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.
ChOw
2013-10-10
A PHP Error was encountered
Severity: Notice
Message: Undefined index: HTTP_ACCEPT_LANGUAGE
Filename: helpers/time_helper.php
Line Number: 22
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
1926 views 3 comments
You must Sign up as a member of Effecthub to join the conversation.
A PHP Error was encountered
Severity: Notice
Message: Undefined index: HTTP_ACCEPT_LANGUAGE
Filename: helpers/time_helper.php
Line Number: 22
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.