无法定义意图数据来处理链接意图

时间:2012-11-07 13:23:28

标签: android android-intent linkify

我的活动包含以下过滤器:

 <intent-filter>
        <category android:name="android.intent.category.DEFAULT" />

        <action android:name="android.intent.action.VIEW" />

        <data
            android:host="com.ibs.shababeek.search"
            android:path="/posts/*"
            android:scheme="content" />
    </intent-filter>

linkfiy文本触发了这个意图:

act=android.intent.action.VIEW dat=content://com.ibs.shababeek.search/posts/#test

但它一直告诉我:没有找到处理意图的活动

1 个答案:

答案 0 :(得分:1)

android:path="/posts/*"

您可能需要android:pathPattern,而不是android:path

相关问题