Actually I found an easier way: you just create a link like this: <a
href="tel:<number you want to have dialled> Call </a>"
That will do it.

Excerpt from the DevGuide on Intents and Intent Filters:
"Consider, for example, what the browser application does when the
user follows a link on a web page. It first tries to display the data
(as it could if the link was to an HTML page). If it can't display the
data, it puts together an implicit intent with the scheme and data
type and tries to start an activity that can do the job. If there are
no takers, it asks the download manager to download the data. That
puts it under the control of a content provider, so a potentially
larger pool of activities (those with filters that just name a data
type) can respond."

So you can try various URL schemes, e.g. mailto:, tel:, rtsp:// etc.

Cheers



On 3 Jun., 11:33, dev_rob <[email protected]> wrote:
> Hi,
>
> is it possible to start a call from the android browser, let's say by
> clicking a link in an html file or with javascript after a button
> click? maybe with help of the gears api?
>
> i'd appreciate any hints, maybe an example of how to embed the intent
> in the html-file/in javascript.
>
> thanks a lot!!
> cheers

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