Questions tagged [robospice]

RoboSpice is an Open source library for Android to perform long running background tasks. It has been designed primarily to execute network processing (such as performing REST requests) but it can be used as a full, working, replacement for AsyncTasks.

RoboSpice is an Open source library for Android to perform long running background tasks. It has been designed primarily to execute network processing (such as performing REST requests) but it can be used as a full, working, replacement for AsyncTasks.

The principle of RoboSpice is that "background tasks" are processed inside an Android Service. To understand why RoboSpice is better than AsyncTasks and Loaders, refer to this infographics

RoboSpice offers different module to provide REST support out of the box via various technologies :

Asynchronous Networking Made Easy. Robust and simple. GitHub repository

251 questions
0
votes
0 answers

Robospice pararell network request - making request before receiving response to previous

I am writing an implementation of APE protocol for chat in Android. In one case I need to send a request, which is kept on server until I send another request (and then the server returns response to the first request). How can I properly do this…
marcinm
  • 281
  • 1
  • 2
  • 11
0
votes
0 answers

Incorrect mapping for Jackson model with nested JSON and name as variable

I'm getting the following error when trying to get a response using RoboSpice with Jackson mapping do to an incorrect mapping for the error JSON returned POST request for…
Stuart
  • 73
  • 1
  • 5
0
votes
0 answers

How to update Android ExpandableList data dynamically?

I have a ExpandableListView in a Fragment. I'm posting a request to the server using RoboSpice onCreateView. I want to be able to update the list twice, once when I get the data from the cache and second after the response returns. For some reason…
bentzy
  • 1,244
  • 2
  • 15
  • 31
0
votes
2 answers

How to pass class of generic type as a parameter?

I have roughly the following code: (SpiceRequest is class from RoboSpice project) public class MyRequest extends SpiceRequest> { // ... public MyRequest() { // This will not work …
canni
  • 5,737
  • 9
  • 46
  • 68
0
votes
1 answer

XML Parser for robospice-google-http-client?

I want to parse XML response using robospice-google-http-client. I can parse json response as follows. HttpRequest request = getHttpRequestFactory()// .buildGetRequest( new GenericUrl( url) ); request.setParser(new…
sooraj.e
  • 766
  • 2
  • 11
  • 26
0
votes
2 answers

Dealing with Progress dialog and screen orientation on robospice

I receive this exception while change screen orientation in case showing progress dialog: 08-25 06:03:06.482: E/WindowManager(734): Activity com.org.scgroup.MainActivity has leaked window…
ductran
  • 10,043
  • 19
  • 82
  • 165
-1
votes
2 answers

Get type of Generics

I need to get type of generic type. I've already tried following public abstract class RetrofitRequest extends SpiceRequest> { public RetrofitRequest(){ super(Response.class); //compile time error …
-1
votes
3 answers

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 their id and password. If it is successful they…
user6627139
  • 406
  • 6
  • 16
-1
votes
1 answer

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 using loadDataFromNetwork() . Seems Cache data…
Don Chakkappan
  • 7,397
  • 5
  • 44
  • 59
-1
votes
1 answer

Robospice nullpointerexception when trying to POST

I am trying to make a POST request by ROBOSPICE and I get a NullpointerException: public String loadDataFromNetwork() throws Exception { return getRestTemplate().getForObject(url, String.class); } Here is the exact Error occurring in return…
hoseinit
  • 33
  • 7
-1
votes
1 answer

Robospice SpiceException cannot be resolved

I imported the project to eclipse and got these errors: The type com.octo.android.robospice.persistence.exception.SpiceException cannot be resolved. It is indirectly referenced from required .class files and The import…
1 2 3
16
17