Hi,
I am trying to create a new custom protocol handler for my application
and trying to invoke it via a custom url in the browser. This is what
I have in my manifest.

<activity android:name=".MainActivity" android:label="@string/
app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category
android:name="android.intent.category.BROWSABLE"/>
                                <data android:scheme="myscheme" 
android:host="mydomain.com"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/
>
                                <data android:scheme="myscheme" 
android:host="mydomain.com"/>
            </intent-filter>
        </activity>

When I try to click a link like this

<a href="myscheme://mydomain.com">Start android app</a>

I get a protocol is not supported message from the browser. And in the
console I see

04-13 14:44:54.378: INFO/ActivityManager(53): Starting activity:
Intent { action=android.intent.action.VIEW categories=
{android.intent.category.BROWSABLE} data=myscheme://mydomain.com }

04-13 14:44:54.538: ERROR/browser(219): onReceivedError code:-10 The
protocol is not supported.

Any idea what I am doing wrong?

Regards,
Fenil

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