This thread is obsolete.
Please see
https://groups.google.com/d/msg/mitappinventortest/2cd6Uz__xA0/cPQSiZpcDAAJ
ABG 8/14/19
Welcome to the App Inventor 2 Power Users FAQ Part 1 (A-M)
Frequently Asked Questions about programming in MIT App Inventor 2, and answers to those questions or links to sites that answer those questions.
This is a supplement to the official discussion group for AI2 . When adding content, please add links to the original content in the discussion group, to avoid duplication. Gathering links here under headings is meant to aid people who don't know how to search yet.
How To Ask Questions The Smart Way - Eric Steven Raymond
How to post your code - Chris Ward
How to download and install another app using the Activity Starter - Taifun
How to update/run/delete another app using the activity starter - Taifun, Horst Schulze
Use activity starter to launch OpenStreetMap so that it allows you to import and display a GPX file
(see Forums, below)
nb178 lost from Blocks Palette: Break, bitwise (but can Typeblock them)
nb176 Build -> QR Code does not transfer to the device. It just pops us an internet browser..
nb176 Why App Inventor is mixing three different languages in the blocks interface?
ai2.appinventor.mit.edu build problems 9/21/2018 - E Patton @ MIT
http://code.appinventor.mit.edu/ - avoids some AI2 app Engine size limits - J Schiller
Huawei P9 Lite with Android 6.0 Companion Connection Problems when installed on SD Card
Google Sheet with all the components of App Inventor, AppyBuilder, Makeroid and Thunkable - Peter
code.appinventor.mit.edu for large sizes
(see Forums section for more)
App Inventor 2 supports two versions of Bluetooth: the older, < version 4, and the newer Bluetooth low energy, usually called BLE.
For the older Bluetooth protocol there exist two components, BluetoothClient and BluetootServer. In practice you will always use the Bluetooth client to communicate with an Arduino board or similar.
Documentation for the BluetootClient component (for BT<4) can be found here: http://ai2.appinventor.mit.edu/reference/components/connectivity.html#BluetoothClient
MIT provides an extension to use the Bluetooth Low Energy (BLE). Since June 19, 2017 the support for BLE has been greatly expanded and improved. A starting point for finding documentation, tutorials and more is the: App Inventor IOT site
Many examples for BLE are still using the old extension, which has restrictions and bugs, so watch out for these!
How to type special characters: CR = \r, TAB = \t, NewLine = \n
How to send CR the hard way
Martyn Currey:
Turning a LED on and off with an Arduino, a HC-06 and Android
Turning a LED on and off with an Arduino, Bluetooth and Android. Part II: 2 way control
Turning a LED on and off with an Arduino, Bluetooth and Android. Part III 3 LEDs and 3 Switches
http://www.martyncurrey.com/android-mit-app-inventor-auto-connect-to-bluetooth/
Instructables YouTube course on Arduino/AI2 - Magesh Jayakumar
BLE extension: http://iot.appinventor.mit.edu/assets/resources/edu.mit.appinventor.ble.aix
BLE app freezes then crashes - registered too many times - Patton
BLE connection on Alcatel requires Google Location turned on - Tim Baudermann
Micro:bit extension. This extension expands the generic BLE extension
http://iot.appinventor.mit.edu/assets/resources/com.bbc.microbit.profile.aix
If you want to just try it out instead of building an app from scratch, here are pointers to sample projects for the LED matrix and temperature sensors:
1. LED overview: http://iot.appinventor.mit.edu/#/microbit/microbitled, project: http://iot.appinventor.mit.edu/assets/samples/MicrobitLED.aia
2. Temperature overview: http://iot.appinventor.mit.edu/#/microbit/microbittemperature, project: http://iot.appinventor.mit.edu/assets/samples/MicrobitTemperature.aia
·
· BLE extension .aix download link (Obsolete)
· BLE built app permission error (Obsolete)
· How to send Beewi multibyte hex strings to BLE (Obsolete) - George Loungos
Create your own Android Apps - Wolber, Abelson, Spertus, Looney (Online book)
Structure and Interpretation of Computer Programs - Abelson and Sussman
(See Images section for Images)
Local subnet chat - kio4 Juan Antonio
Pubnub interface chat example - Taifun
Companion 2.48 bugs
Emergency Companion 2.47 download link
Connecting to App Inventor Emulator and Updating Companion - YouTube
Switching to Landscape in the Emulator Ctrl-F11- Juan Antonio
Debugging issues in running the App Inventor Setup Tools and the emulator on Windows (HAL)
How to run apk on Chrome with ARCWelder - Obsolete, Chrome dropped Apps.
Galaxy S7 USB connection needs RNDIS (USB-Ethernet) (not MTP) developer settings - TFO
http://code.appinventor.mit.edu/ - avoids some AI2 app Engine size limits - J Schiller
How to overcome the App Inventor project limit of 5 MB - Taifun
WebViewer Extension File Downloader - Sivagiri Visakan & ILoveThunkable
Web Viewer File Paths for Development and Production using TaifunTools
Create folder and files on first launch (avoiding error 2101)
http://puravidaapps.com/contact.php (currently not available for projects)
(What did I miss? - ABG)
Fusion Tables Service Account Method - Taifun
(Also see Web Services section of FAQ https://groups.google.com/forum/#!msg/mitappinventortest/2F51UhB4z0A/IcuCSPpOAgAJ)
An older wide ranging thread on School Networks
How to fill out a form of a webpage and click a button using some JavaScript - Taifun
Multiple Input to Pythagorean Triangle Formula - Juan Antonio
(also see Web Viewer section)
How to Sort Lists - Taifun - WebViewer
How to pick a random item from a list without picking duplicates?
Math blocks help (scroll down to see animated pulldowns)
Generate different random numbers in a range - extension - Juan Antonio