msurrow wrote:
> I remember having read somewhere in the documentation that Android
> will restart a crashed service or activity.

I think you remember incorrectly.

> What I specifically need to
> know is what guarantees Android gives when it comes to services,
> activities etc. failing (as in runtime exceptions) - how Android
> handles this

It destroys the component. In the case of an activity, it displays the
"force close" dialog before destroying the component and returns control
to the previous activity on the stack.

> will it always restart the service

AFAIK, it will not restart the service on a RuntimeException. Android
should restart the service automatically if Android got rid of the
service due to a low-memory condition, though I'm not sure that's
guaranteed.

> Can anyone point me to a place in the documentation that has this
> information?

No, because, AFAIK, it is not documented.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.4 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to