Skip to content Skip to sidebar Skip to footer

Java Socket Programming - Wont Work In Android 4.1?

In my Android project I just have one Activity - 'MainActivity.java'. I added another class file in the same package 'GetSocket.java'. Functionality of GetSocket.java is it will re

Solution 1:

Sorry about the late response. Found the problem to my solution. From 4.0 Android doesn't allow socket programming through the UI thread. I used Async Task to hand the socket in a separate background thread. It worked.


Solution 2:

Check your manifest for internet permission :)


Post a Comment for "Java Socket Programming - Wont Work In Android 4.1?"