cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5133) saveToPhotoAlbum throws exception on android
Date Tue, 29 Oct 2013 21:51:25 GMT

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

Joe Bowser commented on CB-5133:
--------------------------------

Is USB storage mounted? This can happen if you leave the USB storage mounted on your device
on Android 2.3

> saveToPhotoAlbum throws exception on android
> --------------------------------------------
>
>                 Key: CB-5133
>                 URL: https://issues.apache.org/jira/browse/CB-5133
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.1.0
>         Environment: android 2.3.7
>            Reporter: Petr Šimon
>
> trying:
> {code}
> navigator.camera.getPicture( onCameraSuccess, onCameraError, {saveToPhotoAlbum: true
});
> {code}
> {code}
> 10-20 16:21:07.778: E/(19552): can't open 'file:///mnt/sdcard/DCIM/Camera/1382257264583.jpg'
> 10-20 16:21:07.898: E/MediaScannerService(19552): Exception in handleMessage
> 10-20 16:21:07.898: E/MediaScannerService(19552): java.lang.IllegalStateException: Unable
to create new file: file:///mnt/sdcard/DCIM/Camera/1382257264583.jpg
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:1880)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:1990)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaProvider.insert(MediaProvider.java:1921)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at android.content.ContentProvider$Transport.insert(ContentProvider.java:198)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:787)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:525)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1236)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:200)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:48)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:244)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at android.os.Looper.loop(Looper.java:130)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:188)
> 10-20 16:21:07.898: E/MediaScannerService(19552): 	at java.lang.Thread.run(Thread.java:1019)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message