This post was published at 19 Sep 2017

App Inventor

App Inventor is an application of MIT to teach in a easy way how to program mobile apps. Through a methodology based on games like scratch.

How to install:

  • First, install 32-bits architecture libraries.

    sudo apt-get install lib32z1
    sudo apt-get install lib32stdc++6
    
  • Second, Download the debian package installer pressing here.

  • Third, once downloaded, install using dpkg command:

    sudo dpkg --install appinventor2-setup_2.3_all.deb
    

    The software will be installed under /usr/google/appinventor.

  • Fourth, go to appInventor-WebPage (You should use gmail account).

    aiStarterWeb

  • Fifth, Create a new project, i called FlappyBird:

    aiNewProject

  • Sixth, You’ll have this screen that you can start to develop your app:

    aiproject

  • Seventh, Download APK for your mobile phone pressing here.

  • Eighth, Now you can work using different ways:

    • Connect via USB: To do this whay, you should start your service on your computer.
      Set up the service running the script aiStarter in /usr/google/appinventor/commands-for-Appinventor.

      aiStarter

      Then, press on Connect->USB and wait connection . . . aiUSB

    • Connect via Wi-Fi:
      To do this way, you should press on Build -> APP (could be QR or download apk).
      I choose QR:

      aiQR

      Then, In your mobile phone (with mit app installed) choose on Scan QR Code.
      Once scanned, an url appears. Press on connect with code.
      You app will be installed on your phone.

      app-1 app-2

    • Emulator: To do this way, you should press on Connect -> Emulator.

      aiEmulator

Example

  • Then, I show you an example. First create a project on Projects -> start new project , choose a name and press ok.

  • Using the interface web, just drag items (buttons, sensors, media, etc) in the Designer tab. ai2designer

  • Then, you should make the logic in the Blocks tab. ai2Blocks

  • Finally, generate apk using QR method and try in your mobile phone and have fun :D
    Or Generate apk and install on your mobile phone, or just run the emulator.