>
>
> We did consider that option but we decided we wanted the HTML5 without all 
the 'if this OS then .. else ..' stuff that comes with it.

I had a quick look at how phonegap does it:

For Android they inject a js object. They use the 
Activity.runOnUIThread(...) functionality to report back to js. 

For iOS the js signals the native code by loading a "gap:\\...." url. The 
Native code intercepts this and then does a js callback to receive the 
functionality requested.

Interesting to note that it is possible here to do synchronous Android 
native calls but only asynchronous iOS calls. We decided on asynchronous 
native calls only x-platform when we designed our application.

I'll have a look at the example you suggest re the broadcast receiver. 
Thanks.

Lieuwe

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