public final class DefaultCrashReporter

  1. Object
  2. DefaultCrashReporter

ImplementsCrashReport

A default implementation of the crash reporter that instantly sends the crash data to the server.

Methods

public static String getErrorText()The text for the user prompt dialog
public static void setErrorText(String aErrorText)The text for the user prompt dialog
public static String getSendButtonText()The text for the user prompt dialog
public static void setSendButtonText(String aSendButtonText)The text for the user prompt dialog
public static String getDontSendButtonText()The text for the user prompt dialog
public static void setDontSendButtonText(String aDontSendButtonText)The text for the user prompt dialog
public static String getCheckboxText()The text for the user prompt dialog
public static void setCheckboxText(String aCheckboxText)The text for the user prompt dialog
public static void init(boolean promptUser, int frequency)Installs a crash reporter within the system
public void exception(Throwable t)Callback for an exception that was not handled by the developer

Inherited methods

Method details

getErrorText

public static String getErrorText()
The text for the user prompt dialog

Returns

the errorText

setErrorText

public static void setErrorText(String aErrorText)
The text for the user prompt dialog

Parameters

aErrorText String
the errorText to set

getSendButtonText

public static String getSendButtonText()
The text for the user prompt dialog

Returns

the sendButtonText

setSendButtonText

public static void setSendButtonText(String aSendButtonText)
The text for the user prompt dialog

Parameters

aSendButtonText String
the sendButtonText to set

getDontSendButtonText

public static String getDontSendButtonText()
The text for the user prompt dialog

Returns

the dontSendButtonText

setDontSendButtonText

public static void setDontSendButtonText(String aDontSendButtonText)
The text for the user prompt dialog

Parameters

aDontSendButtonText String
the dontSendButtonText to set

getCheckboxText

public static String getCheckboxText()
The text for the user prompt dialog

Returns

the checkboxText

setCheckboxText

public static void setCheckboxText(String aCheckboxText)
The text for the user prompt dialog

Parameters

aCheckboxText String
the checkboxText to set

init

public static void init(boolean promptUser, int frequency)
Installs a crash reporter within the system

Parameters

promptUser boolean
indicates whether the user should be prompted on crash reporting
frequency int
the frequency with which we send the log to the server in debug mode in minutes frequency must be at least 1. Any lower level automatically disables this feature

exception

public void exception(Throwable t)
Callback for an exception that was not handled by the developer

Parameters

t Throwable
the exception