Page 319 -
P. 319

mobile app development



                        Test Drive




                       Let’s give the latest version of your app a go. Copy the app to your emulator, and put the new CGI
                       script in your cgi-bin folder on your web server (remember to set the executable bit, if needed).
                       What happens when you run your latest app using the emulator’s Python shell as opposed to the
                      “run wheel”?


                 You are dumped into the
                 Python shell with a rather
                 nasty error message.











            You’re getting a
            “TypeError”.























                                                   After reading the error
                                                   message, click “Yes” to return
                                                   to the SL4A script listing.




           Yikes! Your code has a TypeError, which is crashing your app when you try
           to display the selected athlete’s timing data. Why do you think this is happening?


                                                                                      you are here 4    283
   314   315   316   317   318   319   320   321   322   323   324