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
1 answer

How to Scroll GridView in Full Screen

I am going on with Show List of Items in GridView and If I scroll the GridView the whole screen Have to Scroll not only the GridView for this purpose I used custom GridView classExpandableHeightGridView.It shown the GridView in full screen when…
Jamal
  • 976
  • 2
  • 14
  • 39
0
votes
0 answers

Issue with Json Array using RoboSpice

I am trying to parse the following JSON array: [{"desc": "A coffee-based beverage or dessert. Usually refers to the act of topping a drink or dessert with esp...", "image_url":…
android_eng
  • 1,370
  • 3
  • 17
  • 40
0
votes
0 answers

RoboSpice and TCP Connection

I'm not sure if I should post this here or on github, but I got a weird ticket raised by a client saying : One of the problem we see, that might be the root cause of the API dying is that the API replies to the App with the data and HTTP 200 OK …
Philippe David
  • 8,814
  • 3
  • 24
  • 35
0
votes
1 answer

Android RoboSpice and cookies in requests

I have next problem: I auth via oauth and webview, after that i store cookies in sharedPreferences and setting it in ClientHttpRequestInterceptor. Via logs new cookies are setting for new requests, but on server i get old cookies until i fully…
0
votes
0 answers

android download zip files from the url using robospice in post method

how can i download files (may any kind of file) using robospice in the post method i'm using Bitmap directly like ... imageRequest = new BitmapRequest( ConfigurationBean.getNursery_url() +…
Issac Balaji
  • 1,441
  • 1
  • 13
  • 25
0
votes
1 answer

Empty request body using SpringAndroidSpiceRequest

I'm writing an Android app, which is a client to my web application. I'm trying to use RoboSpice to perform network requests. First of all I decided to test an API call to obtain an OAuth2 token. The following curl command can be called to obtain it…
Anton Guryanov
  • 12,109
  • 1
  • 15
  • 16
0
votes
1 answer

Where to call Robospice's shouldStop() method in Service class

I'm using Robospice library. It's really perfect library. But i don't understand something. I want to perform request in Service class. Service has onStart method and i can call spiceManager.start(this) in onStart(). But Service hasn't got onStop.…
0
votes
1 answer

JSON Parsing and Robospice

I'm building an Android app using Robospice for communication over network. The resulting object returned from my server does not get deserialized properly. Here are the related classes: UserRequest.java import…
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
0
votes
2 answers

Spring for Android - Could not extract response: no suitable HttpMessageConverter found for response type

I'm trying to retrieve some data from a REST service using spring for Android. However I'm running into problems. I'm also using Robospice - and as such have a method like so: public FunkyThingsList loadDataFromNetwork() throws Exception { …
Chris Nevill
  • 5,922
  • 11
  • 44
  • 79
0
votes
1 answer

robospice parse nested object response

I have a JSON object returned by the server like: { "success":true, "value1":1, "otherValues":{ "var1":1, "var2":"asd", "var3":2 } } How should I model the response class to accept all the values? For example package…
M4rk
  • 2,172
  • 5
  • 36
  • 70
0
votes
1 answer

Update a JSON-backeed cache object in RoboSpice?

Is it possible to update the cached json of an already cached object? If so, how? Could I update the corresponding POJO and then "persist" it manullly somehow? I cannot find reference to any methods in Robospice that would allow one to do that.…
herrtim
  • 2,697
  • 1
  • 26
  • 36
0
votes
2 answers

RoboSpice JSON request to server

I use the sample about GoogleHttpClientSpiceRequest but I need send request on JSON format. So, I changed my code but I got error: 07-11 15:39:08.738: E//DefaultRequestRunner.java:138(5662): 15:39:08.744 Thread-11643 An exception occurred during…
Lenmon
  • 21
  • 1
  • 3
0
votes
1 answer

Repeat cached requests with RoboSpice?

I'm using RoboSpice to fetch file listings from a server (cloud storage) for a file browser app. What currently happens is this: User taps "folder A". RoboSpice checks cache for "folder A", and checks if it is stale. If it's found and is fresh,…
Steven Schoen
  • 4,366
  • 5
  • 34
  • 65
0
votes
1 answer

Using RoboSpice support for offline background task {combining countdowntimer with robospice}

I am performing an activity that takes long time(offline). I am sending and receiving(reading) sms in my app for this i am using a count down timer class which has a listener onTick() and onFinish(). in the onTick() listener i am checking if there…
0
votes
1 answer

How do I do an Async OkHttp-based REST-call with RoboSpice?

So I looked at the robospice okhttpclient-sample at github and was surprised to find that they demonstrate a synchronous HTTP call. The second bullet point in the readme of RoboSpice underlines that it "executes network requests asynchronously (in a…
Nilzor
  • 18,082
  • 22
  • 100
  • 167
1 2 3
16
17