// initialization code
  void InitView() {
    // initialize our screen holder
    SurfaceHolder holder = getHolder();
    holder.addCallback(this);

    // initialize our game engine
    gEngine = new GameEngine();
    gEngine.Init(context);
    // initialize our Thread class. A call will be made to start it later
    thread = new PaintThread(holder, context, new Handler(), gEngine);
    setFocusable(true);
  }
 public void onResume() {
   gEngine.onResume();
 }
 public void onPause() {
   gEngine.onPause();
 }