Back to project page growthpush-android.
The source code is released under:
Apache License
If you think the Android project growthpush-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.growthpush; //ww w. j av a 2s . c om public class Thread extends java.lang.Thread { public Thread() { super(); initializeUncaughtExceptionHandler(); } public Thread(Runnable runnable) { super(runnable); initializeUncaughtExceptionHandler(); } public Thread(Runnable runnable, String threadName) { super(runnable, threadName); initializeUncaughtExceptionHandler(); } private void initializeUncaughtExceptionHandler() { setUncaughtExceptionHandler(new java.lang.Thread.UncaughtExceptionHandler() { @Override public void uncaughtException(java.lang.Thread thread, Throwable e) { String message = "Uncaught Exception: " + e.getClass().getName(); if (e.getMessage() != null) message += "; " + e.getMessage(); GrowthPush.getInstance().getLogger().warning(message); } }); } }