i am trying to get JSON values from server. I don\'t know what is wrong with my code. I am using AsyncTask and here is my code in doInBackground
AsyncTask
doInBackground
You are probably getting a blank response. Its not null but the jsontext is empty. So you are getting this error and not a Nullpointer exception
Are you sending right parameters to server.Also Check url respond to POST requests or not.