【问题标题】:Open Android app from browser从浏览器打开安卓应用
【发布时间】:2013-12-12 18:17:06
【问题描述】:

我正在尝试从浏览器打开 Android 应用程序。我已经阅读了几个 StackOverflow 线程,描述了该问题的解决方案,这就是我目前所拥有的:

AndroidManifest.xml

<activity
        android:name="com.webviewtestapp.MainActivity"
        android:label="@string/app_name"
        android:exported="true" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.BROWSABLE" />
            <category android:name="android.intent.category.LAUNCHER" />
            <data android:scheme="Testapp" android:host="launch"/>
        </intent-filter>
</activity>

这是 html &lt;a href="Testapp://launch"&gt; open testapp &lt;/a

我在 Chrome 中使用 Firefox 浏览器,单击链接会显示一条消息:找不到打开此链接的应用程序

我该如何解决这个问题?

【问题讨论】:

  • 嗨 Ashish,你能帮帮我吗,你找到上述问题的解决方案了吗。

标签: java android uri


【解决方案1】:

变化:

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

到:

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

【讨论】:

    猜你喜欢
    • 2015-08-28
    • 1970-01-01
    • 2011-08-13
    • 1970-01-01
    • 1970-01-01
    • 2013-08-17
    • 2014-08-21
    • 2015-07-10
    • 1970-01-01
    相关资源
    最近更新 更多