There is not an obvious  way..iPhone has the same problem.

In the PhoneGap js lib project  tackled it by doing a native class to
enable the 'intent' and use the javascript bridge to access it and
call it..

The other project more specific to Android is the OpneIntents project
at googlecode..







On Dec 31 2008, 11:36 pm, "Tim Bray" <timb...@gmail.com> wrote:
> Yes, I know you can do this from your handbuilt WebView.
> But I suggest that it's a serious lack in Android that I can't launch an
> Activity from Javascript straight out of the regular browser.  I have built
> an Activity that does some cool stuff given a URI, and URIs are commonly
> encountered in browsers, and I'd like to be able to attach some javascript
> to it along the lines of:
>
> if (running on android) { startActivity(new Intent(mumble)); }
>
> Am I the only one to whom this seems like this might be useful?  Or (even
> better) is there an obvious way to do this from the browser rather than
> WebView?
>
>  -Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to