Hi,

This is a great answer ;-)

For your information, the code which terminates the application was taken 
from the original android default UncaughtExceptionHandler source code.

Kevin
http://acra.ch

On Monday, September 10, 2012 9:43:16 PM UTC+2, Lew wrote:
>
> bob wrote:
>>
>> Not sure if this is good since he calls System.exit, which I was told 
>> never to call.
>>
>>>
>>>>
> "I was told ..."
>
> To avoid cargo-cult programming, one should delve into the rationale 
> behind advice.
>
> The rationale to avoid 'System.exit()', which is different advice from 
> never use it, 
> is that it causes a program exit. If you *want* to exit the program and do 
> it abruptly 
> without any opportunity to clean up, then it's just fine.
>
> The question is when you'd want to do such a thing. Perhaps when the 
> program 
> state is horridly fubared already and you have no choice but to crash 
> anyway?
>
> -- 
> Lew
>
>

-- 
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