Is it possible to use the manifest editor to add some <meta-data /> to an <activity> to produce something like this.
B4X:
<activity
android:name=".ResultActivity"
android:parentActivityName=".MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity"/>
</activity>