Add an <intent-filter> for ACTION_VIEW, CATEGORY_BROWSEABLE, and a <data> element for a URL under your control. As a benefit, you can put a Web page at that URL for everybody who encounters your link and doesn't have the app installed, or isn't using an Android device.
On Mon, Sep 26, 2011 at 12:24 PM, Mark Cz <[email protected]> wrote: > Hi All, > I want my application to be opened from a link, and it works fine > (most of the time.... this is the reason I am asking for help) > > My html link is > <a href="intent:#Intent;action=com.mark.MY_ACTION;end">Open > Application</a> > > and my intent filter is in the form > <intent-filter> > <action android:name="com.mark.MY_ACTION"/> > <category android:name="android.intent.category.DEFAULT"/> > <category android:name="android.intent.category.BROWSABLE"/> > </intent-filter> > > so far so good (I hope). > > It works fine from m-o-s-t of the browsers. > > To test the above I wrote a demo activity > > final WebView webview = new WebView(this); > setContentView(webview); > webview.loadUrl("http://www.mark.bla.bla.com/"); > > The page http://www.mark.bla.bla.com/ has some links/hrefs (including > the inent one). > Pressing those links opens me a browser, but pressing my "special > link" opens > me a > "Web page not available > intent:#Intent;action=com.mark.MY_ACTION;end > might be temporarily down...." > > Please help. > > -- > 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 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

