Skip to content Skip to sidebar Skip to footer

Add User Input To Acra Crash Report

Basically, this is what I'm trying to accomplish and nothing I've tried seems to work. Whenever there's a crash, before the ACRA report is sent, I'd like to display an EditText in

Solution 1:

In ACRA 4.6.1 you can configure a custom dialog that it displayed when your app crashes. You could use that to include an EditText to capture the data and push it into the ACRA custom data.

Solution 2:

Best way I've found is to copy whole CrashReportDialog to new class and change the implementation. BaseCrashReportDialog is so basic that You generally need to write all the functionality in CrashReportDialog yourself. On the other way You can not extend CrashReportDialog because it hides many useful variables as privates. Then You can change

protected View buildCustomView(Bundle savedInstanceState)

implementation. Unfortunately all layout is set programatically and You can not just substitute one layout.xml with another one.

Post a Comment for "Add User Input To Acra Crash Report"