Skip to content Skip to sidebar Skip to footer

Android Studio Says Volley.NoConnectionError: Java.io.EOFException, What Is This?

I have a super basic register script in android studio. Im trying to get it to connect to a php file located in the Localhost of XAMMP. My question is unique because i directing my

Solution 1:

try this

int socketTimeout = 500000;//30 seconds - change to what you want
            RetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);
            stringRequest.setRetryPolicy(policy);
            // Creating RequestQueue.
            RequestQueue queue = Volley.newRequestQueue(CreateUser.this);

            // Adding the StringRequest object into requestQueue.
            queue.add(registerRequest);

Post a Comment for "Android Studio Says Volley.NoConnectionError: Java.io.EOFException, What Is This?"