I have my game running perfectly fine on my PC. but when i port my game on android using cygwin 1.7/Eclipse. the game runs perfectly fine for the first scene (Which is a MainMenuScene) on AVD but as soon as i clicked on start game it crashes showing msg, as.
UNABLE TO GET DATA (BackGroung.png) FROM ASSET. and exits to the home screen on AVD.
I have only two scenes in my game MainMenuScene and GamePlayScene. I tried using BackGround.png in MainMenuScene (First Scene) it loads the BackGround.png in first scene but in second scene it crashes while loading the same sprite…i dont know why…i m surely be doing somthing wrong but i m not able to figure it out so please help me…
CCSprite mainMenuBg = CCSprite::spriteWithFile;
it loads BackGround.png in first scene but it does not loads the same image in second GamePlayScene.
and this problem is coming only on AVD on my PC its running fine.
and my code is like this…
in AppDelegate,
// create a scene. it’s an autorelease object
CCScenepScene = MainMenu::constructScene();
// run
pDirector->runWithScene(pScene);
and in mainMenu Scene as you click on StartGame i replace scene as,