by ramesh465 » Sat Jan 21, 2012 9:15 am
this is the sample code for set background using assets folder
BitmapTextureAtlas bgTexAtlas = new BitmapTextureAtlas(512, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
activity.getEngine().getTextureManager().loadTexture(bgTexAtlas);
TextureRegion bgTexReg = BitmapTextureAtlasTextureRegionFactory.createFromAsset(bgTexAtlas, activity.getBaseContext(), "gfx/bgScreen.png", 0, 0);
Sprite bgSprite = new Sprite(0, 0, bgTexReg);
attachChild(bgSprite);