Check Mobile App
Read now
Start a Project

detecting Volley library auto request to Server API

Save

Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available on GitHub.

Volley offers the following benefits:

We have seen Volley library automatically call API once more when we call an API. In our case when we request a multipart API then We look that Volley request once more with same data of the first request, So how we detect auto request?

We can solve it by the setRetryPolicy method of Request class.

above multipartRequest is the object instance of Request class.

Now Full request code

 

References: https://developer.android.com/training/volley/index.html

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Excellent work, fast, good quality and understood the brief perfectly! Quick responses developing the project and very good cooperation. I suggest to anyone.

Stathis Plakidas

Stathis Plakidas

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home