Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - 2615_KEC
P. 109

    Step 17  Click on the               block.

                               The list of coding blocks appears

                     Step 18  Drag the when Pedometer1.SimpleStep block to the workspace.

                     Step 19  Click on the            block.

                               The list of coding blocks appears.

                     Step 20  Drag  the  set Label1.Text to block  to the workspace  and connect  it to  when
                               Pedometer1.SimpleStep.
                     Step 21  Click on simpleSteps and a drop-down list will appear.

                     Step 22  Drag get simpleSteps and attach it inside set Label1.Text to.

                     Testing the Pedometer App

                     App Inventor allows us to test our app while creating,
                     so to test your app, connect your android device and

                     download MI A12 companion.
                     Step  1   Click on the Connect menu.

                     Step  2   Click on AI Companion from the drop-down
                               list.

                               The Connect  to  Companion  message  box
                               appears.
                     Step  3   Open  MIT  A12 Companion on your  device

                               and connect  by  scanning the QR code  or
                               typing the code displayed on your screen.

                     Once you finish testing the app, you can start using it. Make sure it counts steps correctly,
                     is easy to use and doesn’t slow down your phone or use too much battery.

                     Debugging Pedometer App
                     If the Pedometer App is not working properly, debugging helps to find and fix mistakes.

                     This makes sure the app counts steps correctly and shows the right numbers on the screen.
                     Checking the step sensor, settings and app permissions can help solve the problem and
                     make the app work smoothly.

                                                                                           Sensors and App Functionality  107

| 104 105 106 107 108 109 110 111 112 113 114 |