我需要使用链接(包含一些参数)从电子邮件启动应用程序,例如 http://www.this-so-does-not-exist.com/something
在使用意图过滤器中的以下内容单击一封简单的电子邮件后,我可以启动我的应用程序。
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:host="www.this-so-does-not-exist.com/something"
android:scheme="http"/>
</intent-filter>
现在我想传递一些信息以及电子邮件链接,例如 http://www.this-so-does-not-exist.com/something?id=4545
我如何从我的 android 应用程序中读取它。
任何帮助都感激不尽。提前致谢。