Reputation: 16398
I was reading the Writing Style Guidelines provided by Google until I saw this:
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
Reputation: 1006574
Is this true?
By establishing a top-level exception handler, yes. See Thread
and setDefaultUncaughtExceptionHandler()
.
Upvotes: 2
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