View Full Version : Open Phonegap Camera into a Panel

29 Aug 2011, 3:03 AM

Actually, I develop an application with Sencha and Phonegap.

I use the phonegap camera function to take picture but the camera is open over the application.
I want to open this camera window in a panel, also I can show the panel and I can show some options to take the picture.

is there anybody can help me ?

Thx a lot.

29 Aug 2011, 11:39 AM
That is not possible. You cannot mix up a native view/activity with webcode.

What PhoneGap does is, it sends a native system message to the native camera application to be part of the (outer) PhoneGap application (which is a native browser environment), not of the (inner) web application.

However with these new web apis it will be possible to implement the device camera via pure webcode in the future (Android 3.0 browser already supports media capture):


19 Dec 2013, 1:34 PM
I just wanted to see if this is still the case with the new version of Sencha Touch 2.3.1 and PhoneGap 3.0. Can you embed a phone's camera preview into a Sencha panel and have control over it like overlaying graphics as you preview before taking a picture?