Android Question Best way to upload and download files to internet? Simple example?

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Have a large amount of data that would be too much to go into the .apk file.
What would be the best way to upload this data (ideally from the phone) and then download it and process it?
The data will be in a simple .csv or .txt file.
Once I have the data in File.DirRootExternal I can process the .csv or .txt file and move the data to SQLite.
Did quite a bit of searching the forum, but not clear to me what the best way would be.

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
LOL. $^@&ing technology. It could be that you swapped from debug to release mode or vice-versa. Or maybe B4A-Bridge lost and restarted connection. Like, mostly when I F5, I get asked about scanning the app etc, but sometimes - no idea why - it skips that and just runs. Still a mystery. But as long as the app runs, I'm happy.

Back in 2018, sometimes B4A would go into a mode where it wouldn't run the app, ever after closing and restarting everything. Only seemed to happen when a delivery deadline was approaching. Nothing would fix it, and then a day or two later, it would start working again, all by itself. Happened on different phones, too. Also not just to me. Anyway, whatever that $&#* was, seems to have been fixed.
Another thing is that adding some 100 Mb to assets can make the IDE a bit iffy, eg. temporary freezes. I only put them in to try something out or if I need to make a new .apk.

RBS
 
Upvote 0

emexes

Expert
Licensed User
Longtime User
Another thing is that adding some 100 Mb to assets can make the IDE a bit iffy, eg. temporary freezes.

I did give a heads-up about that but it seems our British tendency towards understatement (slow, bit iffy) may have brought us unstuck. 🍻

The main problem I noticed with a big file in the Assets folder, was that the automatic regular timed backup would slow the computer down whilst it compressed the big file. It was bearable when the file was pre-shrunk.
 
Upvote 0
Top