摘要: 转:http://blog.csdn.net/android_tutor/article/details/5772285 阅读全文
posted @ 2017-05-18 20:55 QinXiao.Shou 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1 //获取版本名 2 public static String getVersionName(Context context) { 3 return getPackageInfo(context).versionName; 4 } 5 6 //获取版本号 7 public static int getVersionCode(Context ... 阅读全文
posted @ 2017-05-18 20:49 QinXiao.Shou 阅读(7289) 评论(0) 推荐(0) 编辑