You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "trusktr (JIRA)" <ji...@apache.org> on 2012/09/13 08:41:07 UTC

[jira] [Created] (CB-1459) Camera features don't work in Android.

trusktr created CB-1459:
---------------------------

             Summary: 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: Critical


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

[jira] [Resolved] (CB-1459) Camera features don't work in Android.

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-1459.
----------------------------

    Resolution: Cannot Reproduce

Just tried it on the Galaxy S3 down in SF.  I can't reproduce.
                
> 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

[jira] [Commented] (CB-1459) Camera features don't work in Android.

Posted by "trusktr (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463448#comment-13463448 ] 

trusktr commented on CB-1459:
-----------------------------

Sorry, about that. The problem is gone now. It started happening in another app. I turned off Android's new background process limiting option and all seems to be back to normal, except I have many background processes. haha.
                
> 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

[jira] [Commented] (CB-1459) Camera features don't work in Android.

Posted by "Alan Gruskoff (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Commented] (CB-1459) Camera features don't work in Android.

Posted by "trusktr (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463449#comment-13463449 ] 

trusktr commented on CB-1459:
-----------------------------

Go ahead and close this one.
                
> 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

[jira] [Commented] (CB-1459) Camera features don't work in Android.

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456217#comment-13456217 ] 

Joe Bowser commented on CB-1459:
--------------------------------

I'm not seeing this on the Samsung Galaxy SII when I install Pudding Camera (I don't know why this camera is called this).  I'm going to mark this as Minor, since it seems to only affect the S3.
                
> 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: Critical
>
> 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

[jira] [Commented] (CB-1459) Camera features don't work in Android.

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454996#comment-13454996 ] 

Joe Bowser commented on CB-1459:
--------------------------------

What other application do you have installed for camera?  I haven't seen that behaviour on the Samsung Galaxy S2 with only the default camera installed.
                
> 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: Critical
>
> 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

[jira] [Updated] (CB-1459) Camera features don't work in Android.

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-1459:
---------------------------

    Priority: Minor  (was: Critical)
    
> 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