CCSize screen = CCDirector::sharedDirector()>getWinSize;>setPosition(ccp(screen.width/2, screen.height/2));
CCRenderTexture *tex = CCRenderTexture::create, int);
tex
tex~~>begin;
backgroundSprite~~>visit();
girlSprite~~>visit;
tex~~>end();
SocialShare::screenShot(tex);
and the screenShot use the jni to get the path in Android then call the method
tex->saveToFile(pathAndName.str().c_str(),kCCImageFormatJPEG);
I got a blank jpg… please help… this works on 2.0.3 but not works on 2.1.4