I created unity's plugin .jar
My plugin included android's gallery intent source.
Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
Intent intento = new Intent();
mActivity.startActivityForResult(intento.createChooser(intent,"Select"), REQ_SELECTED_IMAGE);
But,, I can not receive REQ_SELECTED_IMAGE message
at Android's onActivityResult(). because, I can not found QCAR's
onActivityResult() override.
How can i found Android's onActivityResult()?
You'll probably want to override the onBackPressed callback to implement your desired behavior (i.e. resuming the Unity activity )
public void onBackPressed ()
Called when the activity has detected the user's press of the back key. The default implementation simply finishes the current activity, but you can override this to do whatever you want.
http://developer.android.com/reference/android/app/Activity.html#onBackPressed%28%29