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
17
votes
5 answers

Check if Volley gets results from cache or over network

How can I check whether Volley gets the results of a JsonObjectRequest from the cache or from the network? I need to show a progress dialog when it needs a network connection but not when the results are quickly received from the cache. my request…
dumazy
  • 13,857
  • 12
  • 66
  • 113
17
votes
5 answers

Token authentication with Volley

If I have a server where I authenticate with username/password and get auth token for subsequent requests, what would be the best approach addressing this problem? The flow should be like this: - Start request - If we don't have auth token - get it…
MantasV
  • 1,485
  • 3
  • 11
  • 9
17
votes
4 answers

Android Volley - orientation changes

How can we deal with orientation changes, Activities/Fragments stoping / resuming using Volley ? I know that for GET requests, the response will be cached and the second time we attempt to make that request, we will get a cached response.(IF the…
Ovidiu Latcu
  • 71,607
  • 15
  • 76
  • 84
17
votes
6 answers

Which provides better Image Loading/Caching - Volley or Picasso?

I'm looking for an open source image loading/caching solution. I am looking in to: Google's Volley, Square's Picasso Universal Image Loader I want to be able to handle async image loads from disk as well as network, however I'm not sure if Google's…
Patrick Jackson
  • 18,766
  • 22
  • 81
  • 141
16
votes
5 answers

handleWindowVisibility: no activity for token android.os.BinderProxy

I have a Login screen and upon success login, it finishes and shows another page that has information about the user. I read about this post and also this post. I also read a lot about how we extend Application class but still it is not possible for…
Massoud
  • 361
  • 1
  • 2
  • 16
16
votes
2 answers

What's the last version of Android Volley?

I'm very sorry to ask this very simple question, but it's more than half hour that I'm trying to find the last version of Android Volley. Here: https://developer.android.com/training/volley/index.html I found dependencies { ... compile…
Stefano Giacone
  • 2,016
  • 3
  • 27
  • 50
16
votes
2 answers

com.android.volley.NoConnectionError - Android emulator with Charles Proxy

I want to proxy network traffic for an Android emulator. I can't seem to get it to work. My emulator is booted up using this: emulator @Nexus_5X_API_23 -http-proxy 10.0.1.17:8888 The IP and port points to what Charles reports in the Help menu.…
Brad
  • 9,113
  • 10
  • 44
  • 68
16
votes
1 answer

How can I get the response code from a VolleyError?

I'm looking for a way to get the response code of a thrown VolleyError. My ErrorListener looks like this: Response.ErrorListener errorListener = new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { …
Bart Burg
  • 4,786
  • 7
  • 52
  • 87
15
votes
2 answers

What does backoffMultiplier mean in DefaultRetryPolicy?

I have created new Job retry policy : new DefaultRetryPolicy(5000, 2, 2); So, What does backoffMultiplier mean in DefaultRetryPolicy?
Rashmi Jain
  • 343
  • 2
  • 10
15
votes
2 answers

com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:

I'm using Volley library in Android in my application and when trying to make POST requests to our server I get the following error: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL…
Daniel Sechel
  • 389
  • 1
  • 2
  • 11
15
votes
4 answers

How to import self-signed SSL certificate to Volley on Android 4.1+

I develop android application which uses Volley. All communication is done via HTTPS connection. Because I test it on local environment, I use self-signed certificates for Tomcat. Before, I had only android 2.3 and 3.0 devices. Now I've got also 4.1…
15
votes
7 answers

Volley Image Caching

I am trying to understand Volley's image caching. I have a fragment with gridview inside it, which will load around 12-30 images. There images are retrieved from server and i am using NetworkImageView for loading these images. I am able to display…
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
15
votes
2 answers

Volley Not Parsing 404 response

Volley returns an error when a 404 response is returned from the server even if that 404 response contains json based error codes. It does not parse the 404 response which contains jason { code: resourceNotFound, msg:message_index } Is there anyway…
TestBest
  • 915
  • 5
  • 12
  • 22
15
votes
1 answer

How many Volley request queues should be maintained?

Currently I am maintaining one static Volley request queue as described here: Instantiating core Volley objects private static RequestQueue mReqQueue; Should there be one and only one static request queue per app? What is the harm in having more…
gitright
  • 277
  • 1
  • 3
  • 10
15
votes
1 answer

Android Volley framework

After watching this year's Google IO session: "Google I/O 2013 - Volley: Easy, Fast Networking for Android" I've decided to replace my current RESTful implementation in favor of using Volley. As suggested I have cloned the repository from googlecode…
woot
  • 3,671
  • 4
  • 26
  • 39