Version Codes

Apps that are published to Google Play require a VersionCode and VersionName. These are managed in the Designer, inside the Properties panel of the Screen1 component (see Figure 12.17). Google Play and the Android system use these codes to know when apps need to be updated.

Image

Figure 12.17 The VersionCode and VersionName are found in the Properties box of Screen1.

The VersionCode is the number that really matters for update tracking. It must always be a whole number, and each new version of the app (which you submit) must have a greater value than the previous version. The user never sees this number, but the user’s phone updates ...

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.