Back to project page Common-Library.
The source code is released under:
Apache License
If you think the Android project Common-Library 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.morgan.library.app; //w w w. j av a2 s . com import android.app.Activity; import android.os.Bundle; /** * ?????Activity???,?????????? * * @author Morgan.Ji * * @version 1.0 * * @date 2014?7?9? */ public class BaseActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ??????Activity???? AppManager.getInstance().addActivity(this); } @Override protected void onDestroy() { // ????Activity?????? AppManager.getInstance().removeActivity(this); super.onDestroy(); } }