scsjc Well-Known Member Licensed User Longtime User May 23, 2017 #1 Hello, I'm use a Socket.ResolveHost to get ip from host, with a DisableStrictMode https://www.b4x.com/android/forum/t...-networkonmainthread-exception.44760/#content Have a another solution without DisableStrictMode?
Hello, I'm use a Socket.ResolveHost to get ip from host, with a DisableStrictMode https://www.b4x.com/android/forum/t...-networkonmainthread-exception.44760/#content Have a another solution without DisableStrictMode?
Erel B4X founder Staff member Licensed User Longtime User May 23, 2017 #2 You shouldn't use ResolveHost at all. Why do you need it? You can set the host name in the Initialize method. Upvote 0
You shouldn't use ResolveHost at all. Why do you need it? You can set the host name in the Initialize method.
scsjc Well-Known Member Licensed User Longtime User May 23, 2017 #3 Erel said: You shouldn't use ResolveHost at all. Why do you need it? You can set the host name in the Initialize method. Click to expand... Many thanks EREL for your answer, the truth is that I had not seen that when initializing can be done with Host Name. Every day I learn a lot more. Thank you Upvote 0
Erel said: You shouldn't use ResolveHost at all. Why do you need it? You can set the host name in the Initialize method. Click to expand... Many thanks EREL for your answer, the truth is that I had not seen that when initializing can be done with Host Name. Every day I learn a lot more. Thank you