Sentry Error Monitoring - Android

I need to implement Sentry for my Android application, I'm trying to find an example on how I can implement this, but I can not find it. I saw the Sentry documentation at http://sentry.readthedocs.org/en/latest/developer/client/index.html#server_name

But I have some questions. If the application crashes, will the exception be caught? Should I put this line of code in my try / catch? var $ resultId = myClient-> captureException ($ myException); (in Android code)

If anyone has a sample in android, I will be grateful.

Thanks!

+4
source share
2 answers

Maybe try using something like BugSense? http://www.bugsense.com/

If this should definitely be Sentry, look at this example: fooobar.com/questions/12441 / ...

It shows you how to install your own uncaught exception handler so you can try and load it into Sentry.

+3
source

I'm a little late, but I recently released the Sentry client for Android. This is in the early stages, so feel free to request any changes you see.

https://github.com/joshdholtz/Sentry-Android

public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Sentry will look for uncaught exceptions from previous runs and send them Sentry.init(this, "YOUR-SENTRY-DSN"); } } 
+17
source

Source: https://habr.com/ru/post/1434620/


All Articles