I'm also having no luck with intent URIs.  It would be very helpful if
someone could post an example href that launched some common app, e.g.
calculator.  It seems to me it should be something like
<a
href="intent:#Intent;action=android.intent.action.VIEW;category=android.intent.category.DEFAULT;component=com.android.calculator2.Calculator;end">Intent
url</a>
but that doesn't work.  I've tried a lot of variations on it, and so
far they all either get a 404 from the browser or crash the browser.

On Jan 9, 6:55 pm, sdphil <[email protected]> wrote:
> interesting.  so I made that call got the string back, and plugged
> that string into
>
> here --
>
> <ahref="intent:#Intent;a...............">Test Link</a>
>
> and it still tried to browse to that page within the browser...
>
> On Jan 8, 12:21 pm, Dianne Hackborn <[email protected]> wrote:
>
>
>
>
>
>
>
> > There is no need to play tricks with schemes andintentfilters matching
> > hosts and paths and such.  Just use thisIntent.toUri() method to turn the
> > actualIntentyou want (such as one with a custom action of yours and the
> > package set to your app's package name) into a URI you can use else where
> > such as in a web page:
>
> >http://developer.android.com/reference/android/content/Intent.html#to...)
> > <http://developer.android.com/reference/android/content/Intent.html#to...)>
>
> > On Sat, Jan 8, 2011 at 8:00 AM, sdphil <[email protected]> wrote:
> > > okay, yeah, doesn't work --
>
> > >            <intent-filter>
> > >                <action android:name="android.intent.action.VIEW"/>
> > >                <category
> > > android:name="android.intent.category.DEFAULT"/>
> > >                <category
> > > android:name="android.intent.category.BROWSABLE"/>
> > >                <data android:scheme="http"/>
> > >                <data android:host="www.mycompany.com"/>
> > >                <data android:path="subpath"/>
> > >                <data android:mimeType="mycompany/test"/>
> > >            </intent-filter>
>
> > > And my html looks like this:
>
> > >        <ahref="http://www.mycompany.com/subpath?arg=1";
> > > mimetype="mycompany/test">Test Link</a>
>
> > > When I click on that link in the phone's browser, it tries to navigate
> > > to a page within the browser instead of launching my app...  And in
> > > the logcat window, I can see theintent, and everything looks fine
> > > except for the component: cmp=com.android.browser/.BrowserActivity
>
> > > On Jan 8, 7:12 am, sdphil <[email protected]> wrote:
> > > > okay, i finally got this to work, but it will only work if i use a
> > > > unique scheme.  if I try to do it without a standard http scheme, then
> > > > i can't get it to work -- even if I specify mimeType.
>
> > > > On Jan 7, 8:01 am, Kumar Bibek <[email protected]> wrote:
>
> > > > > I think yes.
>
> > > > >http://thinkandroid.wordpress.com/2010/02/02/custom-intents-and-broad.
> > > ..
>
> > > > > But if it will work on the gmail app, or any other app is a question
> > > that I
> > > > > am not sure of (but most probably you should be able to do this).
>
> > > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> > > > > On Fri, Jan 7, 2011 at 9:19 PM, Parag <[email protected]> wrote:
> > > > > > Hi All,
>
> > > > > > I am looking for a way to launch an application from a link sent in
> > > an
> > > > > > email? Is that possible? The application i am developing is 
> > > > > > basically
> > > > > > a work order application which is installed on the device. If a new
> > > > > > work order comes an email will be sent to the registered email
> > > address
> > > > > > and that email will havea link to launch the application.
>
> > > > > > Let me know your views.
>
> > > > > > Thanks,
> > > > > > Parag
>
> > > > > > --
> > > > > > 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%2Bunsubs
> > > > > >  [email protected]>
> > > <android-developers%[email protected]<android-developers%252Bu
> > >  [email protected]>
>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > 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%2Bunsubs
> > >  [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

Reply via email to