incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-568) Cordova on android mobiles without sdcard
Date Wed, 25 Apr 2012 13:40:25 GMT

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

Simon MacDonald commented on CB-568:
------------------------------------

Can you run "adb logcat" while you are reproducing the problem? I want to see the stack trace
to figure out what line is causing the problem. The camera code calls a method that checks
to see if there is an external storage card mounted. If it is mounted it uses that directory
if not it defaults to the internal storage so this is a curious problem.
                
> Cordova on android mobiles without sdcard
> -----------------------------------------
>
>                 Key: CB-568
>                 URL: https://issues.apache.org/jira/browse/CB-568
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, CordovaJS
>            Reporter: David Corticchiato
>            Assignee: Joe Bowser
>             Fix For: 1.6.1
>
>
> I am testing the getPicture API to get a picture from gallery.
> I wrote this :
>         navigator.camera.getPicture(
>         this.onSuccess, 
>         this.onFail, 
>         {
>             destinationType: Camera.DestinationType.DATA_URL,
>             sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
>             allowEdit: false,
>             mediaType: Camera.MediaType.PICTURE,
>         }
> Then, I get :
> can't open '/mnt/sdcard/Android/data/com.myapp/cache/Pic.jpg'
> I think PhoneGap try to put the cache in sd card by default. My "Google Nexus" don't
have any.
> Someone got the same issue ?
> [EDIT]
> I've got this permission in my Manifest, but it does not change anything :
>     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message