Track FTP upload data in android?

后端 未结 3 1737
粉色の甜心
粉色の甜心 2021-02-06 15:36

I have a working FTP system with android, but I want to be able to track the bytes as they get uploaded, so I can update a progress bar as the upload progresses. Is this possibl

3条回答
  •  囚心锁ツ
    2021-02-06 15:45

    This question has an implementation of an InputStream that includes a progress callback. Use that InputStream and call publishProgress from that callback for incremental updates during the file upload.

提交回复
热议问题