Hi, I downloaded your demo, and I am sorry, <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:host="www.this-so-does-not-exist.com" android:scheme="http" /> </intent-filter>
has no precedence over any other of my browsers.. so I have a dialog "Complete action using..." On the other hand <intent-filter> <action android:name="com.commonsware.android.MY_ACTION" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> </intent-filter> works great, and opens the sample application, but as I said before, it doesn't works from ALL of the browsers (some have million+ downloads), and from my three lines activity (described before) that uses a webview. Is it an android bug ? On Sep 26, 10:06 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Mon, Sep 26, 2011 at 2:48 PM,MarkCz<ome...@gmail.com> wrote: > > As far as I know, a link with a URL of my control can be opened by any > > browser, or by my application. > > No. > > If the <data> element specifies a URL, that application will take > precedence over anything specifying only a scheme. > > > In the first time my application is not the default, so this is why an > > intent chooser will be shown. > > No it will not. > > https://github.com/commonsguy/cw-advandroid/tree/master/Introspection... > > The relevant <intent-filter> is: > > <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:host="www.this-so-does-not-exist.com" > android:scheme="http" /> > </intent-filter> > > Here, I don't bother with an android:path attribute, though in most > cases that would probably be a good idea, unless you want all URLs for > the domain to be handled by that app. > > --MarkMurphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en