Skip to content Skip to sidebar Skip to footer

Android Httppost Network Violation

I have a problem with my android app. I mean I'm using the code from one of tuts in the internet, looks like below public static String sendLocation(String s) { // Create a new

Solution 1:

The problem is that you are trying to do network calls on the main UI thread. Only use those types of methods in a separate thread.

A good example of that is here.

Post a Comment for "Android Httppost Network Violation"