Questions tagged [android-volley]

Volley is a Google library for Android that makes networking and remote image loading easier and faster.

Written by Ficus Kirkpatrick and his team, Volley is a library released by Google at I/O 2013. The Google Play Store and a number of apps by Google use this library to perform network requests and remote image loading. The developers at Google claim that network requests performed through Volley are up to 10 times faster than other libraries according to their tests. There is also an official documentation and a Github.

You can clone the GIT repository by running this command:

git clone https://android.googlesource.com/platform/frameworks/volley
6757 questions
13
votes
2 answers

Android volley Timeout Exception when using RequestFuture.get()

In my Fragment, i am trying to use TMDB's open movie DB to get details about "Now Playing" Movies. If i use RequestFuture.get(time, TimeUnit) method to execute this volley request i always get a timeout error. If i manually test the same Url in…
rapidclock
  • 1,677
  • 2
  • 17
  • 32
13
votes
5 answers

Incorrect image rendered with Glide library

I am using the glide library in my android project to fetch and display images. Earlier I was using version 2.0.5 and facing rendering issue. The problem was that the wrong images were rendering. I have updated library to 3.3 version and it now…
Manish
  • 983
  • 1
  • 9
  • 27
13
votes
3 answers

Google Volley vs Android-Async-Http

I am looking into both these Android Http Networking libraries. I would like some peoples experiences with using the two libraries. Personally I have always used the http://loopj.com/android-async-http/ library quite happily. But it was recently…
Zapnologica
  • 22,170
  • 44
  • 158
  • 253
13
votes
3 answers

How to get status code in successful response Volley Android

I would like to ask how to get status code when using Volley. I have following code: StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener() { @Override …
1daemon1
  • 1,001
  • 3
  • 11
  • 29
13
votes
3 answers

How to clear the volley cache automatically?

I want to clear the request queue each 30 minutes for example. So What is the best way to clear volley cache automatically? Override methods by extending the volley cache class? Or build a timer which will clear the cache every times i need?
JohnnyBeGoody
  • 253
  • 1
  • 3
  • 15
13
votes
1 answer

What is the Maximum Size of the Volley-Library Request-Queue

I am using Volley library in Android, I want to know what is maximum size of queue is allowed using Volley library. There is nothing I found related to this. As I know you need to add the network request to the queue but I don't know what is maximum…
Bot
  • 2,285
  • 3
  • 17
  • 20
13
votes
3 answers

Setting Request Priority Volley

I am trying to set the priority of my requests using the Volley library in Android. I cant find out how to set the requests priority. StringRequest request = new StringRequest(Request.Method.GET,"feed URL",volleyListener,…
13
votes
2 answers

NPE when getting Robolectric ShadowApplication with Volley and Dagger

In my Android application I have set up Volley. Robolectric.application is initialized and all other tests runs smoothly. I get this error when trying to get mocked HTTP response. This is my test: @RunWith(MyRobolectricTestRunner.class) public class…
Martynas Jurkus
  • 9,231
  • 13
  • 59
  • 101
13
votes
6 answers

Android Volley - how to animate image loading?

any idea how to play a fade in animation when image loads? Now it just blinks into place. I am using NetworkImageView from the Volley toolkit. Also, is there a way to set loading and error bitmaps on the network image view without using the…
urSus
  • 12,492
  • 12
  • 69
  • 89
12
votes
2 answers

Volley requests not working with Django Sessions

I have a Django script running on the server that creates session variables for every request sent to the server. The script returns a specific value based on the previous stored session variables. When I tested the script on the browser, the…
GodSaveTheDucks
  • 756
  • 5
  • 19
12
votes
3 answers

Pass Parameter with Volley POST

I was able to call an HTTP endpoint using Postman and these parameters: { "name":"Val", "subject":"Test" } However I am unable to do the same with Volley through Android: Here is trying to use JSONRequest: HashMap params2 =…
Val Okafor
  • 3,371
  • 13
  • 47
  • 72
12
votes
3 answers

How to send a POST request with JSON body using Volley?

How to pass these parameter into POST method using Volley library. API link: http://api.wego.com/flights/api/k/2/searches?api_key=12345&ts_code=123 Screenshot of JSON structure I tried this but again facing error. StringEntity params= new…
Pawandeep
  • 315
  • 1
  • 3
  • 19
12
votes
7 answers

Android Volley Request Identity onErrorResponse Section

public void getTestDats(String unique_id) { final String tag = "testList"; String url = Constants.BASE_URL + "test_module.php"; Map params = new HashMap(); params.put("user_id",…
comeback4you
  • 716
  • 1
  • 8
  • 24
12
votes
4 answers

Volley in Android M developer preview: org.apache.http cannot be resolved

I'm testing Volley's HurlStack in Android M Developer Preview. After I change compileSdkVersion from 22 to 'android-MNC', all classes from org.apache.http are not compiled: import org.apache.http.Header; import org.apache.http.HttpEntity; import…
Song
  • 504
  • 7
  • 17
12
votes
3 answers

SSL Exception when using Volley

I'm using Volley in Android to perform my app requests. Unfortunately, I'm getting the following error: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:…
Edson Menegatti
  • 4,006
  • 2
  • 25
  • 40