amorosik Expert Licensed User Longtime User Aug 24, 2021 #1 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?
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 Aug 25, 2021 #2 amorosik said: This is the example followed Click to expand... 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 said: This is the example followed Click to expand... 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.
amorosik Expert Licensed User Longtime User Aug 25, 2021 #3 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
Ok many thanks Yes, I have full control over the ftp server I will try the first suggestion then eventually the division into chunk
amorosik Expert Licensed User Longtime User Aug 26, 2021 #4 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
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