INNER CODE UNIT · Java

onEvent

iqiyi/xCrash · xcrash_lib/src/main/java/xcrash/AnrHandler.java:102

            public void onEvent(int event, String path) {
                try {
                    if (path != null) {
                        String filepath = "/data/anr/" + path;
                        if (filepath.contains("trace")) {
                            handleAnr(filepath);
                        }
                    }
                } catch (Exception e) {
                    XCrash.getLogger().e(Util.TAG, "AnrHandler fileObserver onEvent failed", e);
                }
            }
        };

        try {
            fileObserver.startWatching();
        } catch (Exception e) {
            fileObserver = null;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…