在WordPress中,忘记密码后会发送一个链接用于重置旧密码,链接格式如下:http://mysites.com/wp-login.php?action=rp&key=d7LmrBvrBrruSKh3ZX4v&login=samuel。如果用户从其Gmail帐户单击该链接,该应用程序如何干预?当用户点击链接时,将显示一系列应用程序,包括我的应用程序。如果用户选择我的应用程序,则会打开一个新的活动。谢谢。
<activity android:name=".MyActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:host="my.app" android:scheme="http"></data>
</intent-filter>
</activity>
接下来,http://my.app 应该启动您的活动。