JavaME FileConnection url
- by Trimack
Hi there, I want to save data to my Sony Ericsson K750i. I know the phone implements FileConnection version 1.0. The list of roots taken from
FileSystemRegistry.listRoots();
returns single element named "c:/". I want to save a file.txt just about anywhere, but preferably to the memory stick attached. Unfortunately, it doesn't seem to work. It throws an IOException without any message. I tried opening the fileconnection on numerous roots like c:/, C:/, /, ./, root1/, SDCard/, CFCard/, MemoryStick/ and perhaps some more but without any luck.
The exception is thrown right after this line for any of those roots:
FileConnection filecon = (FileConnection) Connector.open("file:///MemoryStick/file.txt");
Please, what URL should i use?