我试图在用户浏览到某个网址时启动我的应用程序。我发现了一些例子,它们在清单中都有相同的东西,但它不适合我。我已经把意图过滤器放在Activity和Receiver之下。从URL启动活动
这里是我的清单片段:
<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="www.urbandictionary.com" android:scheme="http"></data>
</intent-filter>
当活动下,我尝试使用onNewIntent,当它使用的是接收器,我使用onReceiveIntent尝试,都用一个简单的Log.i电话,看是否它是否被解雇。我没有太多的运气。
相关问题:http://stackoverflow.com/questions/2448213/how-to-implement-my-very-own-uri-schema-on-android – Casebash 2010-05-26 05:57:36