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

Is there any way to use API with headers and API KEY using Volley to develop Android App?

I found some good APIs on RapidApi i wanted to use for developing Android and iOS apps but those Apis require Headers and API KEY for GET requests and i cant find any tutorial or solution as to how to use such APIs where headers are necessary for…
1
vote
1 answer

how to make this in Kotlin callback?

could you how I do this callback written in java, in kotlin, the code is basically based on a case that makes a request with the volley library and I need to obtain the response through the interface, I would appreciate it Volley class ... …
1
vote
0 answers

Curl to android volley conversion

i am trying to convert curl request into volley but i'm getting com.android.volley.AuthFailureError i have tried all the stack overflow answer but didn't helpful, i will be very thankful if someone help me what's i'm doing wrong. curl: curl -X POST…
1
vote
0 answers

How to integrate Volley into the MVVM pattern to periodically synchronize my remote database with my local database

I am trying to correctly implement the MVVM pattern in my application. What I want to do is a regular synchronization of a local database on the device with a remote database. The tools to achieve this would be the following: Use…
A. Cedano
  • 557
  • 7
  • 39
1
vote
0 answers

Android: HTTP request with Volley fails to call with parameters

I deployed a NLP model as an API with Flask. Now I want to call the API from my simple Android app to process some text and to return a prediction, however when the Android App performs the HTTP request using Volley it does not add the parameters in…
1
vote
1 answer

Gradle: Cannot resolve symbol RequestQueue

I have added implementation 'com.android.volley:volley:1.1.1' I have also used compile 'com.android.volley:volley:1.1.1'` I did it in my build.gradle (Module:app) file. I have added internet permissions in my Manifest. Also, I have tried this…
aDoN
  • 1,877
  • 4
  • 39
  • 55
1
vote
1 answer

Get multiple selected data from recycler view and store the data to database

i have a recycler view that show data from json api. i make it as multiple selection so user can select more than 1 data from the list. i want to store the selected data to different column of my database table using volley when user click the…
1
vote
2 answers

HTTP messages are not loaded correctly ( Android )

I would like to load json with volley and download images using BufferedInputStream. Since these requests are made to LAN ip adresses on the non encrypted http port, I enabled android:usesCleartextTraffic="true" I get this error from…
Iter Ator
  • 8,226
  • 20
  • 73
  • 164
1
vote
1 answer

How give json parameters in Volley String Request (Android Studio)

I want to pass the following JSON object in a volley string request: { "command":"connect", "port":"VIRTUAL", "baudrate":115200, "printerProfile":"_default", "save":true, "autoconnect":false } The response is 1. How can I…
CYRIL
  • 11
  • 2
1
vote
1 answer

Android JSON request with Volley

I am trying to register some data with an api and I have checked the json that I get in my application and the structure and data are fine, I put it in Postman and it works fine, the url is also fine, someone could help me to know what I am doing…
1
vote
0 answers

Unexpected response code 500 for POST method Volley error

I'm finding the following error with my request post method: Unexpected response code 500 for POST method. It was working fine and then it just stopped working and started to display this error. this is my post method: private void…
Everton
  • 11
  • 4
1
vote
0 answers

How to sync mysql and sqlite databases in Kotlin using volley

I'm trying to build an app(Kotlin) to store Bus ticket data which would work offline and online. The flow :- a)Take the data entry -> Use volley to send it to remote MySQL db via JSON HTTP request b)If mysql entry is succeeded, set the…
swapnil
  • 11
  • 2
1
vote
0 answers

Didn't find class "com.android.volley.toolbox.JsonObjectRequest" on path: DexPathList

I am using https://github.com/DWorkS/VolleyPlus library for implementing multipart in my project but this library conflicted with compile 'com.android.volley:volley:1.0.0' dependency says " Program type already present:…
1
vote
1 answer

Android Volley Cache Creates Duplicates

I am using Volley cache on my recycler view data. It works fine in online. When i switch to offline it displays all the data correctly but whenever i Switch back from offline to online, It creates duplicate copies on first launch while disappears on…
1
vote
0 answers

Set public variables by name (from JSON)

I am using Room and Volley to get data from a generic web service that only returns column and value for each row of the selected table. The thing is that I don't want to modify the web service to return a specific data tree by table. So having…
Rafudus
  • 11
  • 2