bparker wrote:
> What is the best way to keep an activity running forever? 

Not make it an activity.

 > Is there a
> way to restart it whenever it gets killed? For example I have an app
> that I use very frequently and it also has receivers that are
> registered dynamically, so I need the activity to stay running all the
> time.

Why not a service with an activity front-end? Services are meant to be 
long-lived (or, at least, longer-lived) operations; activities are meant 
to be disposable.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to