I need to save the screenshot of my game in such a folder which displays it in gallery as well. My current code Does the following to get a writable path:
std::string path = CCFileUtils::sharedFileUtils()->getWriteablePath();It returns me a path like data/data//cache. But this folder is not accessible for other apps and thus does not show in the android gallery. What other method can I use to get a writable path?