cordova-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-2208) MobileSpec File tests Crash on Android 4.0.3 intel Emulator
Date Wed, 16 Jan 2013 15:28:12 GMT

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

Simon MacDonald commented on CB-2208:
-------------------------------------

The reason we have notifyDelete is when you call the remove method of a FileEntry it deletes
the file from the file system. That is fine for most files but if it is a media file that
has an entry in the content store then just deleting the file leaves a black hole in the Gallery
app. So calling notifyDelete will remove the line from the content store db if it exists.
                
> MobileSpec File tests Crash on Android 4.0.3 intel Emulator
> -----------------------------------------------------------
>
>                 Key: CB-2208
>                 URL: https://issues.apache.org/jira/browse/CB-2208
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> 01-11 14:34:23.028: I/dalvikvm(1465): java.lang.UnsupportedOperationException: Unknown
URI: content://media/external/images/media match: 1
> 01-11 14:34:23.028: I/dalvikvm(1465): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:168)
> 01-11 14:34:23.028: I/dalvikvm(1465): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:136)
> 01-11 14:34:23.028: I/dalvikvm(1465): 	at android.content.ContentProviderProxy.delete(ContentProviderNative.java:479)
> 01-11 14:34:23.028: I/dalvikvm(1465): 	at android.content.ContentResolver.delete(ContentResolver.java:822)
> 01-11 14:34:23.028: I/dalvikvm(1465): 	at org.apache.cordova.FileUtils.notifyDelete(FileUtils.java:242)
> 01-11 14:34:23.028: I/dalvikvm(1465): 	at org.apache.cordova.FileUtils.execute(FileUtils.java:186)

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