Android Question NetworkOnMainThread problem

Loris Anoardi

Member
Licensed User
Longtime User
my network calls are managed in a service module (Tcp socket server used for receiving messages from a windows pc).
How can i use a separate thread without changing the sdk version to 8?
Is there an example?
thanks
 

Loris Anoardi

Member
Licensed User
Longtime User
Erel i get this error:
java.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol.

i tried to look in some posts but i didnt understand what i shoud do to solve. I need only to send a string...
 
Upvote 0
Top