Add android: to your scheme attribute.

If that does not help, try adding <category
android:name="android.intent.category.DEFAULT" /> along with the
BROWSABLE one.

On Wed, Jan 19, 2011 at 6:29 PM, Nathan <[email protected]> wrote:
> This intent filter looks perfect(to me) to intercept a mapping url.
>
>           <intent-filter>
>                <action android:name="android.intent.action.VIEW" />
>                <category
> android:name="android.intent.category.BROWSABLE"/>
>                <data scheme="http" android:host="maps.google.com"
> android:pathPrefix="/maps"/>
>            </intent-filter>
>
> I have tried lots of other combinations too.
>
> But I see this in the DDMS:
>
> 01-19 15:13:48.378: INFO/ActivityManager(85): Starting activity:
> Intent { act=android.intent.action.VIEW
> cat=[android.intent.category.BROWSABLE] dat=http://maps.google.com/
> maps?q=12989%20NW%20SKYLINE%[email protected],-122.8727 cmp=android/
> com.android.internal.app.ResolverActivity }
> 01-19 15:13:48.828: INFO/ActivityManager(85): Displayed activity
> android/com.android.internal.app.ResolverActivity: 376 ms (total 376
> ms)
>
> When the resolver activity comes up, this activity is *not* one of the
> three choices.
>
> Anyone care to point out something dumb I've done wrong? It doesn't
> seem like this should be that hard.
>
> Nathan
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
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