Many apps have an About screen that shares useful information, such as where to get support, open-source licenses, and metadata about the app itself. Some of that information is easily accessible, but one particular bit of information takes a bit of work. If you want to display the date on which the app was last packaged, you have to add some information to your Gradle build file. Learn how to do this in this tip.
- [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 version that's shown on the Google Play Store…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.