Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7919519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:53:39+00:00 2026-06-03T15:53:39+00:00

I am trying to create an app that makes use of the camera on

  • 0

I am trying to create an app that makes use of the camera on the device. When I run the app on my Android phone, I can get it to work no problem. However, when I package it using the Phonegap builder, I can’t seem to get the camera to open.

My guess is it’s a problem with the config.xml file. This is what mine looks like:

<?xml version="1.0" encoding="UTF-8"?>
   <widget xmlns       = "http://www.w3.org/ns/widgets"
      xmlns:gap   = "http://phonegap.com/ns/1.0"
      id      = "com.test.testApp"
      version     = "1.0.0">

   <name>Test App</name>

   <description>
       Test Description
   </description>

   <author href="http://mysite.com"
       email="geoff@email.com">
       Geoff Baum
   </author>

   <gap:platforms>
       <gap:platform name="android" minVersion="2.1" />
       <gap:platform name="webos" />
       <gap:platform name="symbian.wrt" />
       <gap:platform name="blackberry" project="widgets"/>
   </gap:platforms>

  <icon src="icon.png" gap:role="default" />

   <!--<gap:splash src="weirdo.png" />-->

   <feature name="http://api.phonegap.com/1.0/geolocation"/>
   <feature name="http://api.phonegap.com/1.0/network"/>
   <feature name="http://api.phonegap.com/1.0/geolocation"/>
   <feature name="http://api.phonegap.com/1.0/file"/>
   <feature name="http://api.phonegap.com/1.0/camera"/>
   <feature name="http://api.phonegap.com/1.0/media"/>
   <feature name="http://api.phonegap.com/1.0/device"/>

   <!--<preference name="orientation" value="default" />-->
   <!--<preference name="android-minSdkVersion" value="7" /> -->
 </widget>

Does that look correct? I have this file at the root level of the folder I am packaging and sending to Phonegap. Is this the proper approach? I am not sure what else I can do. Any help would be greatly appreciated. Thanks!


UPDATE:
So I tried including the Android specific JS file cordova-1.7.0.js and everything worked. So it looks like the Phonegap build is not adding the necessary files. Does anyone know anything about that? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:53:40+00:00Added an answer on June 3, 2026 at 3:53 pm

    So the solution lay in the include files. I was still including the phonegap.js file, and it was breaking the build process. I removed the various references to that file and it fixed it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create an android app that has the following: Theme set
Just started playing with Android and I'm trying to create an app that has
I am trying to create an app that can "Purposely" consume RAM as much
I am trying to make an app that can connect android app to the
I'm trying to build an Android app which makes use of the NativeActivity facility
I am trying to create an app that saves the user's media selections from
I am trying to create an app that allows you to go to a
I'm trying to create an app that multiple users would log into a server
I am trying to create an app that calculates the time difference and the
I am trying to create a simple app that displays a list of items

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.