w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
fileSystem.root.getDirectory and fileSystem.root.getFile threw java.net.MalformedURLException: No installed handlers for this URL

There is a change in reading the directory structure in phonegap 3.3.0.

I was facing a similar issue where i have to read all the files inside a directory by using fullPath with window.resolveLocalFileSystemURL().

I tried using fileEnteries.fullPath for getting absolute path, but it dint work it was showing '/'(root) as earlier version it used to be 'file:///'.

*Use entries[i].toURL() to get absoulte path rather than fileEnteries.fullPath *

    for (var i = 0; i < entries.length; i++) {

        //Adding into Store for my example          
            fileName : entries[i].name,
            isDirectory : entries[i].isDirectory,
            fullPath : entries[i].toURL() //instead of entries[i].fullPath

and later use in window.resolveLocalFileSystemURL(entries[i].toURL() ,success,failuere);

It worked for me !!

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.