0 0 1

获取本应用信息

MixoFQ
6月前 326
javax(pm,activity,"android.content.ContextWrapper","getPackageManager") 
 
javax(pknm,activity,"android.content.ContextWrapper","getPackageName") 
 
//本应用包名 
 
syso(pknm) 
 
javax(ver,pm,"android.content.pm.PackageManager","getPackageInfo","String",pknm,"int",0) 
 
javags(版本,ver,"android.content.pm.PackageInfo.versionName") 
 
//本包名的版本 
 
syso(版本) 
 
javax(icon,pm,"android.content.pm.PackageManager","getApplicationInfo","String",pknm,"int",0) 
 
javax(图标,icon,"android.content.pm.PackageItemInfo","loadIcon","android.content.pm.PackageManager",pm) 
 
//本应用图标 
 
syso(图标) 
 
javags(pkg,ver,"android.content.pm.PackageInfo.applicationInfo") 
 
javax(应用名称,pkg,"android.content.pm.PackageItemInfo","loadLabel","android.content.pm.PackageManager",pm) 
 
//本应用名 
 
syso(应用名称) 
 
javags(time,ver,"android.content.pm.PackageInfo.lastUpdateTime") 
 
javanew(格式, "java.text.SimpleDateFormat", "String", "yyyy年MM月dd日H时mm分ss秒") 
 
javanew(时间, "java.util.Date", "long", time) 
 
java(更新时间, 格式, "java.text.DateFormat.format", "java.util.Date", 时间) 
 
//本应用最后一次更新时间 
 
syso(更新时间) 
 
最后于 6月前 被modu编辑 ,原因:
v3 v5 v6
下一篇
无更多文章
最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
请先登录后发表评论!