我已经定义了一个意图过滤器,以便从某些类型的URL启动我的应用程序。问题是,它会为所有类型的链接启动,但我只想被一个具体的主机名启动。这是我的清单:
<activity
android:name="com.imin.SplashActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:logo="@drawable/img_action_icon"
android:screenOrientation="portrait"
android:theme="@style/AppTeme.Fullscreen" >
<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.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="imintheapp.com"
android:pathPrefix="/events/get/"
android:scheme="http" />
</intent-filter>
</activity>
我需要仅在以下情况下打开我的应用程序:http://imintheapp.com/events/get/xxxxxxxx,其中xxxxxxxx是一个字母数字字符串。 请问我做错了什么吗? 谢谢