Hello New guy here. I have been playing with App Inventor off and on for 2 or three years and am currently working on an app that I have had in mind for literally years.
Attached Upload is the .aia file for the App I am working on wherein the Tap to arm Timer and GPS button has stopped working entirely. As you will see the only thing it is currently supposed to do is Print a Msg in TestLabel4. In the compiled .APK the button does nothing and after a few moments I get a Msg that the APP is not responding. Can anyone see the reason for this?? Veh_Perf_AnalyzerF_Screen_checkpoint3.aia (265.5 KB)
will never be updated. This is due to the fact that Appinventor is a "single thread" type of code, therefore external events (like the GPS updating) will never be in degree to interrupt the while execution.
If you want to allow background tasks to run while the foreground app is in execution, you shall use the Itoo extension (by @Kumaraswamy). In your case you shall allocate the GPS task in background, and share with the foreground the related variables (by using the store/fetch properties).
I've published some time ago, an example that can give you some idea, about: https://community.appinventor.mit.edu/t/multithread-delay-flow-interruption-by-means-of-itoo/114233/9
Or, much easier, you can use the clocks, as @ABG has said, to run periodically the GPS tasks and avoid the use of the "while test".
Best wishes.
Apparently that is related to the issues I am having with a non functional button. I believe my only recourse is to start from a clean slate and rebuild the app.
Figured it out. problem was in the designer screen. Apparently the Tap button was some how corrupted. I deleted it and reinstalled it and now everything appears to be working.