org.acra.sender
Interface ReportSender
- All Known Implementing Classes:
- EmailIntentSender, GoogleFormSender, HttpSender
public interface ReportSender
A simple interface for defining various crash report senders. You can reuse
HttpSender
to send reports to your custom server-side report
collection script even if you expect (or prefer) specific names for each
report field as HttpSender#HttpPostSender(String, java.util.Map)
can take a Map as an input to convert each field name to
your preferred POST parameter name.
- Author:
- Kevin Gaudin
send
void send(CrashReportData errorContent)
throws ReportSenderException
- 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.
- Parameters:
errorContent
- 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.