App versions should be validated before we do anything with them, like inserting them to the database.
Activity