2012/9/7 Lew <lewbl...@gmail.com>

>
> You should protect the user from invalid program states, like the crash
> you
> deliberately programmed in here.
>

+100500 :)


>
> I've never understood the philosophy of intentionally crashing a program
> on your user. It's unkind and bad business.
>

Calling exit() will, I believe, prevent the standard crash reporting built
into Android from doing its thing (since the code doesn't unwind to the
default catch-all exception handler).

This will prevent the developer from finding out about any crashes that
happen "in the field", thereby keeping the bugs in the app, forever and
ever.

Reporting the crash stack in the logcat really doesn't do anything for end
users -- not every one is expected to have a logcat reading app, to grant
it appropriate permissions on 4.1 and higher, and to look there at the
right time.

Now, one could say that turning a blind eye towards crashes in one's own
code is an elegant way to save time and effort needed to fix bugs. See no
evil...

-- K

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