12-23-2009 12:53 PM
JDE package 4.6.0
Windows Vista 64bit
If through a fileConnection (say earlier obtained for "sdcard/home") you try to get the parent folder by calling getPath(), it returns a path with a "/" at the beginning. Now if you pass this path to:
(FileConnection)Connector.open("file:///" + path)
an exception will be thrown.
I my test runs it has the same problem regardless of the root I select (SDCard, system, store).
Solved! Go to Solution.
12-23-2009 12:59 PM
getPath() returns the path with file:// (two slashes) removed from the beginning. Change the "file:///" literal in your open call to only have two slashes and it should work.