【问题标题】:twitter for android in-app browser disables opening the link with native apptwitter for android 应用程序内浏览器禁用打开与本机应用程序的链接
【发布时间】:2016-01-09 12:56:55
【问题描述】:

我有一个带有意图过滤器的应用程序,可以打开一些网页网址。它适用于以下意图过滤器的链接(www.butterflytv.net/player.php?streamUrl=...)

<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="www.butterflytv.net"
        android:pathPattern="/player.php.*"
        android:scheme="http" />
     <data
        android:host="butterflytv.net"
        android:pathPattern="/player.php.*"
        android:scheme="http" />
</intent-filter>

但是,当此链接位于推文中时,Twitter 应用内浏览器会打开该链接。我希望 Android 打开一个应用程序选择器来打开链接。你知道怎么做吗?

提前谢谢你, A.奥古兹

【问题讨论】:

    标签: android twitter in-app


    【解决方案1】:

    使用此代码:

    startActivity(Intent.createChooser(sharingIntent, "Share using"));
    

    这将让您选择打开链接的应用程序。

    【讨论】:

    • 我的意思是,我希望 twitter 应用内浏览器显示应用选择器。
    猜你喜欢
    • 1970-01-01
    • 2012-05-07
    • 2019-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-05
    • 1970-01-01
    • 2010-12-09
    相关资源
    最近更新 更多