251 questions
1 vote
0 answers
2k views
How do I read response header from RestTemplate when response code is 403
I am using RoboSpiceManger for APIs, I am able to read/get the response headers for status code is 200 for POST requests using RestTemplate like this: ResponseEntity<?> responseEntity = (...
0 votes
1 answer
108 views
Implementing cache mechanism with retrofit 2 as like robospice + retrofit 1
I have been using retrofit1 + robospice to make API requests. You can check sample here. In this framework, I used to make request like this getSpiceManager().execute(request, CACHE_KEY, ...
-1 votes
2 answers
91 views
Get type of Generics
I need to get type of generic type. I've already tried following public abstract class RetrofitRequest<RESULT> extends SpiceRequest<Response<RESULT>> { public RetrofitRequest(){...
-1 votes
3 answers
10k views
How to make a synchronous call using Retrofit on Android
I have a login view in an android app that I would like to function synchronously. That is, I want the user to stay on the page until the login rest call completes. If it fails, the user can reenter ...
0 votes
1 answer
69 views
Mocking responses in Robospice
Is it any possibility to mock responses using Robospice in Android because I need to create demo application which will have all responses in json files in application? I was trying to use https://...
0 votes
1 answer
64 views
Robospice as replacement for Async Tasks
I am new to android development, I tried understanding the Robospice library which is very much useful for network tasks, But I am trying to use the Robospice as a replacement for Async Task due to ...
6 votes
1 answer
203 views
No such method error while using robospice-retrofit and getstream.io
In our project we are using com.octo.android.robospice:robospice-retrofit:1.4.14 , Which require okhttp: 1.6.0 And getstream java client io.getstream.client:stream-repo-okhttp:1.2.2', Which require ...
-1 votes
1 answer
84 views
RoboSpice - Not getting Cache Data
I am using RoboSpice to making web-service calls as ,below. spiceManager.execute(request, lastRequestCacheKey, DurationInMillis.ONE_DAY, this); Bu each time , it makes network request ...
1 vote
2 answers
899 views
OnStop() is called after onStart()
In my application I am using robospice. So in my BaseActivity a created spice manager: @Override protected void onStart() { super.onStart(); if(!spiceManager.isStarted()) { ...
0 votes
0 answers
51 views
How to manage retry policy for specific response? (Robospice)
I would like to achieve managing custom retry policy in my application. By default it does 3 retries after requset failure, but I don't want to retry for HTTP 400 responce. How can I do this?
0 votes
1 answer
71 views
Could not find class 'com.octo.android.robospice.persistence.ObjectPersister'
After migrating my project from eclipse to android studio 2.2,I am getting this issue,any help to resolve this issue? E/dalvikvm: Could not find class 'com.octo.android.robospice.persistence....
2 votes
1 answer
65 views
Android:Robospice setup
I'm developing a new android down-loader and i want to use ROBOSPICE in my project but really i don't know how to setup it. I think there must be a jar file to attach to my project and start using its ...
1 vote
0 answers
152 views
Difference between doing network calls using RxJava+Retrofit vs Robospice+Retrofit
I used to do network calls using robospice + retrofit, but I recently I came to know we can do same using rxjava and retrofit Same example using rxjava and retrofit, http://randomdotnext.com/...
1 vote
0 answers
56 views
robospice usecase: external rest-service returns null
I have found following code in this sample of Spring Android module : @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState);...
0 votes
2 answers
226 views
Increase time of invoking loadDataFromNetwork() of RoboSpice service
I use RoboSpice with OkHttpClient module (OkHttpSpiceService) for quite long time requests. For that purposes I need to increase timeouts of http client so I made and set them on 120 seconds. @...