|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acra.collector.CrashReportDataFactory
public final class CrashReportDataFactory
Responsible for creating the CrashReportData for an Exception.
Also responsible for holding the custom data to send with each report.
Constructor Summary | |
---|---|
CrashReportDataFactory(android.content.Context context,
android.content.SharedPreferences prefs,
android.text.format.Time appStartDate,
String initialConfiguration)
|
Method Summary | |
---|---|
CrashReportData |
createCrashData(Throwable th,
boolean isSilentReport,
Thread brokenThread)
Collects crash data. |
String |
getCustomData(String key)
Gets the current value for a key in the custom data field. |
String |
putCustomData(String key,
String value)
Adds a custom key and value to be reported with the generated CashReportData. |
String |
removeCustomData(String key)
Removes a key/value pair from the custom data field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrashReportDataFactory(android.content.Context context, android.content.SharedPreferences prefs, android.text.format.Time appStartDate, String initialConfiguration)
Method Detail |
---|
public String putCustomData(String key, String value)
Adds a custom key and value to be reported with the generated CashReportData.
The key/value pairs will be stored in the "custom" column, as a text containing one 'key = value' pair on each line.
key
- A key for your custom data.value
- The value associated to your key.
public String removeCustomData(String key)
key
- The key of the data to be removed.
public String getCustomData(String key)
key
- The key of the data to be retrieved.
public CrashReportData createCrashData(Throwable th, boolean isSilentReport, Thread brokenThread)
th
- Throwable that caused the crash.isSilentReport
- Whether to report this report as being sent silently.brokenThread2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |