Learn MIT App Inventor in 3-minute micro-lessons
Free 3-minute micro-lessons to learn MIT App Inventor: snap blocks, test on a simulated phone and build apps. Computational thinking path, 8 languages.
AI2.Micro runs in your browser. Please enable JavaScript to use the block editor and the simulated phone.
MIT App Inventor Fundamentals
Beginner
- Designer and Blocks: Meet App Inventor's two editors and make the app show a message when it opens.
- Events: Hello, world!: Make the app react to a button tap.
- User input: Read what the person typed and build a greeting with the join block.
- Properties and colors: Change the screen's background color with two buttons.
Intermediate
- Variables: click counter: Keep a number in memory and increase it on every tap.
- Decisions with if / else: Make the app choose between two paths.
- Lists: magic 8-ball: Store several answers in a list and pick one at random.
- Procedures: Name a group of blocks and reuse it.
Advanced
- Loops: sum from 1 to N: Repeat blocks with "for each number" and accumulate a result.
- Timer with Clock: Use a non-visible component to keep time.
- TinyDB: data that persists: Save information that is still there when the app reopens.
- Project: guessing game: Combine variables, nested conditions and notifications in a game.
Computational Thinking with App Inventor
Decomposition
Break a big problem into smaller parts you can solve one at a time.
- Input, process, output: Break a tip calculator into the three parts every program has.
- Split into subproblems: Solve "how much does each person pay" in two steps: total with tip, then split.
Pattern recognition
Notice what repeats so one idea can solve many cases.
- Find the repetition: Turn five similar calculations into one loop: a number's times table.
- Patterns in numbers: Use the remainder of a division to tell whether a number is even or odd.
Abstraction
Hide the details and give a name to what matters.
- Hide the details with functions: Build a function with a parameter and a result: convert Celsius to Fahrenheit.
- Model with data: Represent flashcards as a list and move through them with an index.
Algorithms
Write precise steps that work for any input.
- The average algorithm: Collect grades in a list and compute the average with sequence, repetition and an accumulator.
- Search algorithm: Look for a name in a list, item by item, using a flag variable.
Debugging and project
Find and fix bugs, then combine all four pillars in a complete app.
- Debugging: bug hunt: This counter ships with two bugs. Find and fix them one at a time.
- Capstone: quiz app: Use all four pillars to build a quiz with questions, answers and a score.
Languages
Independent educational project. Contact: ai2.micro@gmail.com. App Inventor is an open-source project of MIT.