@Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   // 设置所有activity为竖直
   setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
   AppManager.getAppManager().addActivity(this);
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   AppManager.getAppManager().finishActivity(this);
 }