App Inventor for Android’s visual block language

Comments Off on App Inventor for Android’s visual block language

1. Open your web browser and go to https://appinventor.mae.cornell.edu/.

  1. Click on “Start building” or “Create new project”.

  2. Give your project a name, like “HelloWorld”, then click “OK”.

  3. You will be taken to the App Inventor interface with a palette of components on the left and a viewer for your design screen at the top.

  4. From the Palette, under “User Interface”, drag two items onto the Viewer:

    • A label (Label1)
    • A button (Button1)
  5. Click on Button1 to select it. In the Properties pane (right side), set ‘Text’ property to “Say Hello”.

  6. Now click on Label1 to select it. Change its Text property to “”.

  7. From the Palette, drag a “When Button1.Click do” block onto the Blocks Editor (bottom).

  8. Within this block, click on the blank space to add another block. Search for and add a “set [Label1.Text] to [“”]” block.

  9. Still inside the “When Button1.Click do” block, add another action block by clicking the “+”.

  10. Search for and add a “set [Label1.Text] to [“” + Hello + “”]” block. This will concatenate the strings “”” with your desired message, in this case “Hello World!”.

  11. The final Blocks should look something like:

    When Button1.Click do
    set [Label1.Text] to [“” + Hello + “”]

  12. Connect all blocks properly by dragging from one block to another as indicated.

  13. Click on the “Build” button in the top right corner of the screen. A popup will appear showing the progress. Wait for it to finish.

  14. Once completed, click on “Download .apk” to save the file to your computer. Install this APK file on an Android device or emulator to test the app.

When you run the app and tap the “Say Hello” button, “Hello World!” should appear on the screen.

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns App Inventor for Android’s visual block language programming language, beautiful background, magnificent scenery, Orest Kiprensky style, HD, sharp focus, stunningly beautiful, High Fashion, dynamic, dramatic, haute couture, elegant, ornate clothing, High Fashion

Negative prompt
ugly, deformed, noisy, blurry, low contrast, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: granite3.2

Image model: EventHorizonPictoXL