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 6009755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:01:02+00:00 2026-05-23T02:01:02+00:00

I created a simple PhoneGap application that, right now, just takes a picture when

  • 0

I created a simple PhoneGap application that, right now, just takes a picture when you tap a button and then displays the picture in an image on the same page. I’ve built both iOS and Android versions, and the iOS version works fine. The Android version, on the other hand, highlights the button but never switches to a camera activity. What could be the problem?

My first thought was that the problem is in the Javascript code in my index.html file. So, I completely replaced the contents of my index.html with the “Full Example” from the PhoneGap API Camera reference page. This page displays four buttons, each of which triggers a Javascript function that uses PhoneGap to acquire an image in one way or another. The app builds without errors and starts up on my test device (HTC Evo 4G). Once again, however, tapping any of the buttons causes that button to highlight, but nothing else happens.

I’m using a recently downloaded PhoneGap 0.95, the latest Android SDK (downloaded and installed two days ago), and Eclipse with the ADT plugin.

Can anyone give me some ideas as to how to start debugging this?

Edit: For what it’s worth, I set up my Android project according to the steps in the PhoneGap Get Started Guide for Android. I modified the AndroidManifest.xml file according to the directions there and using exactly the text from the directions, so the first line after the <supports-screens ... /> block is:

<uses-permission android:name="android.permission.CAMERA" />
  • 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-05-23T02:01:03+00:00Added an answer on May 23, 2026 at 2:01 am

    Caleb>

    I was stumbled by the exact same problem with phonegap android + HTC EVO 4G.

    Maybe you got this figured out already. Just in case,

    The root cause of the default sample app NOT working is incorrect url for the javascript src in the index.html file generated in the example_android folder.

      -- PROBLEM: I noticed that index.html in the example_android folder  is linking to a js file don't exist. 
          type="text/javascript" charset="utf-8" src="phonegap.0.9.5.min.js"
      changed it to    
          type="text/javascript" charset="utf-8" src="phonegap.0.9.5.js"
    

    After I removed “.min” from the src attrib, rebuild android app and redeploy to my android phone. Everything starts working fine.

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

Sidebar

Related Questions

I created a simple .NET windows application in Visual Studio 2005 and on just
I created simple modal view photo gallery that gets picture where user clicked and
I have created a simple application in android [PhoneGap] [Eclipse] {Sorry for this convention
I created simple window and applied style to it. Now, when I run application
I created a simple dialog-based application, and in the default CDialog added three buttons
Have created simple Ajax enabled contact forms before that have around 12 fields -
I created simple HttpListener that listens to port 9090 and depending on a request's
I'm trying to create a PhoneGap application that in part, makes available a custom
I created simple code in MVS2010 but it doesn't work. There is just a
I created simple Silverlight Application using the web site host of the VS2010 (

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.