Transfer data from android to java desktop application
问题 I run an application in Android and a string value as an answer. Now I want to pass this result to the Java server which is on my localhost, i.e pass the value from Android code to Java desktop application. I tried using this code, but when I run the client it says unfortunately the application has stopped. It says: android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145) libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84) libcore.io.IoBridge.connectErrno(IoBridge.java