Using images from android gallery in cocos 2dx

Hi
I need to browse and use images from the android gallery in the cocos2dx app. I am guessing we need to use JNI for this but can someone please explain how this can be done?

thank you