Extensions (tutorial)

Published October 1, 2021

To understand how to use extensions, first we need to answer the question: what are extensions?

🏷️ Tags: #newbie, #tutorials-and-guides, #extensions 

What are extensions?

Extensions are extended components in MIT App Inventor that you cannot find in the components list. For example, you may need an extension component called a Rating Bar because there isn't any extensions that is a rating bar in MIT App Inventor.

Extensions are AIX files. Make sure you upload the correct extension file.

To make an extension, you will need to code. Fortunately, for beginners, you don't have to, because probably someone has coded for you. Coding extensions is not easy, so occasionally you have to purchase extensions. These are usually ad extensions, helping you to add apps into your app.

A very useful link is the Pura Vida Apps (Extensions Directory) made by Taifun Baer. You can find useful extensions in that link.

How to import extensions?

I have already made an extension for you: Geometry. This extension helps you to calculate the areas, perimeters, or properties of different shapes.

I will publish a demo later.

Blocks of my extension?

 a. Add a math number block for both of the sockets.

 b. Reset the number of the first math block (attached to length) to 5. 

 c. Reset the number of the second math block (attached to width) to 4.

Test your app out

Now, test your app out by going to Connect, then AI Companion. The connection guidelines of the website will be published later.

After you test your app out, what is the text of your label? Of course, 20. If you see this, that means you have a successful connection and you have completed this tutorial! 

Make sure to check out Pura Vida Apps to see guidelines of how to use extensions. For example, if you have a multi-screen app and you need extensions, when testing the app out, in order to prevent bugs, additionally drag the extension to the Viewer in Screen1.

App Inventor Extensions

Official extension guidelines of MIT App Inventor, published by MIT App Inventor Team.

© Gordon Lu             📧 E-mail     💬 Message