input type=“file” accept=“image/*” doesn't work in phone gap?

I tried to make a android app using HTML + phonegap 2.6.0 which is support:

<input type="file" />

By default, if the HTML is open via android browser itself, it will show "camera" , "gallery" , "dropbox" etc when clicking @ browse button. But if I run the HTML on app webview, file chooser is coming up which is we can choose from gallery, dropbox, music track etc except from camera.

I tried to use:<input type="file" accept="image/*" /> perhaps when I run the app it will showing camera icon to choose. Unfortunately no.

My objective is when i press on browse button, the camera icon is showing up together with gallery etc.. It is possible to do this with phonegap? :(


For same need, i've madea custom menu with 2 button ! Take from camera / take from picture. After just use phone gap function camera.getPicture that opens the device's default camera application so that the user can take a picture (if Camera.sourceType = Camera.PictureSourceType.CAMERA, which is the default). Once the photo is taken, the camera application closes and your application is restored.

If Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY or Camera.PictureSourceType.SAVEDPHOTOALBUM, then a photo chooser dialog is shown, from which a photo from the album can be selected.



  • jqGrid columnChooser - unselected columns on the right in alphabetical order
  • Save java GUI by using javaBeans Persistence mechanism
  • JFileChooser.showOpenDialog not opening, and no error being thrown?
  • How to get past the “total_rows” when parsing JSON from CouchDB
  • How to get the revision of an item with Dropbox API
  • jfilechooser how to hide full path in folder name in DIRECTORIES_ONLY mode
  • cannot run python script file using windows prompt
  • Google sheets current user
  • WebView: webpage not available but I load it from an html string
  • Error “Call to undefined method stdClass::delete()” while trying delete a row in Laravel
  • find xml element by attribute
  • Phonegap Android App, open links within app?
  • Node can't scrape certain pages
  • How to browse android SDK sources in Android studio 2.0
  • IIS 7.5 404 Error for .PDF files
  • Why is OpenID Connect considered mobile friendly compared to SAML
  • setContentView() is not enough to switch between layouts?
  • Programatically open file in visual studio
  • Hide buttons on title bar in Java
  • How can I get the choice “H2” back in the H2 consol?
  • Yii2: Finding file and getting path in a directory tree
  • Clear activity stack before launching another activity
  • Angular2 Response for preflight is invalid (redirect) from some GET requests
  • How do I configure context broker accept post requests from my remote sensor?
  • Display java JPanel in a JFrame
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • Keep this build forever option - Jenkins
  • Python urlparse: small issue
  • Android fill_parent issue
  • FileReader+canvas image loading problem
  • recyclerView does not call the onBindViewHolder when scroll in the view
  • To display the title for the current loaction in map in iphone
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • python draw pie shapes with colour filled