Introduction App to App Inventor

CreatorsJan Pawlowski
SubjectComputer Science
Lenght90 minutes
Pedagogical Approachexplorative learning
CompetencesNew technologies
Block based languages
Grades5-9
TechnologyAppInventor

Introduction: The teacher briefly introduces the topic and explains to the students that they should think about which hobbies and other things they want to present within the app.


Development: The students program their app and create functions that represent their hobbies. The individual steps are given on the worksheet.


Reflection: The students present their finished apps to each other. They reflect how the development process went and discuss their experiences.

Dear children,https://lh6.googleusercontent.com/Ln4derJx8EOFXSwZegVUvSjxPEaNyxLTa9_WiG_WRj5x4XQ05hQONEdd93svYdyf_mp_9xny309cb6oldH8leXGiGh1kd4bXQy-CM26mvRE8ipW6kBzggg4LwzpkKsXG9B4lmXDm

the following worksheet will guide you through your first custom app. 

To do this, first open the App Inventor. 

Now open a new project

https://lh6.googleusercontent.com/JDO566xLkaAoIf53f_KbiXH1osiGeBDnsSqqL5lSBxpaCYB4i7yOpYrLzVwHvKfHyAp2QNDHfQEa0OHNLFrxmoRdfW7M10Q_2oijoP7DnGXcUZJVRFkcY-gCOtE_MD2fOg7SdKN0

Next, you should consider 3 things:

Who are we: each group should briefly introduce themselves by name – your text:

__________________________________________________________________________________________________________________________________

(e.g. Hello, we are Jan and Martin, we both work at the Ruhr West University of Applied Sciences).

Our hobbies: find a picture of the activity you all like, download that picture to your tablet. 

Last, record a short video – think of a task for the rest of the group (run around the house, jump 10 times as high as you can).

Now we start designing the screen. Add 3 “buttons” on the screen (who we are; our common hobby; our task for you).

https://lh4.googleusercontent.com/aij6mdKM9w3aLfJh5BnD-3C8ELN2xMOnA6DWEZAYYZ9uQiuhuxYwF-H3xJS57pMlsU0w4-8ReXh-VmxoMhfvGxf8NoA0bAEVjpSUOdLDQaXFr-j5-SqrQsb_8wQAHocNMD4PEb1F

Now switch to the blocks and we first assign a button. When you click the first button, a text should appear. You need this block.

https://lh4.googleusercontent.com/qDu8ytnIgYIdVc3iBhDjEVIiiuccL44bC-y7EMNrN9TV5qHkyY0_xvLsvPlNluzP1Si2JoMHjCuAlUthK3GICFgSn7G_u5fiBvOFFCk30KbWU0wXdy6XZUx_FpMQhvckwJIn3FiB

Now we have to try the whole thing once. Select the Connect -> “Emulator” – now you have to wait a bit until the emulator starts – this is how it should look like. Press your button….

https://lh6.googleusercontent.com/XmlOIIln8dEcemBFMjub6oQ2pcrcVngrKDa1hCv5_T8K0Ut87u2bKWkp7n0ChzMJgRsAgXlMRebE2VB8NXNqeUB1ldhG7FL8PL8xnSWDVdM3a_PUxqFZP-fziJgBOTTtxKgmM2gQ

You can also test directly on your cell phone. For this you need the MIT AI Companion from the Google / Apple Store.

Select Connect -> AI Companion. You will then get a code or QR code:

https://lh5.googleusercontent.com/TF1fsS-sOwByR_H93U1V0lzDToxWB0DolmV0AiagwH8heC7K4P8xoAnAmPB_wVakPQfr17ijDW0LOVfaD59pS-4hv6t_cXxozVmQiuWTYiDOZX9P6iycbFmy0TxtTAoqKiyHB7rL
https://lh6.googleusercontent.com/6Zr0FYSzXdK06I0Tz0eZz9nzt5rCPkr2l1VUTINKEfbX9SNIK_8EjYsi34T59h-VESNlYDqi4EhTEyV5iZnFTsCCeeBVQg7pwdtpDFcK4KrX2Z8BfaU33DzTmQddCxEXcNI97wX9

Launch AI Companion on the cell phone / tablet. 

Either scan the QR code or enter the six-digit code. And then wait a moment until everything is transferred.

Now try what you see….

Now adds some more elements

  1. A text describing what you can do (click the buttons!) 
  2. A picture of you
  3. A picture of your hobby
  4. An area for video playback

In addition, you need blocks that are not yet visible, e.g. “TextToLanguage”, if you want to have something read aloud.

This is how it might look. Try what looks best when you change the width and height.

https://lh6.googleusercontent.com/bcLlPsZeB4fPyr-kdqQ-FRtKIcfz9b97gxmBSl-eB5jo6yEKNiCDthBe1Unfcaz5K-7wZxqg0qEpf95IMI5LNT6IjU3vVDjjA_O9MkgTF_COcXljCwShHCjR-cwEHV95swZ5XcAZ
https://lh6.googleusercontent.com/lpRnhewiGYgOo4_NA7abX7WMxFWpUfN2wBuKwL748znO85pGnwT8YqHfqRImy68AOX3yblmTAULmp4zxe83X40GQtUce0Qt9JcocrBZRsdDnaGe7bCA5PORHBdC5PgJIFklTZsf4

Now we change the view to the blocks. Take the following block.

Now you can try different things:

  • Have a message read aloud
  • Make an image visible (visible = true / false)
  • Play a video

Try different alternatives – and this is what it could look like:

https://lh6.googleusercontent.com/ItVL3QwmKkA5hwiar5al38zdZF_SvWLfz4IwyFxqzKqwbtisPptWkZd_aboovARmJdfwd4wISdsmAc6Qs69HfFYaViqOq1d2mXl8xm8ALEH3Qb_O1aMZ2BDNDad7AXwxQ1bKh6Ev

And now let’s try out what you all have developed – have fun!

Published by Jan Pawlowski

Professor in Business Information Systems at Ruhr West University of Applied Sciences

Leave a Reply

Discover more from Computational Thinking and Acting

Subscribe now to keep reading and get access to the full archive.

Continue reading