Last active
July 5, 2018 04:53
-
-
Save shikto1/f715bddcf3bf7cb35f2aad313c7511b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.fabric.sdk.android.Fabric; | |
import com.crashlytics.android.Crashlytics; | |
public class MainActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
//This is the most important line......... | |
Fabric.with(this, new Crashlytics()); | |
setContentView(R.layout.activity_main); | |
} | |
public void forceCrash(View view) { | |
throw new RuntimeException("This is a crash"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment