JavaME FileConnection url

Posted by Trimack on Stack Overflow See other posts from Stack Overflow or by Trimack
Published on 2010-05-05T11:11:50Z Indexed on 2010/05/05 12:28 UTC
Read the original article Hit count: 248

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?

© Stack Overflow or respective owner

Related posts about javame

Related posts about java