Most voted "volley" questions
Volley is an android library implemented by Google that facilitates programming of networked applications. It is reference for REST calls. Use this tag for questions related to your usage, methods, classes, and errors.
Learn more…55 questions
Sort by count of
-
7
votes2
answers927
viewsReturn reading in JSON
I can read the return of json in the format [{"celular":"123456","_id":"1"}] The code that works with the json above is this: public static void MakeJsonArrayReq() { JsonArrayRequest jreq = new…
-
4
votes1
answer421
viewsandroid - Image cache and display listview
Good afternoon, my friends, The thing is, I’m going to use Volley to get the data from the webservice, and so I write the list to my local BD with Sqlite. In this webservice will come a JSON with…
-
4
votes1
answer341
viewsError inserting Mysql PHP data using Android Volley lib
I am developing an application that will have to send data to a server. My php source code is this: Connection.php <?php $mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = "";…
-
3
votes2
answers138
viewsI am trying to extend Stringrequest from Volley package, but the import is not working, why?
This is the code I use to import. import com.android.volley.Response; import com.android.volley.toolbox.StringRequest; And here below is a print of my screen showing that I’ve installed the Volley…
-
3
votes1
answer731
viewsReturn data obtained in Onresponse
How do I make the return of this String rest? If I give the Return there it does not accept... and if and at the end of the method and use an auxiliary variable runs the risk of returning a null.…
-
2
votes0
answers179
viewsString conversion error in Jsonarray - Volley Android method
My application receives a Jsonstring via web service from a C#API as listed below: [{ "LimiteCredito": 123.00, "PessoasFuncionarioId": 16, "Id": 12, "Nome": "Cliente PF A", "DataEdicao":…
-
2
votes1
answer185
viewsHow to load SQL Server data into a combobox in Android Studio using Volley?
Currently, for testing purposes, I am using a spinner, but I now want to implement the data that comes from the BD. Is it possible to put in this same spinner or should I create another application?…
-
1
votes0
answers99
views"Outofmemoryerror" error using Volley
I’m making an application where I have a URL that returns a JSON, through the Volley library, I’m taking the content of this URL and turning into string, this process shall be carried out on each 5…
-
1
votes0
answers394
viewsError 500 when sending android object to web service Rest
I have a problem sending an object from a java class to my web service. Using the Restfull web service on glassfish and android using Volley and gson. I get a 500 error when I try to send the…
-
1
votes1
answer412
viewsHow to add a view dynamically to android as registered in mysql
I would like to know how to add a view (Relativelayout) dynamically in my xml, as records are found in my Mysql BD... (My connection is made through Volley lib)
-
1
votes1
answer115
viewsAndroid Volley Multiple Requests in Parallel
I’m developing an application where I have to make several Volley requests in parallel to fill out spinners, and there are two times I call this screen. The first time is for a new registration,…
-
1
votes1
answer63
viewsgetView is not being called but getCount has items in Listview
I’m having a problem with a Listview that isn’t loading the values. That’s my situation: I have an application that at a certain point opens a Tabbar with 2 Fragments and inside one of these…
-
1
votes0
answers179
viewsReturn server data using Volley - Android
I have an Android application that makes some requests on the server and also for sending data via web service, using the library Volley. The data sent by the application is received by an API and,…
-
1
votes1
answer427
viewsProblems making call using Retrofit on Android
I’m a student and I’m having a hard time understanding where I’m going wrong in a job that the teacher went through. Briefly describing, the teacher provided an API on Github, which after the…
-
1
votes2
answers2017
viewsText View Null: void android.widget.Textview.setText(java.lang.Charsequence)' on a null Object Reference
I’m taking a data from an API on a fragment to change the txt of Activity. But when I call the function that makes this change the setText gives NullPointerException. If I call the same function on…
-
1
votes0
answers122
viewsData is not inserted from android to mysql using Volley
I asked this question from link and the problem I was having was solved. But I still can’t enter data into the database. Connection.php <?php $mysql_hostname = "localhost"; $mysql_user = "root";…
-
1
votes2
answers159
viewsHow to pass the answer received by Volley to a Global variable?
Good afternoon, I was wondering how I could spend one JSONObject received in Volley for a global variable: public class ReceberObjeto { private JSONObject res; public ReceberObjeto(String URL,…
-
1
votes0
answers345
viewsGson returning characters with invalid accent
I’m getting information using Gson in an archive PHP. When this information is received, the words containing accents are not coded. I have read: Android JSON Charset UTF-8 problems Converting…
-
1
votes1
answer74
viewsProblems with Asynctask
I’m trying to file a request for JSON, along with Asynctask. With this, I called the JSON in the InBackground method, however, the code executes the Jsonarrayrequest onResponse method after the…
-
1
votes1
answer309
viewsParsing JSON with Volley android
I have this JSON on the server side: [{"idreg":"271896", "code":"USD", "codein":"BRL", "name":"D\u00f3lar Comercial", "high":"3.2652", "pctChange":"-0.939", "open":"0", "bid":"3.2492",…
-
1
votes1
answer133
viewsI have the following error in Volley " jsonexception : end of input at char 0 "
Sending the request the server behaves like it should not from the error, but from the Response side it generates the following error "com.android.Volley.volleyerror java.lang.runtimeException: bad…
-
1
votes1
answer47
viewsHow to get value returned from Get using Volley on android
In case I want to know how to get only the GET value of the link ".../posses_cadastro" to enter If or Else. public class LoginRequest extends StringRequest { private static final String…
-
1
votes1
answer78
viewsWorking Volley Android Error
I’m creating an application for Android that sends via Volley some strings. I would like to know how I work errors, for example, if the server is offline. Follow the code for sending strings:…
-
1
votes1
answer545
viewsAndroid app does not connect on local webservice
I’m studying webservices but came across a problem, The API works because I can already enter data into the database, I’m using wamp, but in the app, I followed several steps and just don’t send,…
-
1
votes0
answers34
viewsNot returning returning the json
Good I’m starting in the android area and still do not know much about it and would like help with the following code: gridView = (GridView) findViewById(R.id.lastedAnimeView);…
-
1
votes2
answers58
viewsAndroid + Volley with PHP connector returns error!
I am trying to connect and send a registration, via PHP Nector, from my Android application to SQL Server on the local computer. It’s returning "Error!" because it looks like Volley doesn’t see the…
-
1
votes1
answer50
viewsVolley Android - GET to return list of videos from a playlist - JAVA
Hello, I’m using the android library Volley to make a GET call (https) to return to me the Json of the videos of a specific playlist. Basically my current GET request is this: String url…
-
1
votes1
answer68
viewsAndroid + Volley + PHP Connector Does not insert data into SQL Server database
I’m trying to input data from an Android application into the SQL Server database, and I’m using Volley and PHP Nector. The connection is ok, and searches usually appear on the device screen. I need…
-
0
votes1
answer1008
viewsError when inserting data accentuated
I am sending the data by URL to my webservice if I put the path by example web browser in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo and call a method to display shows so: Nome: João…
-
0
votes0
answers38
viewsProblem to register User by android accent error
To sending the data by URL to my webservice if I put the path by the example web browser in Chrome: meuwebservice/inserirusu/á already by android he has this exit meuwebservice/inserirusu/%C3%A1 My…
-
0
votes1
answer1086
viewsAndroid - Return method using thread
Hello guys I am developing an android application that uses the library Volley (google) to perform my requests http. I have a method that returns a Boolean and depends on the return of the request,…
-
0
votes0
answers215
viewsLoading Listview via an API
When I run the app, Listview is not displayed on the screen. Is Volley not doing the request? or am I doing the wrong JSON Parsing? Main Activity: public class MainActivity extends FragmentActivity…
-
0
votes1
answer189
viewsUpload image from a url to an Infowindowadapter
I am trying to show an image from a URL on an "Infowindowadapter", but it is never shown. I’m using the Volley library to upload images. Someone has an idea how to solve this problem? //no fragment…
-
0
votes0
answers528
viewsConsume webservice C# amsx on android Volley
I created a webservice in c# that returns me a string in the JSON pattern, I’m trying to consume this webservice with Volley but the same returns me null, depending on the variation of the url it…
-
0
votes2
answers452
viewsConsume Webservices with Android - Retrofit or Volley?
The question is just this: to consume Webservices with Android - Retrofit or Volley? I found the two complicated at first, but reading the documentation it seemed to me that retrofit can be…
-
0
votes1
answer37
viewsError while consuming service using Volley
I am developing an application in Android Studio in which consumes a service I created in Play Framework. This is my service route: GET…
-
0
votes0
answers90
viewsHow to send data, via POST, from android to PHP synchronously?
I need to send data to the database, and I’m using PHP. I was trying through the Ion library, but because it was asynchronous, the application featured Nullpointerexceptions when more than one data…
-
0
votes1
answer224
viewsVolley.Parseerror - java.lang.String cannot be converted
Hello, I’m sending POST to an archive PHP using the library Volley. Everything goes well until the application tries to show the answer to the user. In the file PHP use the command echo 'user…
-
0
votes1
answer1443
viewsError: Jsonexception: End of input at Character 0, when sending Android information to a PHP Webservice
I’m sending information from Android to a PHP Webservice via lib Volley. Everything works perfectly, except with special characters. Map<String, String> params = new HashMap<String,…
-
0
votes1
answer402
viewsRequest application/x-www-form-urlencoded using Volley
Good morning guys, I’m trying to make an integration with web_services of a partner, by php everything worked correctly now I want to implement directly on Android using Volley but I’m getting…
-
0
votes1
answer149
viewsHow to insert a data list using Volley
My application saves all position information within the table. This table has a column called "SENT". I have to make a select by returning all positions that were not sent and sending to a…
-
0
votes1
answer51
viewsHow to add Asynctask to this task?
Hi, could someone help me add an Asynctask to this task? Here I am connecting to a JSON for information, then it will be added to Recyclerview. RequestQueue queue = Volley.newRequestQueue(this);…
-
0
votes1
answer57
viewsPass Volley api data to another screen
I have an application that gets given via api using Volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes2
answers198
viewsAutomatically update data obtained from json api - Volley
Hello guys I have the following problem I have an application that uses Volley to get certain data json through api up to there all right it works properly but the problem is Volley cache that does…
-
0
votes1
answer288
viewsHow to pass parameters in a request with Volley
Gentlemen I created a Custom class for the Request with Volley knowing that this form is possible to send parameters however I see that this is not what happens what can be wrong then? The code is…
-
0
votes1
answer124
viewsAndroid Volley post compilation error map
Hello, The code below only compiles if I comment on the map section, but I need it to fill in the post parameters. Erros: method onresponse onerrorresponse does not override its superclass There is…
-
0
votes1
answer185
viewsHandle response from the Rest service using Volley
I’m developing an application in android studio in which consumes a service I created in Play Framework. I am learning now how to create and consume services, and I am having difficulties in…
-
0
votes1
answer137
viewsAndroid pass Authentication Token in header using Volley
I’m having trouble sending authentication token in header using Volley This is my code @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) {…
-
0
votes1
answer185
viewsVolley Android, recover server response
Hello, I am using Volley for Android to connect to my Webservice, but I would like to display the server response independent of the Status that returns HTTP via webservice. explaining better: When…
-
0
votes1
answer29
viewsHow to update / refresh the data using Android Volley with Mysql?
I’m new on the subject and new here, I’m displaying an excerpt of the code I’m using for testing. The data is normally displayed the first time I query through the application, but if I perform a…