Questions tagged as 'volley'

0
answers

Error 500 when sending android object to web service Rest

I'm having a problem sending an object from a java class to my web service. Using RestFull web service on glassfish and android using volley and gson. I get a 500 error when I try to send the object. LogCat Log on android: 04-27 19:24:14.63...
asked by 28.04.2015 / 21:19
0
answers

"OutOfMemoryError" error using Volley

I'm doing an application where I have a URL that returns a JSON, through the Volley library, I'm picking up the contents of that URL and turning it into string , this process runs every 5 seconds, after a certain period my application generat...
asked by 26.03.2015 / 18:26
1
answer

How to add AsyncTask to this task?

Hello, could anyone 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); String shhik = "http://meusite/arquivo...
asked by 05.10.2016 / 21:36
2
answers

Consuming Webservices with Android - Retrofit or Volley? [closed]

The question is just this: to consume Webservices with Android - Retrofit or Volley? I found the two complicated at first, but reading the documentation seemed to me that retrofit might be somewhat less complicated. What do you suggest?     
asked by 02.11.2017 / 03:15
1
answer

Pass data from api volley to another screen

I have an app that gets given via api using volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela1); ImageView m...
asked by 03.01.2017 / 19:32
1
answer

Error entering data with accent

I'm sending the data by URL to my webservice if I put the path through the web browser example in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo and calling a method to display it so: Nome: João da Silva profi: Fotógrafo N...
asked by 05.11.2014 / 13:13
2
answers

Text View Null: void android.widget.TextView.setText (java.lang.CharSequence) 'on a null object reference

I'm getting an API data in a fragment to change the Activity txt. But when I call the function that makes this change the setText gives NullPointerException. If I call the same function on the activity screen it works, but if I call anywhere in...
asked by 06.04.2018 / 19:40
1
answer

Android pass Authentication Token on header using Volley

I'm having trouble sending authentication token to the header using volley This is my code @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Log.i("onActivit...
asked by 19.03.2018 / 22:59
1
answer

Android volley post compilation error map

Hello, The code below only compiles if I comment the map section, but I need it to populate the parameters of the post.    Erros: method onresponse onerrorresponse does not override its superclass       There is no applicable Const...
asked by 23.12.2017 / 21:46
1
answer

Treat response from rest service using volley

I'm developing an application in android studio where it consumes a service I created in the Play Framework. I am now learning how to create and consume services, and I am having difficulty responding when I log in to my application, regardless...
asked by 25.12.2017 / 15:32