不支持给定的路径格式

时间:2017-06-22 14:14:25

标签: visual-studio-2015

不支持给定的路径格式。请帮忙

public void loadMore(int page) {

    String url = url + page;
    StringRequest stringRequest = new StringRequest(url, new Response.Listener<String>() {
        @Override
        public void onResponse(String response) {
            ArrayList<Deal> deals = new JsonConverter<Deal>().toArrayList(response, Deal.class);
            adapter.addAll(deals);



        }
    }, new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError error) {
            Log.d(TAG, error.toString());
            Toast.makeText(getApplicationContext(), "Bad Network Connection. Please Try Again", Toast.LENGTH_LONG).show();
            stopAnim();

        }
    }
    );

    int socketTimeout = 30000; // 30 seconds. You can change it
    RetryPolicy policy = new DefaultRetryPolicy(socketTimeout,
            DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
            DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);

    stringRequest.setRetryPolicy(policy);
    MySingleton.getInstance(getApplicationContext()).addToRequestQueue(stringRequest);
    mSwipeRefresh.setRefreshing(false);


}

0 个答案:

没有答案