小编Gwi*_*llz的帖子

从URL启动应用程序

我试图让Android应用程序选择器在注册电子邮件中单击特定URL时启动.我已经看过下面的问题和其他几个问题,但我仍然没有运气.

通过链接或电子邮件启动Android应用程序

我已经在AndroidManifest.xml文件中创建了我的意图,如下所示(我已将我的网站地址放在您看到".website.org"的位置):

 <activity android:name=".MainActivity" android:configChanges="orientation|screenSize">
                <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:scheme="https"
                        android:host="*.website.org"
                        android:path="/" />
                </intent-filter>
  </activity>
Run Code Online (Sandbox Code Playgroud)

有没有人能帮助我还有什么我可能会丢失,因为这是目前还没有推出任何东西,它只是直接加载在默认的Web浏览器的链接?

url linker android android-intent

2
推荐指数
2
解决办法
4075
查看次数

标签 统计

android ×1

android-intent ×1

linker ×1

url ×1