nicolasgramlich / AndEngine

Free Android 2D OpenGL Game Engine
http://www.andengine.org
Apache License 2.0
3.17k stars 1.35k forks source link

How can I start a new GameActivity from a GameActivity #240

Closed zl-leaf closed 10 years ago

zl-leaf commented 10 years ago

I use "Intent intent = new Intent(this, Level2Game.class); this.startActivity(intent); "to start Level2Game in Level1Game,but it case NullException because the Engine is Null in the function onResumeGame() in BaseGameActivity.Could you tell me how can I start a new GameActivity from a GameActivity?

andreiverdes commented 10 years ago

Hi, this seems not to be an issue, contact me at andrei.verdesh@gmail.com with some code and stacktrace and I'll be glad to help! Also I can give my example on starting GameActivity from within GameActivity.

zl-leaf commented 10 years ago

Hello,I still have the problem on on starting GameActivity from within GameActivity and I can not find the solution in the AndEngineExamples, so can you give me your example on starting GameActivity from within GameActivity?

2013/10/14 andreiverdes notifications@github.com

Hi, this seems not to be an issue, contact me at andrei.verdesh@gmail.comwith some code and stacktrace and I'll be glad to help! Also I can give my example on starting GameActivity from within GameActivity.

— Reply to this email directly or view it on GitHubhttps://github.com/nicolasgramlich/AndEngine/issues/240#issuecomment-26228894 .