得到安装程序的时间

PackageManager pm = context.getPackageManager(); 
ApplicationInfo appInfo = pm.getApplicationInfo("app.package.name", 0); 
String appFile = appInfo.sourceDir; 
long installed = File(appFile).lastModified(); 

你可能感兴趣的:(安装)