Reputation: 173
I'm too new for AndEngine and I can not say to much thing to tell you problem. Code is below..
public class MainActivity extends BaseGameActivity {
private static final int CAMERA_WIDTH = 768;
private static final int CAMERA_HEIGHT = 1280;
Scene scene;
@Override
public EngineOptions onCreateEngineOptions() {
Camera mCamera = new Camera(0,0,CAMERA_WIDTH, CAMERA_HEIGHT);
EngineOptions options = new EngineOptions(true, ScreenOrientation.PORTRAIT_FIXED, new RatioResolutionPolicy(CAMERA_WIDTH,CAMERA_HEIGHT), mCamera);
return options;
// TODO Auto-generated method stub
}
@Override
public void onCreateResources(
OnCreateResourcesCallback pOnCreateResourcesCallback)
throws Exception {
// TODO Auto-generated method stub
pOnCreateResourcesCallback.onCreateResourcesFinished();
}
@Override
public void onCreateScene(OnCreateSceneCallback pOnCreateSceneCallback)
throws Exception {
// TODO Auto-generated method stub
this.scene = new Scene();
this.scene.setBackground(new Background(15,25,35));
pOnCreateSceneCallback.onCreateSceneFinished(this.scene);
}
@Override
public void onPopulateScene(Scene pScene,
OnPopulateSceneCallback pOnPopulateSceneCallback) throws Exception {
// TODO Auto-generated method stub
}
}
Also here is the logcat.(sorry but logcat is too long) What is the problem and solution?
Upvotes: 0
Views: 84
Reputation: 301
From your logcat you have java.lang.NoSuchMethodError: org.andengine.opengl.view.RenderSurfaceView.setEGLContextClientVersion
just try to google it... and you find possible answer on AndEngine forums:
Please note that the Emulator in Eclipse does not work with the latest GLES2 AndEngine. See here...
Upvotes: 2