Tuesday, August 28, 2012

Re: [android-developers] Handler or (Local) BroadcastReceiver

On Tue, Aug 28, 2012 at 12:50 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
> On Tue, Aug 28, 2012 at 12:45 PM, Lieuwe <lieuwe.elgersma@gmail.com> wrote:
>> (I realise that on Android the
>> HTML5/javascript implementation can directly call native code but
>> unfortunately the HTML5 needs to be x-platform (i.e. run on iOS) so I am
>> forced to communicate through intercepting URL's that are being loaded)
>
> Other people (e.g., the PhoneGap folk) are capable of getting injected
> JavaScript objects to work on iOS as well as Android.

Actually, I take that partially back. PhoneGap is definitely capable
of giving the illusion of injected JavaScript objects. Whether they
are doing that on iOS actually via injected JavaScript objects or via
some JavaScript wrapper that uses URLs under the covers, I cannot say,
as I haven't looked.

Regardless, in terms of your other questions, looking at how PhoneGap
handles such issues with their Android implementation is a reasonable
move, as that's probably the most heavily exercised hunk of
WebView-embedding code out there.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment