Error With Http Post Connection
I am using a class to use HTTP POST & getting data from a data base via php/json and converting it to a string. The problem is that I am getting 'Error in http connection an
Solution 1:
It seems you might be doing network operations on your app's main thread (that's a common reason for that exception to be thrown).
You should never do that. The main thread should be dedicated only to user interaction, and all network interaction should be offloaded to secondary threads (for instance, use AsyncTask).
For more info, a good read is: http://developer.android.com/guide/practices/design/responsiveness.html
Post a Comment for "Error With Http Post Connection"