Example #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_root);
    LogUtils.d("---->Root onCreate");

    // 监听网络
    if (network == null) {
      network = new Intent(Root.this, NetworkStateService.class);
    }
    startService(network);

    findView();
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   LogUtils.d("---->BaseActivity onDestroy stopNetworkService");
   stopNetworkService();
 }
Example #3
0
 @Override
 protected void onResume() {
   super.onResume();
   LogUtils.d("--->Root onResume");
   logic();
 }
Example #4
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   LogUtils.d("---->Root onDestroy");
 }
Example #5
0
 @Override
 protected void onResume() {
   super.onResume();
   LogUtils.d(TAG, "--->onResume");
 }