Java Code Examples for java.lang.reflect.Method.PUBLIC

The following are Jave code examples for showing how to use PUBLIC of the java.lang.reflect.Method class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Attribution   File:   Source Code and License Vote up 8 votes
private void getPhone(String str) {
    String url=""+str+"";
    RequestQueue queue = Volley.newRequestQueue(this);
    StringRequest request = new StringRequest(Method.PUBLIC, url,
            new Response.Listener<String>() {
                // 成功
                public void onResponse(String json) {
                    //Toast.makeText(MainActivity.this, "成功:"+json, Toast.LENGTH_SHORT).show();
            }, new Response.ErrorListener() {
        // 失败
        public void onErrorResponse(VolleyError errorLog) {
            Toast.makeText(MainActivity.this, "失败:"+errorLog.toString(), Toast.LENGTH_LONG).show();