Question

I use robospice like this:

ProjectInfoRequest request = new ProjectInfoRequest(mProfile);
spiceManager.execute(request, PROJECT_INFO_LISTENER);

It downloads data and almost everything is ok.

However there are some things that makes me unhappy:

  • When I press home button, SpiceManager.shouldStop() is called accordingly to the documentation. But when the task is executed listener does not get call, which is right(I guess, because the activity may be destroyed by OS) but how do I save downloaded data? I don't see any in-memory persister in 1.4.0 version

  • When I try to specify cacheKey like this

spiceManager.execute(request, "projectInfo", DurationInMilis.NEVER, PROJECT_INFO_LISTENER);

the request won't even start executing. However I really need it cause i'd like to use addListenerIfReqeustPending method. What are posible reasons not to start execute request?

Était-ce utile?

La solution

Which version do you use ? 1.4.1 has just been released. And which service do you use ? Which cache manager is used by the SpiceService ?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top