Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6935

[Android][cordova-plugin-file] window.resolveLocalFileSystemURL can't resolve cordova.file.applicationDirectory URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.2.0
    • None
      • Samsung I-9100 Intl (Cyanogenmod 10.2, android 4.3.1)
      • Samgsung GT-P5110 (Cyanogenmod 11, android 4.4.2)

    Description

      As of version 1.2.0 of this plugin, some special directory paths were added under cordova.file.*Directory.

      All of them seem to work, but "applicationDirectory" on Android platform doesn't.
      This special directory equals "file:///android_asset/".

      It calls fail callback with error code = 1 (NOT_FOUND_ERR).

      For a simple test just call this on deviceready:

      window.resolveLocalFileSystemURL(cordova.file.applicationDirectory, function(dirEntry)

      {console.log('SUCCESS');}

      ,function(error)

      {console.log('ERROR: '+JSON.stringify(error));}

      );

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mestremuten Mestre Muten
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified