Category: Package

Get App Installed Date on Android 0

Get App Installed Date on Android

API Level 9 이전 버전 [code lang=”java”] PackageManager pm = context.getPackageManager(); ApplicationInfo appInfo = pm.getApplicationInfo("app.package.name", 0); String appFile = appInfo.sourceDir; long installed = new File(appFile).lastModified(); [/code] API Level 9 이상 [code lang=”java”] long installed...