org.acra.sender
Class GoogleFormSender

java.lang.Object
  extended by org.acra.sender.GoogleFormSender
All Implemented Interfaces:
ReportSender

public class GoogleFormSender
extends Object
implements ReportSender

ACRA's default ReportSender: sends report data to a GoogleDocs Form.

Author:
Kevin Gaudin

Constructor Summary
GoogleFormSender()
          Creates a new dynamic GoogleFormSender which will send data to a Form identified by its key.
GoogleFormSender(String formKey)
          Creates a new fixed GoogleFormSender which will send data to a Form identified by its key provided as a parameter.
 
Method Summary
 void send(CrashReportData report)
          Send crash report data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleFormSender

public GoogleFormSender()
Creates a new dynamic GoogleFormSender which will send data to a Form identified by its key. All parameters are retrieved from ACRA.getConfig() and can thus be changed dynamically with ACRAConfiguration.setFormKey(String)


GoogleFormSender

public GoogleFormSender(String formKey)
Creates a new fixed GoogleFormSender which will send data to a Form identified by its key provided as a parameter. Once set, the destination form can not be changed dynamically.

Parameters:
formKey - The formKey of the destination Google Doc Form.
Method Detail

send

public void send(CrashReportData report)
          throws ReportSenderException
Description copied from interface: ReportSender
Send crash report data. You don't have to take care of managing Threads, just implement what is necessary to handle the data. ACRA will use a specific Thread (not the UI Thread) to run your sender.

Specified by:
send in interface ReportSender
Parameters:
report - Stores key/value pairs for each report field. A report field is identified by a ReportField enum value.
Throws:
ReportSenderException - If anything goes fatally wrong during the handling of crash data, you can (should) throw a ReportSenderException with a custom message.


Copyright © 2010-2013. All Rights Reserved.