What's the most "death-resistant" component on Android?
Posted
by Arhimed
on Stack Overflow
See other posts from Stack Overflow
or by Arhimed
Published on 2010-04-12T17:59:40Z
Indexed on
2010/04/12
18:03 UTC
Read the original article
Hit count: 248
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:
- subclass of Application;
- subclass of Service;
- 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.
© Stack Overflow or respective owner