Click here to Skip to main content
11,717,570 members (79,645 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Android PhoneGap
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
good
Please Sign up or sign in to vote.

Solution 1

Hello,

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

Regards,
  Permalink  
v2
Comments
manueferns at 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 at 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 at 29-Jun-13 6:48am
   
oh..no...k sir thanks.......
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.

<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>
  Permalink  
Comments
Akshay2015 at 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
0 Sergey Alexandrovich Kryukov 764
1 OriginalGriff 215
2 F-ES Sitecore 210
3 Maciej Los 140
4 Jochen Arndt 120
0 Sergey Alexandrovich Kryukov 1,494
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415


Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 25 Oct 2013
Copyright © CodeProject, 1999-2015
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