Thanks Mark; clearly the web app end of things needs to be Android "aware". Perhaps something can be done on a plug-in basis on the browser side of things. Hmm, Gears perhaps... I guess I'll think about this a little. Happy Thanksgiving!
On Nov 27, 8:09 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > JP wrote: > > I was combing through this group but could not find a definite answer > > (although I suspect the answer is no). Here's my question: Suppose > > your app is offering services on the handset by receiving and > > processing Intents. Obviously your app integrates with other apps on > > that basis, however the majority of web apps out there may not yet > > have been, or never be implemented as an Android app. It would be > > ideal to have a mechanism to, say, pop some JavaScript in that web > > app's code to fire an intent when accessed through a web browser > > running on Android. Is there such a capability? > > Yes, with large caveats: > > 1. The regular Browser activity won't work. You would need to implement > your own browser using WebView and use addJavascriptInterface to expose > Javascript functions for raising Intents, registering Notifications, or > whatnot. > > 2. The Web applications would have to be aware that they might be > running on Android and know to call those Javascript functions if they > are available. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

