From the course: Android Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Display the build date of an APK file

Display the build date of an APK file - Android Tutorial

From the course: Android Development Tips

Display the build date of an APK file

- [Tutor] Many apps have an About screen, that shares useful information, such as where to get support, open source license information and metadata about the app itself, some of that metadata is easily accessible, but there's one particular bit of information, that takes a bit more work, if you want to display the date on which the app was last packaged for deployment, you have to add some information to your Gradle Build file and I'll show you how to do this. In this beginning application, I'm simply displaying some information on my Log screen and when I touch the Run Code button, I want to be able to show the application version and the date on which the APK was built. The version information is available through something called a PackageInfo object, you set this information in your Gradle Build script, the version code is the integer value that the user doesn't see and is always incremented by one each time you redeploy the app and the version name is the public version, the…

Contents