Please don't use a scheme unless it is one that you have registered. Schemes are global to the universe, and since you will be putting this out in the universe via your web page you want to follow the rules for them.
Another approach you can take is to just create an Intent that you want to have launched, and print the result of Intent.toUri() to get the string to use in your link. (This should be an intent: URI.) Then you probably want to just make your own action following the standard naming conventions which that Intent will use. You can even use Intent.setPackage() to make sure that only your app can be launched from the link, if you want. (Do note you can't use Intent.setComponent() for this for security reasons.) On Sat, Sep 11, 2010 at 6:46 PM, ls02 <[email protected]> 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. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

