Quiz App. How to download images from Airtable when app starts

Dear @Boban thanks for your time and co-operation. I have read, tried and done. I have done it another way see the blocks:


Now the next task is:
  1. check whether the internet is available on app startup
  2. if internet is available check the already files and download if the new files are available.
  3. secure the folder where the files are downloaded. Means the files should not be shown in gallery (done it with .nomedia). The user must not access the files but these are available for app

Any piece of help please?

1 Like

Use the built in component

You need to do it even for the first run however, since we have different set-up of code I don’t know if this helps and should be run at the beginning

Check if the file exists, for this you need to use Taifun’s file extension


Two files are missing and again you need to use the same procedure as you did at the first run

Just to be clear so that there will not be any confusion in this, you are using my solution

bild

bild
bild

/Boban

2 Likes

Btw, regarding the code above I don’t know if is the best way to do it, as I’m tired and need to sleep now :sleeping::sleeping::zzz::zzz:

/Boban

1 Like