Is there are way to find out the "Date when an application was installed" on an Android Device.
Have searched extensively, but unable to find relevant answer.
Was unable to find anything regarding Date when Application was Installed through PackageManager
documentation/Code.
or this one (API Level 9 upwards!):
long installed = context .getPackageManager() .getPackageInfo(context.getPackageName(), 0) .firstInstallTime ;
Use this code:
PackageManager pm = context.getPackageManager(); ApplicationInfo appInfo = pm.getApplicationInfo("app.package.name", 0); String appFile = appInfo.sourceDir; long installed = new File(appFile).lastModified();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With