我正在尝试从通过 SMS 或电子邮件发送的 URL 打开我的应用程序。但它不会打开我的应用程序。
这是我在AndroidManifest
文件中使用的代码。
<activity
android:name=".TestActivity"
android:label="@string/app_name" >
<intent-filter>
<data
android:host="http"
android:scheme="m.special.scheme" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
这是URL
我在电子邮件中传递的
http://m.special.scheme/other/parameters/here
我也试过这个
m.special.scheme://other/parameters/here
但这将在电子邮件中显示为静态文本,而不是 URL。
帮我!!!