I’m fairly inexperienced with Android programming and am having issues sending a JSONArray to my PHP server. I am using the following code to generate the JSONArray from my cursor: I believe I am misunderstanding how to properly send data via JsonARrayRequest. Here is the following code that I am using to send the data. Instead of sending the data,
Tag: android-volley
How to send this JSON POST request in Java using volley
POST request in Postman {“data”:[“dog”,45,256,256,2,5]} Answer i think that you First need to create your post request like this: (you will need to change the headers and parameters depending on what you are currently using in your Postman The previous one is a normal way of sending HTTP requests. Using Volley requests will be something like :
Adding multiple markers to google maps API from volley repose in android Java
I am new to Google Maps API for android but I would like to create a view in my android app to show the locations of some providers form the database. So far I have done the following: With this I have been able to add the markers but they are all grouped together into a whole page map of
Android device can’t connect to mysql in localhost [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I’m developing an android app in android studio and I have a mysql
org.json.JSONException: Value {“storeid0”:[“1535″],”storeid1”:[“1862”]} at idddsss of type org.json.JSONObject cannot be converted to JSONArray
I am getting this response from my api {“idddsss”:{“storeid0”:[“1535″],”storeid1”:[“1862”]}} this is the code that I am using to get response from server and save all storeids in an array: But whenever i run the code i got following error, I don’t know why, I have parsed my code to JSONObject first and then to JSONArray and in loop I am
Repeat Volley Request Every x-seconds Java
Alright – Before you say this is a duplicate, I’ve looked over every stack overflow article I can find, and none of them work and/or answer the question properly/simply. All I need is to repeat a function with a volley request inside of it every x-seconds. Basically, I have a fairly simple Volley request inside a function, which works absolutely
How to parse this json with multiple objects
devs I am stuck in parsing this kind of JSON I don’t understand how to get the value of status and message any help will be very appreciable. I get the value of error but when I want to access the value of status and message it throws an error JSON Format : My code for parsing json : Answer
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 and it makes so fast so my shimmer is not running:
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. this is my method to register the user: My volley singleton looks like this: and my app config file looks like this: Can anyone help me solve this issue? Error: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: Answer
Why my http post request with android volley throws error (localhost)?
I’m working on an android studio project and i’ve had some problems trying to make a post request with volley library. I’ve already tested my API with postman and all works fine, so the problem is from the client part. I’ve already added the internet permission in my android manifest: Here is my code, i’ve created a function named “login”