incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gruskoff (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1459) Camera features don't work in Android.
Date Tue, 16 Oct 2012 01:03:03 GMT

    [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476620#comment-13476620
] 

Alan Gruskoff commented on CB-1459:
-----------------------------------

After spending way too much time on trying to make the Camera API work and failing at that,
I stumbled on clues about "Background process limit" were the key for me that got my app working.
FINALLY! On my HTC One V phone, I went to Settings / Developer Options and set these parameters
as shown:

Don't Keep activities (Unchecked)
Background process limit (4)
Show all ANRs (checked)

My local testing devices get the same good result using an Android App returned from today's
PhoneGap Build online, these are:
HTC One V (Android 4.0.3)
Nexus 7 Tablet (Android 4.1.2)

I am happy to share a package of my CameraDemo App code, as used in PhoneGap's default 2.1
version build:
http://dl.dropbox.com/u/101475647/CameraDemo.zip

In my desperation to make this work, I added some messages to track "state", you will see
a "Device Resumed" Alert. So happy to see that as this means that my app us still running
and now processes the picture I took. Definitely using DestinationType.FILE_URI to try to
pass back the picture's file address, rather than the blob of base64 data. 

Hope this helps some buddy.
- Alan Gruskoff
Digital Showcase LLC
                
> Camera features don't work in Android.
> --------------------------------------
>
>                 Key: CB-1459
>                 URL: https://issues.apache.org/jira/browse/CB-1459
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>         Environment: Android 4.x.x
>            Reporter: trusktr
>            Assignee: Joe Bowser
>            Priority: Minor
>
> Trying to shoot a photo from within a PhoneGap app doesn't work for me in Android 4.x.x
on my Galaxy S3. Whenever I try to take a photo from a PhoneGap app, a dialog pops up asking
me to select which camera app to use, then I select the default camera and I am presented
with the camera app but the screen is black and I cannot take a picture. Pressing the back
button does nothing. I have to exit by pressing the home button. Sometimes, it leads me to
a blank screen with nothing at all. I am not able to shoot a photo.
> I've tried ensuring that "Standard limit" is set in [Settings >> Developer options
>> Limit background processes] but that doesn't have any effect.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message