我想创建一个 Intent-Filter,以便某些链接将触发我的应用程序的启动(例如,请参阅此 stackoverflow-thread:如何注册一些 URL 命名空间 (myapp://app.start/) 以访问您的程序通过在 Android 操作系统的浏览器中调用 URL?)
在尝试时,我发现我不太了解 Intent 和 Intent-Filters(在 Manifest.xml 中定义)实际上是如何工作的。以下有什么区别:
<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.MAIN" />
类别和动作意图过滤器之间实际上有什么区别。我读了这个页面http://developer.android.com/reference/android/content/Intent.html但我仍然缺少基本的理解。