首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >来自共享社交平台的开放应用

来自共享社交平台的开放应用
EN

Stack Overflow用户
提问于 2012-09-10 06:50:18
回答 1查看 61关注 0票数 0

如果有人从facebook分享http://myappAdurl.com而不是另一个人点击链接,如果设备上存在应用程序,我的应用程序应该是打开的,我在清单中添加了以下行,但我无法获得结果,无法工作。

代码语言:javascript
复制
<application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <activity
            android:name=".TinyUrlTest"
            android:label="@string/title_activity_tiny_url_test"
            android:launchMode="singleTask" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <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.myappAdurl.com"
                    android:path="/images"
                    android:scheme="http" />
            </intent-filter>
            <intent-filter>
                <action android:name="www.myappAdurl.com" />

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

我也尝试了下面的项目,但它打开了链接,如com.commonsware.android.MY_ACTION https://github.com/commonsguy/cw-advandroid/tree/master/Introspection/URLHandler

EN

回答 1

Stack Overflow用户

发布于 2012-09-10 08:31:11

好的发现,如果我给出

代码语言:javascript
复制
 android:pathPattern="/*.*"

在数据元素中,然后它打开所有内容

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12343635

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档