Page 18 - Dig_CodeAI_V2.1_Class_7
P. 18

Adding a Button
                  Drag and drop a button from the Palette pane to the View pane.


























                  Testing the App
                  App Inventor allows us to test our app while creating. To test your app, connect your android device
                  to the Internet and download MIT AI2 Companion. Then, follow the given steps:


                                                                1  Click on the
                                                                 Connect menu.


                            1  Select AI Companion
                           from the drop-down list.













                                                                   3 Open MIT AI2 Companion on your device
                                                                   and  connect  by  scanning  the  QR  code  or
                                                                   typing the code displayed on your screen.


                  Make sure your device and computer are connected to the same wireless network to perform these steps.
                  If you do not have any android device, you can download Emulator on your computer which works
                  just like an Android device but works on the computer. The commonly used Android Emulators are
                  Android Studio, LD Player, BlueStacks etc.


                  Rename the Button
                  In the components pane, Button is displayed as Button1, you can rename it.





                       16    DigiCode AI (Ver. 2.1)-VII
   13   14   15   16   17   18   19   20   21   22   23