Random Animals

Published on February 28, 2022

🏷️ Tags: #api, #json

Description

This is a template, not an app, or, not intentionally being an app. I do not expect to be an app with a million APK downloads. I do not want to focus on user interface, graphics and design in this app, what this app emphasizes is the APIs and get requests it uses.

This application is a template for what you can do with App Inventor. It generates random images of cats, dogs or foxes, to the user's selection, and the app shows the image. What's more, the application does not only show the random animal, it also tells what animal it is.

You might be thinking - why can the user select multiple (or even all) checkboxes, not just one? Well, if you checked 'fox' and 'dog', the app will randomly decide whether to show a dog or to show a cat, but it will never show a cat in this instance.

We will not overload the app assets, instead, we will use API get requests. We use three APIs, for dogs, cats and foxes. They can all be found in this directory.

This works better in the APK instead of the companion, and works better in the companion instead of the aiStarter emulator.

The official App Inventor community post is located here. If you are a Thunkable X user, you can check the Thunkable X version of this app here.

Version

Current version: 1.0. This project is open source, so this will probably be the first and the last version of the project.

Acknowledgements

  • The application icon (duck-profile.jpg) is a watermark of AICODE.

  • Thanks to MIT App Inventor for providing me an amazing building tool!

Screenshots

Tests

Tested successfully on Google Pixel 2 on Android Emulator and Xiaomi 11 5G NE Lite.

Downloads

AIA file: this app is a template, made open source, which means that I will provide AIA file. Download button below.

APK file: download button below.

Please email me if you find any bugs, no matter major or minor. I will usually update my app once a month if I find any bugs.

TERMS & CONDITIONS

By installing, remixing or sharing my app, you agree to follow these terms and conditions.

  1. Have fun using the app! There are no viruses, trojan horses, advertizements, or premium options.

  2. You are allowed to modify this AIA file, but as CC-BY-SA, if you do remix this material, please give credit by mentioning Gordon Lu, AICODE and providing a link to this website. This is only for personal use - you cannot upload the blocks or AIA file or Designer screen onto your website, document, tweet, blog, article or any software.

  3. This, along with the MIT App Inventor community post, are the only authorized place to download this application. As an organization, you are not allowed to host and advertize this application on your website, document, tweet, blog, article or any software you made without my authorization. You are also reminded not to include a direct download link of this application on your website without my permission. If you are interested in the actions listed above, please contact me via email. Do remember that if you violate term no. 3, AICODE has the right to flag your website, document, tweet, blog or article as a violation of copyright, or other legal actions will be taken. Please contact me if you find anyone do this.

However, you can copy the link of this webpage and share it to someone as a personal identity (not as an organization), or sharing it on these authorized forums: App Inventor, Kodular, Niotron, Appzard and Android Builder communities. The term organization includes schools, markets and app stores, companies and social groups. Thank you for your understanding.

Those organizations are authorized to advertize my application:

  • Kodular admins

  • MIT App Inventor admins

  1. Selling this application/product to anyone is not allowed unless authorized by AICODE.

  2. These terms and conditions are written and issued on December 20, 2021, along with the new version of 4.0.0. AICODE has the total permission to edit these terms and conditions anytime.