JavaScript Camera API Android (Froyo)

by Bijan » Wed, 02 Jun 2010 07:24:51 GMT


Sponsored Links
 I am trying to access the JavaScript Camera API via the Android
browser as demo'd at Google IO on Froyo (yes, I have Froyo on my
Nexus1). Since there is no documentation, I am going by the W3C specs.
But, I am unable to access the navigator.device object and unable to
access navigator.camera either - both return undefined. Can anyone
point me to documentation or have a solution ?

--



JavaScript Camera API Android (Froyo)

by Mark Murphy » Wed, 02 Jun 2010 07:28:22 GMT


 


You got your answer, it appears, on StackOverflow. I'm just
cross-posting it here for future reference, if somebody searches and
finds your question...

 http://stackoverflow.com/questions/2953865/javascript-camera-api-android-froyo 

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

_Android Programming Tutorials_ Version 2.0 Available!

--


Sponsored Links


Other Threads

1. A Google Maps App

I want to write an app involving Google Maps API. I want my user to
enter the name of a place where he is in a textbox and then enters the
name of his desired destination in another textbox. Once he clicks the
button after that, the required map gets displayed.

I have 2 questions here:

Is it possible to make such an app on android?

I guess the android can auto-detect where the user is..am i correct?

Thank you,
Maqsood


--~--~---------~--~----~------------~-------~--~----~

2. Can鈥檛 skip account setting in GoogleLoginServiceHelper.getCredentials

Hi,
I use GoogleLoginServiceHelper.getCredentials in my activity. There
are three buttons (Create, Sing in and Skip) in account setting page.
When I click skip button and click next, it will change to some pages
and the back to the account setting page but only have Create and Sing
in buttons. It seems I must register Google account in this page. Is
there any way to skip account setting page by skip button?

My code usage is as below, any suggestion is appreciate.

        GoogleLoginServiceHelper.getCredentials(
                this,
                GOOGLE_LOGIN_REQUEST,
                bundle,
                GoogleLoginServiceConstants.PREFER_HOSTED,
                null,
                true);

--~--~---------~--~----~------------~-------~--~----~

3. creating a shared jar library

4. Map view info window

5. why I can't use movieview to play the movie came from the internet?

6. Native database

7. How to populate a listview with XML file to Internet