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

Daniel Kurka commented on CB-137:
---------------------------------

this small code snippet demonstrates the issue:


// PhoneGap is ready
    //
    function onDeviceReady() {
        window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, 
onFileSystemSuccess, fail);
    }

    function onFileSystemSuccess(fileSystem) {
        console.log(fileSystem.name.isDirectory); //returns false the first 
time....
    }

    function fail(evt) {
        console.log(evt.target.error.code);
    }


gwt-phonegap depends on that flag to be correctly
                
> FileAPI system.root.isDirectory returns false
> ---------------------------------------------
>
>                 Key: CB-137
>                 URL: https://issues.apache.org/jira/browse/CB-137
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: Android 3.2.4 on Verizon Motorola Xoom Tablet
>            Reporter: David Sauvier
>              Labels: api-change, build, javascript, patch
>
> While developing GWT-phonegap applications for Android Tablet, we discovered 
> the following:
> Upon the initial loading of the app (a fresh install) system.root.isDirectory 
> of the FileAPI returns False, rendering the FileAPI inoperable.
> After backing out (back button) and reloading the app, 
> system.root.isDirectory then returns True and the FileAPI begins to work 
> properly.

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

        

Reply via email to