@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_guide);

    // 获取屏幕的宽高
    WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
    windowWidth = wm.getDefaultDisplay().getWidth();
    windowHeight = wm.getDefaultDisplay().getHeight();

    // 初始化布局中的组件
    setUpView();

    // 为该布局中的组件添加监听事件
    setListener();

    // 初始化页面
    init();
    setIsHaveComed();
  }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_register);
 }