Android interacting with HTML5 tutorial?
Posted
by Adam
on Stack Overflow
See other posts from Stack Overflow
or by Adam
Published on 2010-05-26T00:58:26Z
Indexed on
2010/05/26
1:01 UTC
Read the original article
Hit count: 389
I've been looking at using a WebView to display an HTML5 webpage, where the novel features of the mobile device (GPS, compass, accelerometer, camera, etc) can be fed back into the web page.
I was wondering if there were any good tutorials showing these functions interacting with the webview.
So far I've found ways for the WebView to send javascript commands to the web page, but those interactions haven't been triggered from outside the web view (such as upon receiving an intent from the GPS or accelerometer).
Note: The HTML5 Geolocation API is not what I'm interested in. I'm interested in the web page <-> WebView interactions, as noted here: http://android-developers.blogspot.com/2008/09/using-webviews.html
© Stack Overflow or respective owner