Android Open Source - growthpush-android Thread






From Project

Back to project page growthpush-android.

License

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.

Java Source Code

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);
      }
    });

  }

}




Java Source Code List

com.growthpush.BroadcastReceiver.java
com.growthpush.GrowthPushException.java
com.growthpush.GrowthPush.java
com.growthpush.Logger.java
com.growthpush.Preference.java
com.growthpush.Thread.java
com.growthpush.bridge.ExternalFrameworkBridge.java
com.growthpush.bridge.ExternalFrameworkBroadcastReceiver.java
com.growthpush.growthpushsample.MainActivity.java
com.growthpush.handler.BaseReceiveHandler.java
com.growthpush.handler.DefaultReceiveHandler.java
com.growthpush.handler.OnlyAlertReceiveHandler.java
com.growthpush.handler.OnlyNotificationReceiveHandler.java
com.growthpush.handler.ReceiveHandler.java
com.growthpush.model.ClientStatus.java
com.growthpush.model.Client.java
com.growthpush.model.Environment.java
com.growthpush.model.Error.java
com.growthpush.model.Event.java
com.growthpush.model.Model.java
com.growthpush.model.Tag.java
com.growthpush.utils.DeviceUtils.java
com.growthpush.utils.IOUtils.java
com.growthpush.utils.PermissionUtils.java
com.growthpush.utils.SystemUtils.java
com.growthpush.view.AlertActivity.java
com.growthpush.view.AlertFragment.java
com.growthpush.view.DialogCallback.java