Table of Contents

Lab 9: App Inventor

Hello Kitty App

Step I: Preparing the environment

Step II: Choose the tools in Designer

Step III: Setting the properties

Upload New…

Step IV: Programming with Blocks Editor

Faza V: Wrapping the app

1. Show barcode: generates QR codes, which can be used to install the app on a device with a camera, by scanning the QR code through some app like ZXing barcode scanner (available in Google Play). \\Please note that this QR code works only on the personal device because it is associated with your google account. In case you want to share the QR, the apk file needs to be downloaded in the computer and you have to use a third software to convert the code.

2. Download to this Computer: download the app on the computer as an apk file, which can be easily shared, by manually installing it on other devices.

3. Download to Connected Phone: download the application straight to the phone connected to Blocks Editor.

Exercise: Make the cat meow.

Go to Blocks Editor, open Sound1 drawer and drag Sound1.Vibrate and place it under Sound1.Play. There will be a warning icon, due to the lack of one piece

Sound1.Vibrate has a function to specify the length of the vibration in milliseconds.
Go to Built-In, in Math drawer and choose the number block. Place it inside Sound1.Vibrate. Replace 123 with 500 for half a second vibration. Connect the phone and touch the cat. It should meow and vibrate at the same time.

Exercises

Make an app which will stand for a remote control. You will send values from the app to the board's pins. You can choose whether to control the PWMs or the digital pins of the Edison.

  1. One method would be by using GET. IT will perform HTTP GET request via the URL property and expects the response.
  2. Or you can do this by sending a post request to an IOT server.
    You have to create an application which has a web component.

Now, you will have many functions to configure your app. To make the application work you will need some of the following blocks to help you.