android-volley Questions

5

Solved

If an Android Volley post request fails due to network loss, will Android Volley retry the post after the network connection is restored automatically? Will it fire all of the request attempts, wai...
Pelorus asked 7/2, 2014 at 12:51

8

Solved

I am thinking of implementing the Android Volley library in my next projects (Google IO presentation about Volley). However, I haven't found any serious API for that library. How do I upload file...
Fermium asked 10/7, 2013 at 13:21

2

Solved

I'm using Volley library in Android in my application and when trying to make POST requests to our server I get the following error: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandsha...
Leopard asked 24/8, 2015 at 14:26

13

Solved

How can custom headers be set for a Volley request? At the moment, there is way to set body content for a POST request. I've a simple GET request, but I need to pass the custom headers alongwith. I...
Gestate asked 11/6, 2013 at 16:45

2

Solved

I want to send the JSONObject to server using POST method . I have used volley library to pass the string params its working fine, but if i try to use json object its showing an error for calling...
Carroty asked 5/2, 2015 at 12:51

11

Solved

Does anybody know how to attach a session cookie to the request using com.android.volley library? When I log in to a web site it gives me a session cookie. Browser would send that cookie back with ...
Lingcod asked 21/5, 2013 at 22:41

1

Solved

Here's an example from developer.android.com class MainActivity : AppCompatActivity() { lateinit var textView:TextView lateinit var button:Button override fun onCreate(savedInstanceState: Bundle...

1

as I understand from here https://github.com/google/volley/wiki/Migrating-from-Apache-HTTP volley 1.1 dropped mandatory dependency on org.apache.http. And "Most apps using HurlStack or Volley#ne...
Lentigo asked 5/6, 2018 at 17:10

2

Solved

I am trying to retrieve a JSON from an external API using Volley. Here is my code protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layou...
Condon asked 10/11, 2018 at 20:1

3

Solved

I was able to call an HTTP endpoint using Postman and these parameters: { "name":"Val", "subject":"Test" } However I am unable to do the same with Volley through Android: Here is trying to use...
Unsphere asked 18/10, 2016 at 6:12

1

I have some code. In Volley code: val queue = Volley.newRequestQueue(context) val stringRequest = StringRequest( Request.Method.GET, linkTrang, Response.Listener<String> { response -&gt...
Athalia asked 13/8, 2018 at 9:27

11

Solved

I am using the volley library to perform network operation in android. So I am trying to add this library in my project which is created in Android Studio and gradle system. I added the volley lib...

2

I have been trying to work on writing test cases for volley custom request, referencing For which I have implemented FakeHttpStack class and FakeRequestQueuefrom here My project test class struct...
Oilskin asked 17/9, 2015 at 5:27

6

Solved

I want to handle and show some message in onErrorResponse below is my code. String url = MainActivity.strHostUrl+"api/delete_picture"; jobjDeleteImage = new JsonObjectRequest(Request.Method.POST...
Albarran asked 11/7, 2014 at 14:50

2

I'm using Volley in a library project that I've built into a AAR file. I add the AAR file into the main project. When building the main project, I get the following error: Failed to find byte cod...
Bernie asked 19/9, 2018 at 18:58

2

I want make to make soap post request using Volley library. I am using the following code and got error "HTTP/1.1 400 Bad Request". In previous I am using Soap library working fine but I need to ma...
Ophiolatry asked 27/11, 2014 at 7:16

4

I post a JsonRequest to a server. The server is slow and Volley tends to make multiple calls to the slow server because it didn't get a response from the first request (since my server is slow). Is...
Quadriceps asked 18/4, 2014 at 3:31

6

I am using Volley to connect to MySql database. I created the database tables and wrote the php function and below is the java code. All this was working all along but just yesterday it woke up giv...
Gadmon asked 21/2, 2015 at 8:31

8

Solved

I recently started to use Volley lib from Google for my network requests. One of my requests get error 301 for redirect, so my question is that can volley handle redirect somehow automatically or d...
Foin asked 5/7, 2013 at 5:55

3

Solved

I have a simple authentication system implemented using Volley. It goes like this: Get a token from server on login -> an hour later, this token expires -> when it expires, we will find that out on...
Hochstetler asked 5/5, 2015 at 20:19

2

I've just started playing around with CountDownLatch in my Android app. Currently I am trying to make two Volley requests to my api, and wait until the data has been retrieved and stored before con...

6

Solved

I am new to android and volley. I created one login program to fetch json data from my server but it is not working. It is not showing the json response after clicking the login button. I am pastin...
Standridge asked 15/9, 2015 at 5:32

2

Please help me how can i add a list in param of volley android like this @Override protected Map<String, String> getParams() throws AuthFailureError { Map<String, String> params = ne...
Corbeil asked 6/7, 2018 at 8:39

12

I'm trying to make a POST request to my API and it works in Postman (I get a valid JSON object), but not using Volley. With the following code: String URL = "http://somename/token"; RequestQueue q...
Philipines asked 12/2, 2014 at 20:50

2

The Configuration Activity for my widget starts a service to make an http request and update the widget views. I can update the views from the service just fine (see below), but why is it I cannot ...
Dyne asked 3/7, 2018 at 8:43

© 2022 - 2024 — McMap. All rights reserved.