Loris Anoardi Member Licensed User Longtime User Sep 21, 2015 #1 Referring to https://www.b4x.com/android/forum/threads/android-network-tutorial.7001/ i need to create a syncronous socket (Android -> PC), i don't want to write code in the socket connected event but i want to write code in the same sub, for example: socket.connect (wait for socket connected) if socket.connected then socket.senddata end if socket.close is this possibile? thanks
Referring to https://www.b4x.com/android/forum/threads/android-network-tutorial.7001/ i need to create a syncronous socket (Android -> PC), i don't want to write code in the socket connected event but i want to write code in the same sub, for example: socket.connect (wait for socket connected) if socket.connected then socket.senddata end if socket.close is this possibile? thanks
DonManfred Expert Licensed User Longtime User Sep 21, 2015 #2 Loris Anoardi said: is this possibile? Click to expand... No. You cannot hold the mainthread. This is how android works. Upvote 0
Loris Anoardi said: is this possibile? Click to expand... No. You cannot hold the mainthread. This is how android works.