Category: Data, android

In my previous article, I had shared some concepts of socket programming and gone through how to connect two Android devices using socket communication.

In this part, we will learn how to send data between two devices once they are connected.

To send a list of files, you need to get the total size of the file and send the size to the receiver.

THen, you can start reading files, while sending and receive the files show progress bar to show file is being send.

This way, you can also show the list of files received, and before sending, show all the files in the list view.

Related Articles