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
1 answer

Volley is showing timeout error if I am using mobile data

I tried many wifi and mobile data but it's issue just on my mobile. Whenever i try to send a volley request get a timeout error. I don't know why just my device is causing this issue. Can anyone explain this?
1
vote
0 answers

How to android kotlin volley connect REST API

I want to get admin token from Magento server on REST API with Volley I don't know to pass a parameter to API or Authentication API I ref from Magento…
TENZENROTH
  • 52
  • 4
1
vote
0 answers

Unexpected response code 403 in android when using NewsApi

Whenever i am using the NewsApi it gives me E/Volley: [593] NetworkUtility.shouldRetryException: Unexpected response code 403 for https://newsapi.org/v2/everything?q=Apple&from=2021-04-23&sortBy=popularity&apiKey=1ea1cbe36dfd4fdcb846a6f885593f95…
MobixProd
  • 11
  • 1
1
vote
3 answers

Value type org.json.JSONObject cannot be converted to JSONArray

Not sure where I make a mistake. Code: public class VaccinationTotalUSA extends Fragment { RecyclerView rvRecentRecord; ProgressBar progressBar; private static final String TAG =…
1
vote
0 answers

Why Volley Request Future get() method running forever

I am trying to make a synchronous Volley networking request. I tried to use request future to do the work. So What I am trying to do is request a JSON array, and parse it to an Array List, then use this list to set up a list view layout. Here is the…
1
vote
1 answer

API being called twice while clicking on a button unexpectedly in Android

When I press Upload button in my app, the API that is called from string URL executes twice. How can I handle the behaviour correctly so that the API is executed just once on a single click ? This is the Activity Code: public class…
1
vote
2 answers

Volley in android giving Message Execution time is too long error

I am new to android Please help me with this problem. I am fetching JSON via volley API but it is showing too much work on the Main thread. Everything is working fine but when comes to making a request nothing happens. I have mentioned the Error…
1
vote
2 answers

how to fix com.android.volley.ClientError in android studio

when i click login button, that alert will show up, i use com.android.volley:volley:1.1.1 and for api, i use restframework from python this is my mainactivity.java code @Override protected void onCreate(Bundle savedInstanceState) { …
Naufal
  • 89
  • 2
  • 8
1
vote
1 answer

Why does my spinner not displaying selected item

I have a spinner in my activity that gets its data from a volley call. The data shows in the spinner. But when I click on a specific item in the spinner it does show. Spinner Code private fun spinner() { val spinner =…
Fourie
  • 55
  • 8
1
vote
1 answer

RequestQueue In Android

I have doubt in the code provided in documentation for Sending A Simple Request. val queue = Volley.newRequestQueue(this) val url = "https://www.google.com" // Request a string response from the provided URL. val stringRequest =…
yash
  • 35
  • 1
  • 6
1
vote
1 answer

Volley to Retrofit2 - How to do a String Request with Retrofit2?

I would like to migrate to Retrofit2 the following Volley string request. This request retrieves a response body as String, which I parse myself. fun updatePodcastEpisodesRQ( url: String) { val feedReq = StringRequestUTF8( …
u2gilles
  • 6,888
  • 7
  • 51
  • 75
1
vote
1 answer

Google Volley POST request in android studio with JSON body?

This is my piece of code that I am using to make a POST request. RequestQueue requestQueue = Volley.newRequestQueue(MainActivity.this); String url = "myUrl....."; StringRequest stringRequest = new…
Rohan Patel
  • 31
  • 1
  • 8
1
vote
2 answers

Android Volley Request utterly fails

I am trying to get data from an Http request to my own API. Running the request in my browser (swapping the IP with localhost) gets…
craybobnee
  • 55
  • 7
1
vote
0 answers

Android Volley JsonObjectRequest times out, but explicit IP:port request works

I have a REST API in go on my server VM, with gorilla/mux: router := mux.NewRouter().StrictSlash(true) log.Fatal(http.ListenAndServe(":49186", router)) I have an exposed IP and the domain forwarding set up on Godaddy as: [http://],…
craybobnee
  • 55
  • 7
1
vote
0 answers

handleWindowVisibility: no activity for token android.os.BinderProxy in second run

I am making a simple app to download video from a website using volley. So when i opened my app for first time everything was fine but when i opened app second time after closing app with back button , then i got a error or warning. Now i can't use…
Golu
  • 350
  • 2
  • 14