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
1
vote
2 answers

How to properly parse this JSON response with Volley in Kotlin

I'm having hard times trying to parse the following JSON and save it in a list. { "statut": "Success", "rubrique": [ { "rubrique": "Accueil", "position": "1" }, { "rubrique": "Films", "position": "2" }, …
Lyra
  • 61
  • 1
  • 11
1
vote
2 answers

How get an JSONObject from a JSONArray?

I have a problem when try get the json object from json array. The catched error say that JSONArray cannot be convertered to JSONObject. Effectively can get JSON response from web service, but i don't know how convert array to object error…
Lucho
  • 51
  • 1
  • 6
1
vote
0 answers

duplicate data in Volley NetworkResponse

I used the following code to request and cache in the volley public class CacheRequest extends Request { private final Response.Listener mListener; private final Response.ErrorListener mErrorListener; …
1
vote
2 answers

How to retrieve sub-array of an array in json through api using volley in Android?

JSON api file: { "state": "Jammu and Kashmir", "statecode": "JK", "districtData": [ { "district": "Anantnag", "notes": "", "active": 107, "confirmed": 109, "deceased": 1, …
Owais Yosuf
  • 194
  • 1
  • 1
  • 13
1
vote
2 answers

How to get period when data is loaded to stop shimmer?

I am using Volley for requests and want to add shimmer while data is loading. I can perform it with Handler but I don't know when data will come and can't set exact time. Here is code in my Fragment. I want to set value false to variable isShimmer…
Akram Baratov
  • 143
  • 1
  • 3
  • 13
1
vote
3 answers

Recycler View not showing JSON data in kotlin

Here is my main class where I'm adding JASON data in ArrayList using volley. Toast show the JASON data but array does not show any data. I'm trying to solve my error from last 3 days. I also read many questions on stack but i have no solution for…
Faiz E Qamar
  • 133
  • 1
  • 2
  • 11
1
vote
2 answers

javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:

I'm getting the following error while trying to run on devices below android lollipop and it is working really well for version above lollipop. javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:…
1
vote
1 answer

Why does my first Android Volley request take that much time? (3 to 4 seconds)

I'm sending simple string requests with Volley to fetch JSON data. The requests are sent in onCreateView and when the user clicks a button. The first request takes a very long time (usually between 3 and 4 seconds). All other requests take between…
user10981072
1
vote
1 answer

Problem in using a custom header to all my Volley requests

I want to make an Auth header for ALL my Volley requests I have learnt how can I create a header overriding the getHeaders of the request class but I can not change it from every request from time to time and want to make it sort of static or global…
Sunny
  • 27
  • 4
1
vote
1 answer

Volley is not calling onResponse or onErrorResponse methods

Volley is not entering into onResponse or onErrorResponse methods in debug and normal run mode. Last log is: Request is: https://www.google.com/ This is my MainActivity.class: package com.example.myapplication; import…
janusz j
  • 321
  • 3
  • 17
1
vote
1 answer

Problem with Fetch google map data from the database android

I am developing an app that uses Google Maps.So I try to use this code to show the google map marker from database . but when I try it I face problem as following: I use Mysql database and php file to store Latitude and Longitude. Anyone know know…
user12739117
1
vote
1 answer

Multipart file progress updating faster than actual upload

I am trying to send a file to server using Multipart. This is how I am sending the request MultipartRequest request = new MultipartRequest(putURLPath, hashMap, null, new…
1
vote
0 answers

java.net.SocketException: socket failed: EPERM (Operation not permitted) even after setting usesCleartextTraffic to true

The problem occurs when trying to connect to the apache server either using volley or httpURLConnection. I am using a digitalocean ubuntu server running LAMP but that shouldn't matter because the app isn't even connecting to the server. I've…
Tavian T
  • 27
  • 7
1
vote
0 answers

How to use volley post request

I am going to use volley to get data RequestQueue queue = Volley.newRequestQueue(SummaryPhoneActivity.this); String url =…
Water Flower
  • 377
  • 7
  • 23
1
vote
1 answer

I am facing "No adapter attached; skipping layout" error

When I am writing the title of my question, then this site recommends me some answer but I can't find my answer that's why I am writing a new one. I am trying simple RecyclerView and it's run successfully but when I am fetching data from internet…
user10997009
  • 142
  • 8
1 2 3
99
100