facebook

requestFileSystem error 9 on Android only

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #348925 Reply

    bremy
    Member

    Hello

    Based on all the samples found, I am using the function “window.requestFileSystem” to get access to the file system in order to write a local file on the device
    This is working perfectly on IOS (IOS 6 & 7) but always failing on Android (Nexus 7 version 2013)
    On android the callback Error function is always called and provided the Error code equal to 9. No idea for what it means

    Here the real line of code used.
    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);

    Also tried this as saw in a post
    window.requestFileSystem(1, 0, gotFS, fail);

    Impossible to have my local file stored up to now on Android
    Hope you may know a tip for this

    Many thanks

    #348942 Reply

    Hi bremy,

    What is your android version?
    Notice that html5 file http://caniuse.com/#feat=fileapi status here is not supported on pre 4.3

    #348951 Reply

    bremy
    Member

    I was in version 4.3. I just intalled 4.4.2

    I still continue having an error. Investigating more, the error is when doing a getFile call. the same line works fine on IOS but in generating an error code 9 on Android 4.4.2

    fileSystem.root.getFile(‘test.txt’, {‘create’: true}, gotFileEntry, fail3);

    I tryied using cordova 2.9 and 2.9.1. Both a generating an error code = 9

    why why why?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: requestFileSystem error 9 on Android only

You must be logged in to post in the forum log in