Install time and update time
To get the time at which your app was installed or updated, you should query Android's package manager.
Retrieve application version
Utility method using PackageManager
Here we can find some useful method using PackageManager,
Below method will help to get the app name using package name
Below method will help to get the app icon using package name,
Below method will help to get the list of installed application.
Note: above method will give the launcher application too.
Below method will help to hide the app icon from the launcher.
Note: After switch off the device and switch on this icon will come
back in the launcher.
Version name and version code
versionCode of current build of your application you should query Android's package manager.
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0