Hello,
In order to reduce the battery life (and memory) I came up with a conclusion that I will create series of tasks that can be executed by RoboSpice, the idea is to create an instance of the service, run the task and stop it in the onSuccess method.
Another approach is using a service which will stop in onStop method (of Activity) but the application uses Robospice in the widget as well which executes a request once an hour.
I am not sure how long one of those requests might be running for (might await for gps location).
Most of the requests are trivial (getFromCache, putInCache) but there is one that executes 10 or 20 in order to refresh the whole data.
Any thoughts what would be the ideal way to solve it?
Thanks,
Damian