Click here to Skip to main content
13,095,921 members (54,164 online)
Rate this:
Please Sign up or sign in to vote.
Showing camera view inside html in androiShowing camera view inside html in android and then snap a pictured and then snap a picture
Posted 28-Jun-13 21:16pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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

manueferns 29-Jun-13 5:26am
i done a app in android which supports camera using html and works but i need Show camera view inside html design(div)or a user difined interface...not the native cam design..plz help...
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.

manueferns 29-Jun-13 6:48am sir thanks.......
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You could exam this demo...(see second preview image)[^]

This is a kind of hybrid framework like Phonegap.

<div id="camera_output" class="moml_camera" style="margin: auto; width: 96%; height: 250px; background: white">
  <script type="xml/momloverlay">
    <moml:CAMERA id="cam" />
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 25 Oct 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100