I tried the code shown below, but data not showing.
This is the URL from where I'm fetching the JSON Object
http://ibacor.com/api/cek-resi?pengirim=jne&resi=1892297430009
@Override
protected Void doInBackground(Void... arg0) {
// Creating service handler class instance
try {
JSONObject obj = new JSONObject(url);
obj.getJSONObject("query").getString("pengirim");
Log.d("Response: ", "> " + obj);
} catch (Exception e) {
// TODO: handle exception
}
return null;
}