Android Question Error in Network Library (android.os.networkonmainthreadexception)

ahmadalibeck

Member
Licensed User
Longtime User
I am trying to send "Text" through TCP IP. I don't want to use AsyncStreams nor RandomAccessFile, I want to use the basic ReadBytes command, and convert the data fro Byte to String using BytesToString command.

As you can see in the attached picture, the Error is coming in the ReadBytes command itself. Any body can help me in this error.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    317.3 KB · Views: 242
Top