I have an activity that has this intent in the manifest:
<activity
android:name=".view.MainActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter>
<data android:scheme="http" android:host="mc8.eu"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
If I receive an SMS with this scheme, the activity correctly is opened if I click the url.
What I need is to understand if the activity is opened by the intent or by another app activity.
I tried with this code:
@Override
protected void onResume() {
super.onResume();
Uri ref = getReferrer();
}
But getReferrer always returns null.