This is the code
@Override
protected String doInBackground(String... params) {
List<NameValuePair>param=new ArrayList<NameValuePair>();
param.add(new BasicNameValuePair("token_type",tToken));
param.add(new BasicNameValuePair("access_token",acToken));
String json=jsonParser.makeHttpRequest(URL_ORDERS,"GET",param);
Log.d("JSON ",json);
This is the tToken and acToken
JSONObject obj=new JSONObject(getIntent().getStringExtra("jsonToken"));
Log.d("Orders Response",obj.toString());
acToken= obj.getString("access_token");
tToken=obj.getString("token_type");
The problem is in the line String json=jsonParser.makeHttpRequest(URL_ORDERS,"GET",param);
It gives me this error
required java.lang.String found org.json.JSONObject
i do understand the problem but i don't know how to fix it