@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(); }
@Override protected void onResume() { super.onResume(); LogUtils.d("--->Root onResume"); logic(); }
@Override protected void onDestroy() { super.onDestroy(); LogUtils.d("---->Root onDestroy"); }
@Override protected void onResume() { super.onResume(); LogUtils.d(TAG, "--->onResume"); }