Message Only Received Once On The Server On Android App
I have a server app and client app running separately on different android devices and am broadcasting the message in LAN from client app and server is listening but the problem is
Solution 1:
Remove the line tv1.setText()
inside listenAndWaitAndThrowIntent()
. Only the UI thread can touch views. If you need to set the tv1.setText() you need to do it in the UI thread, there are several methods for doing this, look here.
Post a Comment for "Message Only Received Once On The Server On Android App"