Page 27 - Computer_Genius_v2.1_C7_flipbook
P. 27

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.





                                                                                          App Development     25
   22   23   24   25   26   27   28   29   30   31   32