Basically, the only error I am getting when I try to request a http connection is,
Error in http connection !! android.os.NetworkOnMainThreadException
I am trying to connect to database in my Wamp server using an android emulator and this is part of the code I used,
response = CustomHttpClient.executeHttpPost(
"http://152.226.152.96:89/MPSIP/jsontestscript.php",
postParameters);
I also tried using localhost instead of my IP but I will get the exact same error.
I would like to know how I may establish a http connection with my wampserver. Am I missing out on a step or am I going about it all wrong.
If it helps, I used the guide from,