Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android crash log annotation

Is it possible for an Android application to add additional lines to a crash log before it actually crashes in order to send better debugging information back to the developers?

like image 745
David Buck Avatar asked Sep 10 '26 02:09

David Buck


1 Answers

Use Fabric or firebase crash analytics. They will provide you the crash logs.

enter image description here

In your onCreate

import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem;

import com.crashlytics.android.Crashlytics; import io.fabric.sdk.android.Fabric;


public class MainActivity extends ActionBarActivity { 
@Override 
protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState);

    Fabric.with(this, new Crashlytics());
    setContentView(R.layout.activity_main); 
   }
}

Use the link below to integrate crash analytics in your app

https://fabric.io/kits/android/crashlytics/install

like image 57
Fazal Hussain Avatar answered Sep 12 '26 15:09

Fazal Hussain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!