The problem is here:
@Override
protected JSONArray doInBackground(HTTPConnector... arg0) {
// TODO Auto-generated method stub
return arg0[0].GetAllData();
}
You are getting the first index of the HTTPConnector
array but you never pass any HTTPConnector
to the AsyncTask
:
GetAllDataTask get = new GetAllDataTask();
// Here you need to pass a HTTPConnector to the AsyncTask
get.execute();
So you need to do something like this:
GetAllDataTask get = new GetAllDataTask();
get.execute(httpConnector);