@ Joshua Quick
I need to override onActivityResult of CoronaActivity.
Your following answer has a limitation.
http://forums.coronalabs.com/topic/37282-how-can-one-capture-cameragallery-return-result-in-android-native-code/?p=193386
Using CoronaActivity.OnActivityResultHandler only works when you can call directly activity.startActivityForResult with the requestCode which is returned by CoronaActivity.registerActivityResultHandler().
But I need to use a library in which activity.startActivityForResult is called with a constant value of requestCode I cannot specify.
So, made MyCoronaActivity which extends CoronaActivity and override onActivityResult().
And I changed AndroidManifest.xml like this.
<!-- The main Corona activity that runs the Corona project. -->
<activity android:name=“com.mycompany.myproject.MyCoronaActivity”
android:screenOrientation=“portrait”
android:configChanges=“keyboardHidden|orientation|screenSize”
android:label=“MyProject”
android:launchMode=“singleTask”
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name=“android.intent.action.MAIN” />
<category android:name=“android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
It worked.
But I’m worried about this solution.
Is there a no problem with this solution?