Install time and update time

suggest change

To get the time at which your app was installed or updated, you should query Android’s package manager.

try {
    // Reference to Android's package manager
    PackageManager packageManager = this.getPackageManager();

    // Getting package info of this application
    PackageInfo info = packageManager.getPackageInfo(this.getPackageName(), 0);

    // Install time. Units are as per currentTimeMillis().

    // Last update time. Units are as per currentTimeMillis().

} catch (NameNotFoundException e) {
    // Handle the exception

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents