For some reason, I am unable to load data from my file when the internet is not connected. Here is the code:
What is your responseCode when not online?
you will have to use the Screen.ErrorOccurred event, catch that error and load your file from the assets there
Taifun
I'm new to app inventor, could you please help me with this?
find the ErrorOccurred event in the Screen drawer and move these blocks inside
also the showNextQuestion procedure you should move into the File.GotText event to call that procedure after the file has been read
Taifun
fix your showNextQuestion procedure
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.