0
ACRA를 자동 모드로 오래 사용했습니다. 모든 것이 잘되고 이것은 멋진 라이브러리입니다.ACRA가 알림을 표시 한 후 알림 메시지가 표시되지 않는 경우
하지만 오늘은 클라이언트에 알림 메서드를 사용하려고했습니다.
나는 이런 식으로 그것을 사용 :
에서는 MyApplication
@ReportsCrashes(formKey = "****",
mode = ReportingInteractionMode.NOTIFICATION,
resToastText = R.string.crash_toast_text, // optional, displayed as soon as the crash occurs, before collecting data which can take a few seconds
resNotifTickerText = R.string.crash_notif_ticker_text,
resNotifTitle = R.string.crash_notif_title,
resNotifText = R.string.crash_notif_text,
resNotifIcon = android.R.drawable.stat_notify_error, // optional. default is a warning sign
resDialogText = R.string.crash_dialog_text,
resDialogIcon = android.R.drawable.ic_dialog_info, //optional. default is a warning sign
resDialogTitle = R.string.crash_dialog_title, // optional. default is your application name
resDialogCommentPrompt = R.string.crash_dialog_comment_prompt, // optional. when defined, adds a user text field input with this text resource as a label
resDialogOkToast = R.string.crash_dialog_ok_toast // optional. displays a Toast message when the user accepts to send a report.
)
에 그리고 모든 따라 문자열을 XML 파일에. 내 활동에
, 나는 그것을 이렇게 충돌합니다
String i=null;
i.contains("kj");
이전 로그가 올바르게 내 Google 문서를 보냈습니다.
하지만 알림이 활성화되었으므로 큰 문제는 알림 (Android 4.1.2)이 표시되고 클릭하면 아무 일도 발생하지 않는다는 것입니다.
10-19 17:08:36.599: I/ACRA(12018): READ_LOGS granted! ACRA can include LogCat and DropBox data.
10-19 17:08:36.614: D/ACRA(12018): Retrieving logcat output...
10-19 17:08:36.700: D/dalvikvm(12018): GC_CONCURRENT freed 861K, 30% free 6778K/9603K, paused 12ms+3ms, total 33ms
10-19 17:08:36.700: D/dalvikvm(12018): WAIT_FOR_CONCURRENT_GC blocked 14ms
10-19 17:08:36.700: D/ACRA(12018): Writing crash report file 1350659316000.stacktrace.
10-19 17:08:36.732: D/ACRA(12018): About to send status bar notification from #handleException
10-19 17:08:36.732: D/ACRA(12018): Creating Notification for 1350659316000.stacktrace
10-19 17:08:36.763: W/System.err(12018): at java.lang.Thread.run(Thread.java:856)
10-19 17:08:36.771: D/ACRA(12018): Waiting for Toast + worker...
10-19 17:08:39.786: D/ACRA(12018): Wait for Toast + worker ended. Kill Application ? true
어떤 생각 :
로그 캣은 저에게이 있습니다?
안녕을 고정,하지만 난 아직도 정확히이 문제의 코드와 메신저를 복사 한 어떤 종류의 알림도받지 못합니다. 네가 한 짓이 있었 니? – Ogen