I develop android app but in some cases my app force close
How can I send email to developer contains details if force close
happen in any time ?
The ACRA library will fulfill your requirement. You just need to setup the email. The tutorial and setup is defined here.
Download the library with .jar in lib
You just need to define the Application class and write the following code just above application class and override onCreate()
method like this
@ReportsCrashes(formKey = "", // will not be used
mailTo = "[email protected]",
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash_toast_text)
public class MyApplication extends Application {
@Override
public void onCreate() {
ACRA.init(this);
super.onCreate();
}
}
Thats it. The email action will get opened whose body contains crash report.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With