iTurki
iTurki

Reputation: 16398

How to Modify App Crashing Dialog?

I was reading the Writing Style Guidelines provided by Google until I saw this:

snapshot from the site

What I understand from this example is: you can modify the crashing message that appears when your app crashes. Is this true? Is it possible to change the crashing dialog text? Or is it just a not-real example?

Upvotes: 0

Views: 156

Answers (2)

CommonsWare
CommonsWare

Reputation: 1006574

Is this true?

By establishing a top-level exception handler, yes. See Thread and setDefaultUncaughtExceptionHandler().

Upvotes: 2

nhaarman
nhaarman

Reputation: 100358

I think it's what Google themselves changed through various versions. In GingerBread I would get the "wrong" force close dialog, in ICS the "right" one.

They're now using it as an example for other developers - learn from other people's 'mistakes'.

Upvotes: 2

Related Questions