Image takes time to load

Apparently there is a bug with the image component. It doesn’t matter where the images come from (assets, external storage). The loading of the images takes between 4 and 83 seconds. Tested on various devices with Android 8, 9.

Note: I repeated these tests again later in the evening and found that the results could hardly be reproduced. The delayed display of the image was still there, but minimal. This morning, however, the problems could be reproduced again. I have no idea what exactly was / is the cause. I suspect it is related to the stability / quality of the WiFi. When the WiFi is diabled, the problems do not arise. (No internet is required in my test APK.)

To work around this issue (bug) (until there is a fix), you have 2 options:

  1. Place the image(s) in an arrangement as a background image
  2. disconnect WiFi (using Taifun’s WiFi extension: App Inventor Extensions: WiFi | Pura Vida Apps)

Check this APK: imageLoad_bug.apk (4.9 MB) (Note: enable WiFi on your device !)
Note: There are no issues at all in AI2: imageLoad_AI2.apk (3.4 MB)

Here is one of my tests (Galaxy Note8 Android 9, Galaxy A3 Android 8):

Screen1:

Screen2:

5 Likes