I have two activities. Activity1 contains TextView with HTML links. When user click any link - it launch Activity2 (so I cannot use startActivityForResult()). Then user make some actions in Activity2, click "Back" button and return to Activity1. At this moment I need to invoke method in Activity1 with information from Activity2. But how to do that? I need to use BroadcastReceiver?
For launching Activity2 I using this:
Manifest:
<activity android:name=".Activity2" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.VIEW" />
<data android:scheme="myapp" />
</intent-filter>
</activity>
And all links in my TextView start with "myapp://".