Android Question Ftp file transfer - Android app user interface completely frozen

amorosik

Expert
Licensed User
I have an app Android that send file on pc via wifi network
This is the example followed
The files is 1-2 Gygabyte, and so the transfer time is tens of minutes
After the start of the transfer operations, the user interface is completely frozen, meaning that even if the transfer takes place in the background the user interface seems to be heavily affected
How do I allow the user interface to be used when transferring big dimensions files?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is the example followed
I've just added to this tutorial:
Old and irrelevant tutorial. Follow this one instead: [B4X] Net library (FTP, SMTP, POP) with Wait For

The actual uploading happens in the background. The UI shouldn't be frozen. The performance might be degraded but it shouldn't be frozen.

With that said, it is very problematic to upload 2gb file like this. If you have control over the server then it is better to create a jServer that accepts the files in chunks and allows your app to resume uploads.
 
Upvote 0

amorosik

Expert
Licensed User
Ok many thanks
Yes, I have full control over the ftp server
I will try the first suggestion then eventually the division into chunk
 
Upvote 0

amorosik

Expert
Licensed User
I tried the first suggestion, and already with the Wait For ... it works leaving time for the user interface to react
And so for me it is already enough like this
 
Upvote 0
Top