点击验证链接后,如何将邮件重定向到Android应用程序

点击验证链接后,如何将邮件重定向到Android应用程序,android,url,Android,Url,点击邮件上的验证链接后,如何直接重定向到Android应用请解释 例如: 您需要在单击URL后要启动的活动中使用意图过滤器,如下所示: <activity . . . android:windowSoftInputMode="stateVisible|adjustResize" > <intent-filter> &

点击邮件上的验证链接后,如何直接重定向到Android应用请解释

例如:


您需要在单击URL后要启动的活动中使用意图过滤器,如下所示:

     <activity
           .
           .
           .

            android:windowSoftInputMode="stateVisible|adjustResize" >
            <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="http"
                    android:host="www.yourdomain.com"
                    android:pathPrefix="/path/to/resource" />
            </intent-filter>
     </activity>

就你而言

  • 方案
    将是
    https
  • host
    将成为
    www.quora.com
  • 路径前缀
    将是
    /signup/confirm\u电子邮件
  • @拉胡尔提瓦里

    这是注册页面,我写了和你一样的代码。。。 在“活动”中,单击“提交”按钮后,将向电子邮件地址发送验证链接。。 (我被卡住了)在剪辑完验证链接后,它必须返回到myApp

    Manifest.xml

        <activity android:name=".Register_User">
            android:windowSoftInputMode="stateVisible|adjustResize" >
            <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="http"
                    android:host="scaano.com"
                    android:pathPrefix="/Welcome/userprofile" />
            </intent-filter>
    
        </activity>