Android Volley Cancel a request

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


// assume a Request and RequestQueue have already been initialized somewhere above

public static final String TAG = "SomeTag";

// Set the tag on the request.

// Add the request to the RequestQueue.

// To cancel this specific request

// ... then, in some future life cycle event, for example in onStop()
// To cancel all requests with the specified tag in RequestQueue

Got any Android Question?