views:

74

answers:

0

I'm looking for the most suitable class to be a dispatcher for AsyncTasks invoked from my Activities.

I think it could be one of these:

  1. subclass of Application;
  2. subclass of Service;
  3. my own static stuff.

As for me - it's simlier to implement the 3rd choice. But the question is will it be more "death-resistant" than Service or Application? Also it's very interesting what will live longer - Application or Service? My guess is the Application lives as long as the app (task in terms of Android) process lives.

So basically I need to range those options by their "death-resistant" quality, because I'd like to rely on the most "static" thing.