Search code examples
androidcachingrobospice

Robospice offline task. Do I need cache?


In my application i have to zip some files and then send them to amazon server. I decided to use Robospice for this task. Do i need cache for this? If so, how should I implement it or else how to get rid of it?


Solution

  • You can just use the com.octo.android.robospice.SpiceManager#execute(com.octo.android.robospice.request.SpiceRequest<T>, com.octo.android.robospice.request.listener.RequestListener<T>) method, which doesn't utilize the cache. For the initialization of RoboSpice, although your request does not seem to be offline, you can check the offline sample on GitHub, specifically the SampleOfflineSpiceService class.