android-url不打开android应用程序

android-url不打开android应用程序,android,Android,如果单击url,我想打开我的应用程序。我制作了以下href: <a href="my.special.scheme://other/parameters/here" >open app</a> 在舱单中,我做了如下操作: <activity android:name="com.tejarat.example.Urlchema" android:label="@string/app_name" > <in

如果单击url,我想打开我的应用程序。我制作了以下href:

<a href="my.special.scheme://other/parameters/here" >open app</a>
在舱单中,我做了如下操作:

 <activity
        android:name="com.tejarat.example.Urlchema"
        android:label="@string/app_name" >
        <intent-filter>
            <data android:scheme="my.special.scheme" />

            <action android:name="android.intent.action.VIEW" />
        </intent-filter>
    </activity>
问题是url,当我点击它时,它说找不到,什么也没发生

你能帮我吗?我做错了什么


谢谢

您可以像这样使用,它会起作用的

<intent-filter>
  <action android:name="android.intent.action.VIEW"></action>
  <category android:name="android.intent.category.DEFAULT"></category>
  <category android:name="android.intent.category.BROWSABLE"></category>
  <data android:host="www.youtube.com" android:scheme="http"></data>
</intent-filter>

试试这个代码,对我有用

<a href='demo://www.abc.com/'>demo://www.abc.com/</a></body></html>
在舱单上

  <activity android:name=".myActivity">
<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:scheme="demo"/>
</intent-filter>
</activity>

你能发布Urlchema活动的代码吗?@Swayam我在第一行放了一个日志,它没有进入,它在网页上显示我404问题在方案名称中。您不能在scheme中使用.dot。复习我的答案。