On Mon, Sep 26, 2011 at 2:48 PM, Mark Cz <[email protected]> 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/URLHandler

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.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to