本文整理汇总了Java中org.acra.ACRAConfiguration.setResDialogCommentPrompt方法的典型用法代码示例。如果您正苦于以下问题:Java ACRAConfiguration.setResDialogCommentPrompt方法的具体用法?Java ACRAConfiguration.setResDialogCommentPrompt怎么用?Java ACRAConfiguration.setResDialogCommentPrompt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.acra.ACRAConfiguration
的用法示例。
在下文中一共展示了ACRAConfiguration.setResDialogCommentPrompt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sendProblemReport
import org.acra.ACRAConfiguration; //导入方法依赖的package包/类
private void sendProblemReport() {
ACRAConfiguration cfg = ACRA.getConfig();
cfg.setResDialogText(R.string.problem_dialog_text);
cfg.setResDialogCommentPrompt(R.string.problem_dialog_comment_prompt);
ACRA.setConfig(cfg);
ACRA.getErrorReporter().handleException(null);
ErrorReporter er = ACRA.getErrorReporter();
er.putCustomData("cause", "sendProblemReport");
er.handleException(null);
// FIXME: we really want to restore the default strings after the report dialog
// is finished, but changing them here would override the problem_dialog_* strings
// set above.
//ACRA.setConfig(ACRA.getNewDefaultConfig((Application)getApplicationContext()));
}
示例2: onCreate
import org.acra.ACRAConfiguration; //导入方法依赖的package包/类
@Override
public void onCreate() {
/*
* The following line triggers the initialization of ACRA
* ACRA is used to help with debug logs etc.
*/
ACRA.init(this);
ACRA.getErrorReporter().setReportSender(new CrashReporterSave(this));
ACRAConfiguration conf = ACRA.getNewDefaultConfig(this);
try {
conf.setCustomReportContent(new ReportField[] { DISPLAY, USER_COMMENT, USER_EMAIL, TOTAL_MEM_SIZE, AVAILABLE_MEM_SIZE });
conf.setResDialogCommentPrompt(R.string.crash_dialog_comment_prompt);
conf.setResToastText(R.string.crash_toast_text);
conf.setResDialogText(R.string.crash_dialog_text);
conf.setResDialogEmailPrompt(R.string.crash_dialog_email_prompt);
conf.setResDialogTitle(R.string.crash_dialog_title);
conf.setResDialogOkToast(R.string.crash_dialog_ok_toast);
conf.setMode(ReportingInteractionMode.DIALOG);
} catch (ACRAConfigurationException e) {
e.printStackTrace();
}
ACRA.setConfig(conf);
// Have to call this to continue loading Android
super.onCreate();
}
示例3: sendProblemReport
import org.acra.ACRAConfiguration; //导入方法依赖的package包/类
private void sendProblemReport() {
ACRAConfiguration cfg = ACRA.getConfig();
cfg.setResDialogText(R.string.problem_dialog_text);
cfg.setResDialogCommentPrompt(R.string.problem_dialog_comment_prompt);
ACRA.setConfig(cfg);
ACRA.getErrorReporter().handleException(null);
// FIXME: we really want to restore the default strings after the report dialog
// is finished, but changing them here would override the problem_dialog_* strings
// set above.
//ACRA.setConfig(ACRA.getNewDefaultConfig((Application)getApplicationContext()));
}
示例4: reportBadRom
import org.acra.ACRAConfiguration; //导入方法依赖的package包/类
private void reportBadRom(Exception e) {
ACRAConfiguration cfg = ACRA.getConfig();
cfg.setResDialogText(R.string.bad_rom_text);
cfg.setResDialogCommentPrompt(R.string.bad_rom_comment_prompt);
ACRA.setConfig(cfg);
ErrorReporter er = ACRA.getErrorReporter();
er.putCustomData("cause", "reportBadRom");
er.handleException(e);
}