You can actually build a URI to launch pretty much any intent; the browser always adds the BROWSABLE category, though, so any activity receiving it must have specified that.
On Fri, Jun 18, 2010 at 3:56 PM, Mark Murphy <[email protected]>wrote: > On Fri, Jun 18, 2010 at 6:46 PM, Gregory Moore > <[email protected]> wrote: > > Android Market has a neat feature allowing you to launch it using a > > url in the format of market:// ... Is there an equivalent method for > > launching an application using a link? > > You can declare support for a custom scheme via the <intent-filter> > for your Activity in the manifest. You may also need to be in the > BROWSABLE category. For example: > > <intent-filter> > <action android:name="android.intent.action.VIEW" /> > <action android:name="android.intent.action.DIAL" /> > <category android:name="android.intent.category.DEFAULT" /> > <category android:name="android.intent.category.BROWSABLE" /> > <data android:scheme="tel" /> > </intent-filter> > > I haven't experimented with this myself just yet, though I should be > soonish. > > -- > Mark Murphy > CommonsWare > [email protected] > http://commonsware.com > > -- > 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

