Closed GoogleCodeExporter closed 8 years ago
Hi,
Using handleSilentException() won't show any notification as it allows you to
send debugging "silent" reports even if you are using the status bar
notification mode.
Anyway, this should not crash. The stacktrace make me wonder if you correctly
added the call to ACRA.init(this) in your Application.onCreate() method. Could
you please check this ?
Kevin
Original comment by kevin.gaudin
on 11 Mar 2011 at 5:27
Thanks for the quick feedback.
I have:
public void onCreate() {
ACRA.init(this);
super.onCreate();
}
in the App.onCreate()
Using
ErrorReporter.getInstance().handleException(e);
Still the same Error.
All works as expected with the same ARCA error as before.
Snippet of manifest:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="Tech">
<activity android:name="org.acra.CrashReportDialog"
android:theme="@android:style/Theme.Dialog"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true" />
Class:
public class Tech extends Application {
@Override
public void onCreate() {
ACRA.init(this);
super.onCreate();
}
}
Original comment by ajayjoseis
on 12 Mar 2011 at 7:24
Could you please add your @ReportsCrashes configuration on top of your
Application (Tech) class ?
Original comment by kevin.gaudin
on 12 Mar 2011 at 8:18
Thanks. But I do have that as well, there would be build errors if I didn't
have this. Its probably something else that I am overlooking. I am going to
look further.
@ReportsCrashes(formKey="XXX-I have the formkey here",
mode = ReportingInteractionMode.NOTIFICATION,
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.
)
Original comment by ajayjoseis
on 14 Mar 2011 at 5:59
It worked, my Manifest was wrong.
Overlooked a silly mistake.
Had another application branch, forgot to remove it after the copy paste from
the wiki :)
Original comment by ajayjoseis
on 14 Mar 2011 at 6:10
Great work on creating the library, glad to see it working!
Thanks,
Ajay
Original comment by ajayjoseis
on 14 Mar 2011 at 6:24
Ok, great you solved your issue ;-)
Thanks,
Kevin
Original comment by kevin.gaudin
on 15 Mar 2011 at 12:03
Would you mind to indicate which changes you made to your manifest to make it
work?
I am having troubles since my application is crashing at ACRA.init(this).
I am not sure if I did something wrong in the manifesto
Original comment by david.w....@gmail.com
on 31 Oct 2011 at 2:45
Original issue reported on code.google.com by
ajayjoseis
on 11 Mar 2011 at 4:50