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

[jira] [Created] (CB-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

Quek Seng Siong created CB-1295:
-----------------------------------

             Summary: navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
                 Key: CB-1295
                 URL: https://issues.apache.org/jira/browse/CB-1295
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, iOS
    Affects Versions: 2.0.0
         Environment: windows7 
            Reporter: Quek Seng Siong
            Assignee: Joe Bowser


I have an android app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Quek Seng Siong commented on CB-1295:
-------------------------------------

Apologies. I  missed out some info.
On iOS, it crashes too whenever the user selects a picasa image link. 

I have amended the description accordingly
                
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android and ios app that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Quek Seng Siong updated CB-1295:
--------------------------------

    Description: 
I have an android and ios app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

{quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

  was:
I have an android app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

{quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

    
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android and ios app that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Quek Seng Siong updated CB-1295:
--------------------------------

    Description: 
I have an android app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

{quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

  was:
I have an android app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

    
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android app that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Shazron Abdullah commented on CB-1295:
--------------------------------------

Pls provide the iOS crash log.
                
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android and ios app that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Quek Seng Siong commented on CB-1295:
-------------------------------------

Apologies yet again. After double checking, it shld only be android.

                
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Quek Seng Siong updated CB-1295:
--------------------------------

    Description: 
I have an android app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

  was:
I have an android app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

    
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android app that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Simon MacDonald resolved CB-1295.
---------------------------------

    Resolution: Duplicate

This bug is a duplicate of CB-1293. Please add all comments to this issue.
                
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Shazron Abdullah commented on CB-1295:
--------------------------------------

Why is this tagged iOS while the description is about Android?
                
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android app that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image

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

Quek Seng Siong updated CB-1295:
--------------------------------

    Component/s:     (was: iOS)
    Description: 
I have an android that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

{quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

  was:
I have an android and ios app that is created using phonegap 2.0.

The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.

{quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}


Is there a way to catch the exception gracefully?
How can we ensure that the users only choose local images?

    
> navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image
> ----------------------------------------------------------------------------------------------
>
>                 Key: CB-1295
>                 URL: https://issues.apache.org/jira/browse/CB-1295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: windows7 
>            Reporter: Quek Seng Siong
>            Assignee: Joe Bowser
>
> I have an android that is created using phonegap 2.0.
> The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link.
> {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560)
> E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote}
> Is there a way to catch the exception gracefully?
> How can we ensure that the users only choose local images?

--
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