As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [android-volley]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

I am Getting java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null

My android app crashes when i try to logic in on press of the login button. I have tried to catch/handle the error but its still same result I have tried but failed to catch the error so the app ...
morris menanya's user avatar
0 votes
1 answer
20 views

Why is my JSON Volley request causing ANR if it is Asynchronous in itself and the data transfer into my database is handled within an AsyncTask?(JAVA)

Just an FYI, this is my first time working with JSON, Volley, or ASyncTask. For a coding challenge I have to download a JSON array from a url into an android application and display the list of items ...
jwy205's user avatar
  • 3
0 votes
0 answers
6 views

How to retrieve video using volley library?

Can you give me any reference because I often try but i can't found it. If possible can you give me php and java file share if anyone is known about that. I try to found in YouTube, google but not I ...
Romil Movaliya's user avatar
0 votes
0 answers
12 views

Android Volley: Why is response.statusCode highlighted and how do I check if an API response is successful?

I wan to check if the status code = 200 or if the response is succesful or not but i keep geting this errorin the reponse.statusCode. private fun signUp() { val email = findViewById<EditText>...
AdrianIK's user avatar
0 votes
0 answers
20 views

DeepAI Image Generation API is returning error code 400

I recently subscribed DeepAI Image Generation API to build my mobile app. The API is returning error code 400. I am using Volley library in Android Studio project. Kindly let me know where I am doing ...
AhmedAliBhatti's user avatar
0 votes
1 answer
13 views

How can I get the value on a position from a JSON Response on Android Studio?

I want to get the value of a specific object from this response, but I still don't understand at all the rules of the hierarchy. The values I want are : "F0092_AN8": 258523 and "...
Kevin Mendoza's user avatar
0 votes
0 answers
15 views

Can't import some libraries in android

I implemented volley library (implementation 'com.android.volley:volley:1.1.1') but when I try to write StringRequest in MainActivity it doesn't import. I had the same problem with Manager ...
Afgan Gadirov's user avatar
0 votes
1 answer
26 views

URL in android studio not responded

I am working on a project in android studio, as of now i don't have that much knowledge. in register page for user I used api from 000webhost but it show error like Unexpected response code 500 from &...
Jay's user avatar
  • 1
0 votes
0 answers
23 views

How to Make a Volley Request to a Firebase Database with Security Rules Set?

I have no problem using a volley request to my firebase database when I set the rules as: { "rules": { ".read": true, ".write": true } } However the request is ...
Franklyn Oreben's user avatar
0 votes
1 answer
33 views

JSONObject Request does not get called frequently Android

I have a JSONObjectRequest that wont get called everytime. So there will be no response. I also have another JSONObjectRequest that will always be called. Sometimes i change the code in the ...
phishing_phil's user avatar
1 vote
1 answer
39 views

I got exception while converting String to JSONObject

I am trying to consume restApi using volley. I am getting this Exception: org.json.JSONException: Value {"Emp_name":"Abc1","DOJ":"01-01-2021","DOB":&...
pradeep72767's user avatar
0 votes
0 answers
17 views

what is the correct way of getting user data from SharedPrefManager and setting it to viewbinding?

I get the user data from SharedPrefManager and set the values to viewbinding but when I tried to proceed to the next activity it stuck in progress dialog. I tried to remove the code that gets user ...
Byakuran's user avatar
1 vote
0 answers
24 views

when open app i get data from MYSQL in reclerview but after close app and back to open i get empty page

I build app that retrieve data from MySQL database Using Volley and show it in recycler view the problem that when I login an d open app all thing ids fine and I can get data but if I closed app (work ...
Haitham Fouad's user avatar
1 vote
1 answer
91 views

Play audio file from api request

I'm using ElevenLabs Api to convert text to speech , this api mainly returns byte[] as an audio , i tried to play it using MediaPlayer and AudioTrack but failed to do so, does anyone how to do that , ...
Taki's user avatar
  • 3,174
0 votes
0 answers
22 views

How to make OctoPrint API calls from an android app to controll devices with similar functionality to 3D printers?

I've created an Android app (written in java) to control the functions of a Kinetic Sand Table, which is based with its functionality on OctoPrint with exclusion of the z axis. To make sure everything ...
Diana's user avatar
  • 1
0 votes
1 answer
19 views

Login register 308

I have a web app + database hosted in python which I have tested and works for creating, logging in and logging out user. Now I'm trying to make the requests in my android application written in java. ...
Bart's user avatar
  • 59
0 votes
1 answer
118 views

Kotlin flows: async/await execution blocking UI

I want to load multiple data from a rest endpoint in asynchronously using kotlin flows and display it in a recycler view. The data is defined as ServiceDto, ProductDto, CategoryDto. ProductDto has a ...
Erkan's user avatar
  • 140
0 votes
0 answers
17 views

Wrapping a REST API call in Volley in a function for a synchronous response

I have a Java Android app where I'm implementing an SDK that requires a Callable class to complete an action in the Callable class I need to call a REST API and return the result, so I need to wrap ...
Yossi Dahan's user avatar
  • 5,377
0 votes
0 answers
38 views

how to retrieve data between activities using Room Database in Kotlin

I have a little problem when I send data from the API then I store data back to app with Room Database. Why did I do this because I'm developing an app like e-commerce that can store products in cart. ...
Ichwan Sholihin's user avatar
0 votes
2 answers
76 views

Volley throws AuthFailureError

I am using Volley to upload pictures from Android application to server. In case when I have more than 3 pictures for upload, Volley throws AuthFailureError, even though I don't use any kind of ...
Darian Pudic's user avatar
0 votes
0 answers
14 views

Updated to DiffUtil but getting null response in DiffResult used volley for data as json

your textUpdated working recyclerview to diffUtil which gets data in the form of json fro google sheet after initializing the diffUtil in adaper created method which shows invoke virtual method ...
Kranti Patil's user avatar
0 votes
0 answers
29 views

Android studio API integration using volley in kotlin

I am new to android development and I am facing an issue in consuming a simple rest API that i have developed using asp.net, the api works fine, I have tested the api in postman as well it works ...
Gaara's user avatar
  • 11
0 votes
1 answer
28 views

Pinch zoom in NetworkImageView loading using Volley in Android Studio

Is there a way to include pinch zoom feature on NetworkImageView while using Volley in Android Studio ? I have successfully loaded images from url using volley and networkimageview. I want to be able ...
AgarL's user avatar
  • 3
0 votes
0 answers
45 views

send object with parameters via post multipart/form-data android

What is the correct format to send an object with parameters through volley. According to postman and swagger it works, but I can't reproduce that request with volley. Api is a asp.net. in postman: ...
Mctinez's user avatar
0 votes
0 answers
71 views

Android - Unexpected response code 400 - Post MP3 to with Volley to OpenAI Whisper

Hello Ladys & Gentlemen, i has a small project with Volley. Currently i try to Post MP3 that i am Recorded and store i a cacheDir. private var audioFile: File? = null File(cacheDir, "audio....
DroidMe's user avatar
  • 19
1 vote
1 answer
52 views

Volley get image from API

I'm having problem fetching image from API. When i watch response in Postman and save it as image - it saves it just fine and it is valid image. But I cant get it to work in java. Below is my ...
skafinski's user avatar
  • 284
0 votes
1 answer
49 views

Get PHP value using JS in Android Webview

I researched a lot on this before asking this question. Even tried ChatGPT. I am using Volley to send HTTP request from android webview to my PHP app that runs in the webview to a specific page for ...
Super Coder's user avatar
0 votes
0 answers
23 views

JsonArrayRequest returning null?

I am trying to write a get request using the volley library for frontend and spring boot for backend. I've tested the backend and it works just fine but the response on the volley is null, any ideas ...
wittlemissginger's user avatar
0 votes
0 answers
48 views

how to handle volley error description with message in android studio

I'm using volley library to handle API request and below is my code. When I tried to print the error contents/message in case of any issues during login, am getting the error message as "com.a.t....
Venkat's user avatar
  • 79
0 votes
0 answers
30 views

How can I use url with more than one dots in volley librairy with kotlin in an android app?

I want to fetch data from my php backend using volley library in android using kotlin. The problem is my url contains two dots and volley considers the first one as the end of the domain name, which ...
Patrick's user avatar
0 votes
0 answers
32 views

(ANDROID) REST API sending same data for some time

I am using NewsData.io api for my news app. The app sends the same data no matter how many time you refresh it for a fixed time. After the fixed time it will send another data for a fixed time and so ...
Karan Kumar's user avatar
0 votes
0 answers
10 views

Volley Library status code is null a lot of times but not always

The code inside the errorResponseListener gets executed most of the time. if I copy the url and search on browser I get The json but in the app most of the time i get status code : null Here is the ...
Karan Kumar's user avatar
1 vote
0 answers
47 views

Get and Show image from firebase storage in a listview?

I am trying to get and show images from firebase storage and display it in a Listview. Most parts of the code work, retrieving the images from firebase storage is successful but only the Imageview of ...
Franklyn Oreben's user avatar
0 votes
0 answers
18 views

Android Java Studio - mmap failure (volley http posts)

Thanks for reading. I am getting a weird mmap failure after a while. While running, the following function is being repeated 4 times a second: public void sendLocationData(int id, double latitude, ...
Raz Gavrieli's user avatar
0 votes
0 answers
12 views

Getting com.android.volley.ServerError using the Volley library. What possible errors I'm making?

When I make a request in Volley, I'm receiving com.android.volley.ServerError. I'm doing something like this (generic example code): teacherHomeworkTabUploadbtn.setOnClickListener(new View....
Ajay Pandey's user avatar
0 votes
0 answers
22 views

Error 400 in android volley while using POST request method

I'm passing a key-value pair in String request using post request method I'm getting error 400. The Error is:E/Volley: [1120] NetworkUtility.shouldRetryException: Unexpected response code 400 for http:...
65 Shruti's user avatar
0 votes
1 answer
13 views

Volley POST request not working on Android after updating PHP backend to Slim 4

I have a sign in script for our Android app. It uses Volley 1.1.1 and has worked fine for year but after switching our PHP backend from Slim 3 to Slim 4, it's no longer working. public Map<String,...
cesarcarlos's user avatar
  • 1,263
0 votes
0 answers
14 views

Trying to connect my Kotlin app to my local selfsigned xaamp server

So, basically, I've been using "pure" server which was HTTP. But since I needed to load something more than just a simple text, I decided to create a sertificate for my server to make it ...
Евгений Мартьянов's user avatar
0 votes
1 answer
167 views

org.json.JSONException: Value Error of type java.lang.String cannot be converted to JSONObject

i am webscrapping a website for education only and trying to show returned JsonResponse but while app runs, it throws an error org.json.JSONException: Value Error of type java.lang.String cannot be ...
Nilesh Singh Dahiya's user avatar
0 votes
1 answer
27 views

Why isn't Android Volley request working?

I simply trying to get JSON data from url (https://krokapp.by/api/rest/tags/?format=json): RequestQueue mRequestQueue; @Override protected void onCreate(Bundle savedInstanceState) { super....
kirvel's user avatar
  • 609
0 votes
0 answers
27 views

volley authentication errors when attempting to push to the server

I am developing an android app in which I have created a custom API for database. I am using volley for HTTP request. I am getting "com.android.volley.AuthFailureError" error on my ...
Kundan Kumar's user avatar
0 votes
0 answers
36 views

Not able to fetch data using volley's library

I want to fetch the news from the api but when I am running the app, it is showing the toast message which is inside the ErrorListener block. I don't know what is happening please someone help ...
Divyansh Singh's user avatar
0 votes
0 answers
30 views

NetworkUtility.shouldRetryException: Unexpected response code 403 in Volley libray

This is the main activity: class MainActivity : AppCompatActivity() { private lateinit var newsRecyclerView: RecyclerView private lateinit var progressBar: ProgressBar private lateinit var newsArray:...
Ankit Laller's user avatar
0 votes
2 answers
45 views

Kotlin for Volley, how can I check the JSON request for newer data in the API?

I'm working on an app that gets a list of documents/source URL from an api. I'd like to periodically check for new or updated contents within that API so users can update saved items in the database. ...
DrewCodes's user avatar
0 votes
1 answer
87 views

Running Android Studio Volley in different API levels

The app I made ran on different API levels but the volley library only works API level 26. I was puzzled when I can't login in the app using my phone (android 9) but a later model works just fine. I ...
katmoons's user avatar
0 votes
0 answers
142 views

Android app crashes when converting JSON using Gson and getting response with Volley

My app crashes whenever I try to get a location using the google places api. I'm using Volley to get a response from the URL and then using Gson to convert the JSON data. I am getting a response from ...
Chris's user avatar
  • 3
0 votes
1 answer
145 views

Cannot connect to http sites with Volley (Andoid, Kotlin) (https works fine)

This is the first time that I am dipping my toes into andoroid development. For this I decided to make a little project to get into it. My settup: I want to control an led strip with a Raspberry Pi ...
Elio's user avatar
  • 1
0 votes
1 answer
43 views

Difficult in fetching JSONObject data with two array name in RecyclerView -> JAVA (Android)

I am trying to fetch data from an API in json format to display data in recycler view but couldn't fetch it. Some errors are showing and I am trying to fetch data. Please help or tell me where to ...
Mediad's user avatar
  • 32
0 votes
1 answer
58 views

Volley in Android not attempting to connect

I've been attempting to get Volley to request data from the internet. Code is below. Forgive the verbose code, this was as quick and dirty test just to see if Volley worked. I'll clean it up once I ...
RustedPython's user avatar
0 votes
0 answers
8 views

php API in android is realtime to access with volley?

i want to use volley to access my PHP API in realtime is that even possible? can i reflect database changes in my application in realtime like we can do in firebase ?
Nimesh's user avatar
  • 49

1
2 3 4 5
136