Hi ,
the following code is working perfectly on IOS showing the sprite correctly when resuming
while on Android the sprite is correctly displayed on initial launch ; but when resuming app a ‘blinking’ white area
is showing at sprite location instead of sprite (FPS area is also blinking when application resumes)
//_batcNode being defined in helloworld.h private with following code in init method on generated hellowolrd project
_batchNode = CCSpriteBatchNode::batchNodeWithFile(“Sprites.pvr.ccz”,10) ;
this->addChild(_batchNode) ;
CCSpriteFrameCache::sharedSpriteFrameCache()>addSpriteFramesWithFile ;>addChild(sprite);
CCSprite* sprite = CCSprite::spriteWithSpriteFrameName ;
_batchNode
CCSize winSize = CCDirector::sharedDirector()>getWinSize ;>setPosition(ccp(winSize.width * 0.1 , winSize.height * 0.5) ) ;
sprite
problem both occurs on device or emulator.
NDK used : android-ndk-r7
Replacing CCSPriteBatchNode by a standard Sprite:initWithFile fixes the above problem.
Is it a bug or something wrong in above code ?
Thanks