Open monkeyibrowstudios opened 10 months ago
Hi,
I havn't work with cocos2dx for quite some years and not sure cocos2dx v4 has any breaking api or not. (This project is developed and tested with v3).
The key code path is: Cocos2dxHelper.getActivity().startActivityForResult(intent, IMAGE_PICKER_ACTIVITY);
->onActivityResult
So you can add some log in Cocos2dxHelper.java and Cocos2dxActivity.java, to make sure the correct intent is launched and returned.
If you can provide a simple example to test, I can also help on holiday.
I've being trying to use this in cocos2d-x. It opens the gallery successfully, but right after picking an image, it returns to the application, and nothing happens. Doing some debug, I see that method public boolean onActivityResult is never executed. Any suggestions?