Created
January 17, 2017 02:19
-
-
Save pyeongho/fc0d7c47be2a505f92a3d1d994fe5388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PackageManager pm = getPackageManager(); | |
try { | |
PackageInfo pi = pm.getPackageInfo("com.google.android.webview", 0); | |
Log.d("UILAb", "version name: " + pi.versionName); | |
Log.d("UILAb", "version code: " + pi.versionCode); | |
} catch (PackageManager.NameNotFoundException e) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment