Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Showing camera view inside html in androiShowing camera view inside html in android and then snap a pictured and then snap a picture
Posted

Hello,

You can find a full working example at PhoneGap Camera API Guide[^] Or Capturing camera/picture data without PhoneGap[^].

Regards,
 
Share this answer
 
v2
Comments
manueferns 29-Jun-13 5:26am    
sir,
i done a app in android which supports camera using html and phonegap...it works but i need Show camera view inside html design(div)or a user difined interface...not the native cam design..plz help...
thanks
Prasad Khandekar 29-Jun-13 5:35am    
Unfortunately that's not supported by Phonegap. However, PhoneGap allows you to write custom plugin that works on the native code, so, as long that's possible on native app, you should be able to write a PhoneGap module that allows to achieve that.

Regards,
manueferns 29-Jun-13 6:48am    
oh..no...k sir thanks.......
You could exam this demo...(see second preview image)
https://play.google.com/store/apps/details?id=org.mospi.ageteApiDemo[^]

This is a kind of hybrid framework like Phonegap.

XML
<div id="camera_output" class="moml_camera" style="margin: auto; width: 96%; height: 250px; background: white">
  <script type="xml/momloverlay">
    <moml:CAMERA id="cam" />
  </script>
</div>
 
Share this answer
 
Comments
Akshay2015 22-Jun-15 8:05am    
Can anyone share link for source code of above(agate) example, i.e opening camera inside a div(Html content)? As i cannot find any examples about agate api on internet.
Please share if anybody knows.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900