Пример #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   // 设置所有activity为竖直
   setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
   AppManager.getAppManager().addActivity(this);
 }
Пример #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   AppManager.getAppManager().finishActivity(this);
 }