Using both URLLoad.load in Haxe and HttpURLConnection.getInputStream in Java made my app stuck for a few (5 ~ 10) secs even though I had created a thread in my code.
I know DNS analysis must be done but why my main UIThread will be stucked?
This happened when I loaded a picture from a domain which I connected at the first time in app . Then the loading icon stopped spinning , == , Tween stopped too. Mouse click could be captured but no MouseEvent dispatched ( and it would be dispatch right after the DNS analysis finished and UIThread recovered???).
How can I keep my app run on smoothly while doing DNS analysis ?
Sorry for my poor English. == . Hope you guys can understand my problem and give me some replies .Thanks!