0

During some testing the other day on a Galaxy Tab 10.1, the Facebook app force closed. The "force close" dialog looked different, however; there were two buttons, "force close" and "report." If I clicked "report" I had the option to type in extra text, preview and send the report. This seems like a valuable tool for any app to gather diagnostic information from users; but how can I implement that in my apps? I'd love to see a tutorial or full working example.

Chad Schultz
  • 7,770
  • 6
  • 57
  • 96
  • the report button is [standard](http://stackoverflow.com/questions/2567197/when-i-get-the-force-close-dialog-i-have-a-report-button-where-did-it-come-fro) and you might be able to get the report via market. – zapl Apr 24 '12 at 16:26

3 Answers3

1

Do check out ACRA doesn't take very long to set up and does the job reporting uncaught exceptions and errors.

unexpectedvalue
  • 6,079
  • 3
  • 38
  • 62
  • I do use ACRA. My question was about implementing a custom dialog to handle force closes, and I am not aware of a way to use ACRA to do that. – Chad Schultz Apr 24 '12 at 17:03
1

That sounds like the default error report dialog. You won't ever see it while debugging. It will only show to end users who have downloaded your app from Google Play.

David Scott
  • 1,666
  • 12
  • 22
  • 1
    Thanks David--that explains why I hadn't seen it before. I feel dumb now! Here I was thinking that must have been custom functionality. – Chad Schultz Apr 24 '12 at 17:02
0

So far I've seen links such as How to give event on force close dialog's ok button and Ideal way to set global uncaught exception Handler in Android that mention UncaughtExceptionHandler, and one poster even mentioned Acra, but I have yet to see a WORKING example.

Community
  • 1
  • 1
Chad Schultz
  • 7,770
  • 6
  • 57
  • 96