【问题标题】:Unable to define intent data to handle linkify intent无法定义意图数据来处理链接意图
【发布时间】:2023-03-20 12:14:01
【问题描述】:

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

 <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

但它一直告诉我:找不到处理 Intent 的 Activity

【问题讨论】:

    标签: android android-intent linkify


    【解决方案1】:
    android:path="/posts/*"
    

    你可能想要android:pathPattern,而不是android:path

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多