You can use App Inventor without downloading anything to your computer! You'll develop apps on our website: ai2.appinventor.mit.edu. To do live testing on your Android device just install the MIT App Inventor Companion app on your Android phone or tablet. Once the Companion is installed, you can open projects in App Inventor on the web, open the companion on your device, and you can test your apps as you build them:
The following steps will walk you through the process.
Step 1: Download and install the MIT AI2 Companion App on your phone.
Open your device's QR code scanner and scan the QR code on the left below to download the Companion App from the Play Store. If you can't use the Play Store, use the QR code on the right to download the Companion App directly to your phone.
Play Store
Recommended: Automatic updates
|
APK File
Manual updates required
|
| |
Scan this QR code (or click this link) to get the app from the Play Store
|
Scan this QR code (or click this link) to download the app directly
|
If you need a QR code scanner, you can get one at the Play Store (e.g., ZXing). |
After downloading, step though the the instructions to install the Companion app on your device.You need to install the MIT AI2 Companion only once, and then leave it on your phone or tablet for whenever you use App Inventor.
Note 1: If you are unable to use the QR code, you can still install MIT AI2 Companion on your phone or tablet. Use the Web browser on your device to go to the Google Play Store; look for MIT AI2 Companion in the store. Once you find Companion, click the INSTALL button for the Companion app.
Note 2: If you choose not to go through the Play store and instead load the app directly (aka "side load), you will need to enable an option in your device's settings to allow installation of apps from "unknown sources". To find this setting on versions of Android prior to 4.0, go to "Settings > Applications" and then check the box next to "Unknown Sources". For devices running Android 4.0 or above, go to "Settings > Security" or "Settings > Security & Screen Lock" and then check the box next to "Unknown Sources" and confirm your choice.
Step 2: Connect both your computer and your device to the SAME WiFi Network
App Inventor will automatically show you the app you are building, but only if your computer (running App Inventor) and your Android device (running the Companion) are connected to the same WiFi Network. See a more detailed explanation of this here. Take the time to read what is said on this link; since you last were able to run a Project using WIFI, perhaps something has changed with your WIFI network. Is it possible your phone is attempting to connect to the Internet using a network connection, and not WIFI? You can turn off the network setting on your phone in the Settings.
Some router software require you provide and setup the router password in your Android? Have you done that? Another test, after you are sure your are not using a network connection on your device, connect to the Internet using your device's default brower. Can you surf the Internet? If you cannot, it probably means you phone is not connecting via WIFI to anything.
In the settings in your phone, do you have USB debugging turned on? If so, turn it off. Attempting WIFI and USB at the same time will confuse either AI2 or Companion.
Step 3: Open an App Inventor project and connect it to your device
Go to App Inventor and open a project (or create a new one -- use Project > Start New Project and give your project a name). Please create a NEW project; call it JimmyCompanionTest.
Place a button on the Designer Screen. Set the Button.Text to Hello Jimy . That is the entire project. Please do Connect > AI Companion . Does the project load and the button render on your phone?
Then Choose "Connect" and "AI Companion" from the top menu in the AI2 browser:
A dialog with a QR code will appear on your PC screen. On your device, launch the MIT App Companion app just as you would do any app. Then click the “Scan QR code” button on the Companion, and scan the code in the App Inventor window:
Within a few seconds, you should see the app you are building on your device. It will update as you make changes to your design and blocks, a feature called “live testing”.
If you have trouble scanning the QR code or your device does not have a scanner, type the code shown on the computer into the Companion's text area on your Android device exactly as shown. The code is directly below where the screen on your PC shows "Your code is" and consists of six characters. Type the six characters and choose the orange "Connect with code". Do not type an Enter or carriage return: type just the six characters followed by pressing the orange button..
Troubleshooting:
If your app does not appear on your device, the most likely problems are:
⦁ You may have an outdated version of the App Inventor Companion App. Download the latest Companion App for App Inventor 2 from above.
⦁ Your device may not be connected to wifi. Make sure you see an IP address at the bottom of the AICompanion App screen on your phone or tablet.
⦁ Your device may not be connected to the same wifi network as your computer. Make sure both devices are connected to the same wifi network name.
⦁ Your school or organization may have network protocols in place such that the wifi connection is not allowed. If this is the case, you can still use App Inventor with the emulator or you can use a USB cable to connect your device (Yuk). Go back back the main setup page for these options.