Connect App Inventor to your phone for live testing of your application
One of the Interesting thing about App Inventor is that you can see and test your app while you’re building it, on a connected device. If you have an Android phone or tablet, follow the steps below. If you do not have a device, then follow the instructions for setting up the on-screen emulator (opens a new page) and then come back to this tutorial once you’ve gotten the emulator connected to App Inventor.

Get the MIT AI2 Companion from the Play Store and install it on your phone or tablet.
The preferred method for getting the AI2 Companion App is to download the app from the Play Store by searching for “MIT AI2 Companion”.

To download the AI2 Companion App to your device directly (SKIP THIS STEP IF YOU already got the app from Play Store)
If for some reason you can not connect to the Google Play store, you can download the AI2 Companion as described here.
First, you will need to go into your phone’s settings (#1), choose “Security”, then scroll down to allow “Unknown Sources”, which allows apps that are not from the Play Store to be installed on the phone.
Second, do one of the following:
- A) Scan the QR code above (#2)
or
- B) Click the “Need help finding…” link and you’ll be taken to the download page. From there you can download the MITAI2Companion.apk file to your computer and then move it over to your device to install it.

Start the AICompanion on your device
On your phone or tablet, click the icon for the MIT AI Companion to start the app. NOTE: Your phone and computer must both be on the same wireless network. Make sure your phone’s wifi is on and that you are connected to the local wireless network. If you can not connect over wifi, go to the Setup Instructions on the App Inventor Website to find out how to connect with a USB cable.

Get the Connection Code from App Inventor and scan or type it into your
Companion app
On the Connect menu, choose “AI Companion”. You can connect by:
1 – Scanning the QR code by clicking “Scan QR code” (#1).
or
2 – Typing the code into the text window and click “Connect with code” (#2).

See your app on the connected device
You will know that your connection is successful when you see your app on the connected device. So far our app only has a button, so that is what you will see. As you add more to the project, you will see your app change on your phone.
