I would like to know if we can have a link in SMS, which will be processed by my application. For example, a link that will look like myapp: // blabla. And by clicking on it, myapp will open with a link as an argument.
This question also applies to e-mail, either from a file with a special extension, or via a link similar to SMS.
Many thanks for your help.
Change 31/01
Actually, I did what Greg suggested, but that will not work. Such a link (myapp: // blabla) cannot be clicked in SMS / email ... When I replace myapp with http as a scheme, it works (Android asks me that it should open the link with myapp or browser). But myapp: // blabla does not click with myapp as a schema. Here is my code:
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:debuggable="true">
<activity android:name=".myapp"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="myapp" android:host="blabla" />
</intent-filter>
</activity>
<activity android:name=".SecondActivity"></activity>
<activity android:name=".SettingsActivity"></activity>
</application>