I use RegisterAndroidOnActivityResultListener to hook main activity result, with callback:
static void takephoto_onActivityResult(void *env, void *activity, int32_t request_code, int32_t result_code, void *result)
{}
dmExtension::RegisterAndroidOnActivityResultListener(takephoto_onActivityResult);
how can I use the result
parameter?In a standard onActivityResult, the prototype is:
protected void onActivityResult(int requestCode, int resultCode, Intent data)
How can I convert the result
to Intent
?