content: package org.cocos2dx.asteroids;
  import org.cocos2dx.lib.Cocos2dxActivity;
  import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
  
  import android.os.Bundle;
  import android.widget.EditText;
  
  public class Asteroids extends Cocos2dxActivity{
  	private Cocos2dxGLSurfaceView mGLView;
  	
  	protected void onCreate(Bundle savedInstanceState){
  		super.onCreate(savedInstanceState);
  		
  		// get the packageName,it's used to set the resource path
  		String packageName = getApplication().getPackageName();
  		super.setPackageName(packageName);
  		
  		setContentView(R.layout.game_demo);
          mGLView = (Cocos2dxGLSurfaceView) findViewById(R.id.game_gl_surfaceview);
          mGLView.setTextField((EditText)findViewById(R.id.textField));
  
          // Get the size of the mGLView after the layout happens
          mGLView.post(new Runnable() {
              
              @Override
              public void run() {
                  Cocos2dxActivity.screenHeight = mGLView.getHeight();
                  Cocos2dxActivity.screenWidth = mGLView.getWidth();
              }
          });
  	}
  	
  	 @Override
  	 protected void onPause() {
  	     super.onPause();
  	     mGLView.onPause();
  	 }
  
  	 @Override
  	 protected void onResume() {
  	     super.onResume();
  	     mGLView.onResume();
  	 }
  	
       static {
      	 System.loadLibrary("cocos2d");
      	 System.loadLibrary("cocosdenshion");
           System.loadLibrary("game");
       }
  }
  