I’m developing an extension, which will invoke system gallery to pick photo,I can use dmGraphics::GetNativeAndroidActivity() in C++ and in java, I can use this Context to start activity.
But how to receive the data picked from the system gallery?I don’t know how to implement the following function:
void onActivityResult(int requestCode, int resultCode, Intent data);
I have an idea.I start an activity A, then startActivityForResult in A, so I can receive onActivityResult in A,but this require an custom AndroidManifest.xml that including the main game Activity: com.dynamo.android.DefoldActivity, I’m not sure how to rewrite this xml.
Unfortunately, getting the AndroidManifest.xml (or Info.plist for iOS) isn’t very convenient today.
You’ll have to unpack bob.jar
and get the file from the unpacked folder: