On Sat, Sep 11, 2010 at 9:46 PM, ls02 <agal...@audible.com> wrote:
> I added to the manifest file for the activity to be launched:
>
> <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:scheme="my_scheme"/>
> </intent-filter>
>
> I load the link in WebView:
>
> mWebView.loadData("<a href=\"my_scheme://launch_my_app/refresh_all
> \">Launch App</a>", "text/html", "utf-8");
>
> When I click on the link I get the error -10 "The protocol is not
> supported" in My WebViewClient.OnReceivedError override.

See this sample project for some ways to launch an activity from a
link in a Web page:

http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/URLHandler/

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

Android Training...At Your Office: http://commonsware.com/training

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

Reply via email to