如何使用android更新PHP中的交付状态

时间:2017-09-03 18:15:31

标签: android

我甚至都不知道我是对的。我的思维状况目前无效。有些人可以告诉我如何更新deliverystatus

这是AdapterClass

中的代码
delivered.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        String serverURL= PathUrls.pathUrl+"evs_updatedeliverystatus.php?db="+companyName.getString("companyName","")+"&invoiceid="+dlb.getInvoiceNo()+"&deliverystatus=1";
        JsonObjectRequest jsonArrayRequest=new JsonObjectRequest(serverURL, new Response.Listener<JSONObject>() {
            @Override
            public void onResponse(JSONObject response) {
                Log.d("update delivery list",response.toString());
                deliveryListBeans.clear();
                notifyDataSetChanged();
            }
        }, new Response.ErrorListener() {
            @Override
            public void onErrorResponse(VolleyError error) {
                VolleyLog.e("Error DeliveryList:%n %s ", error);
                Toast.makeText(ct,"NetworkError Not Responding", Toast.LENGTH_SHORT).show();
            }
        });
        //Toast.makeText(ct, "companyName"+companyName.getString("companyName","").toString(), Toast.LENGTH_LONG).show();
        VolleySingleton.getsInstance().getRequestQueue().add(jsonArrayRequest);
    }
});

0 个答案:

没有答案