Android 如何获取登录api的响应,以便使用volley对内容类型为application/x-www-form-urlencoded的json数据执行登录

Android 如何获取登录api的响应,以便使用volley对内容类型为application/x-www-form-urlencoded的json数据执行登录,android,json,login,android-volley,Android,Json,Login,Android Volley,对于这个Json数据,我有参数、内容类型和URL。如何使用此Json响应的截击来执行登录。我希望此项目将帮助您链接:试试这个。。。 我无法得到答复。我应该为Json响应使用StringRequest吗?StringRequest StringRequest=new StringRequest(Request.Method.POST,URL,new Response.Listener(){@Override public void onResponse(String Response){if(Re

对于这个Json数据,我有参数、内容类型和URL。如何使用此Json响应的截击来执行登录。

我希望此项目将帮助您链接:

试试这个。。。
我无法得到答复。我应该为Json响应使用StringRequest吗?StringRequest StringRequest=new StringRequest(Request.Method.POST,URL,new Response.Listener(){@Override public void onResponse(String Response){if(Response.equalsIgnoreCase(Config.LOGIN_SUCCESS)){Intent Intent=new Intent(LoginActivity.this,ProfileActivityclass);startActivity(Intent);}
{  
   "status":"success",
   "contents":[  
      {  
         "id":"100",
         "event":"",
         "name":"ww",
         "email":"abc@gmail.com",
         "phone":"",
         "zip_code":"",
         "state":"",
         "password":"@ww",
         "sports_id":"3",
         "sports_name":"BASEBALL",
         "mascoat_name":"ww",
         "logo":"https://www.gstatic.com/webp/gallery/1.jpg",
         "logo1":"https://www.gstatic.com/webp/gallery/1.jpg",
         "file":"http:\/\/something.com\/assets_admin\/uploads\/file\/",
         "status":"1"
      }
   ]
}
JSONObject json = new JSONObject(response);

 String status= json.getString("status");
 JSONArray jsonarray = json.getJSONArray("contents");

 JSONObject c = jsonarray.getJSONObject(0);
 String emil= c.getString("email");
 //remaining data you will