content: package com.alibaba.android.arouter.core;
  
  import android.annotation.TargetApi;
  import android.app.Activity;
  import android.app.Application;
  import android.os.Build;
  import android.os.Bundle;
  
  import com.alibaba.android.arouter.launcher.ARouter;
  
  /**
   * LifecycleCallback for autowired.
   *
   * @author zhilong <a href="mailto:zhilong.lzl@alibaba-inc.com">Contact me.</a>
   * @version 1.0
   * @since 2017/2/21 上午11:28
   */
  @Deprecated
  @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
  public class AutowiredLifecycleCallback implements Application.ActivityLifecycleCallbacks {
      @Override
      public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
          ARouter.getInstance().inject(activity);
      }
  
      @Override
      public void onActivityStarted(Activity activity) {
  
      }
  
      @Override
      public void onActivityResumed(Activity activity) {
  
      }
  
      @Override
      public void onActivityPaused(Activity activity) {
  
      }
  
      @Override
      public void onActivityStopped(Activity activity) {
  
      }
  
      @Override
      public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
  
      }
  
      @Override
      public void onActivityDestroyed(Activity activity) {
  
      }
  }
  