java – How to Trace and Handle WebRTC Internal Errors in Android to Prevent App Crashes?
I’m using a third-party WebRTC library in my Android application to implement a LIVE CCTV feature. I’ve wrapped the entire code for starting and stopping the live CCTV feed in a try-catch block, but the app still crashes occasionally when users are using the application. Unfortunately, I’m unable to reproduce the crashes during testing, so I don’t have the logs of the error.
How can I handle these internal errors more gracefully to prevent the app from crashing?
- Are there best practices for dealing with unpredictable behavior or crashes from third-party libraries in Android?
-
Using try-catch: I’ve wrapped the WebRTC implementation code in
try-catchblocks, but it doesn’t seem to catch the exceptions causing the crashes. -
User Feedback: The crashes occur sporadically during real-world usage, but I haven’t been able to replicate the issue during testing, making it difficult to trace the root cause.
Read more here: Source link
