Locating Files

im working on what i thought would be a simple project, just load a given model up and view it. However ive recently realised that there is VERY little file support for CDLC devices. I was hoping for a openfile dialog or something so i could get the user to select what model they want to load but that seems to be out of the question.

so can anyone advise me on what the best method of getting the user to select a file held externally of the JAR file and on the local device?

You’ll be needing the FileConnection API, which is part of JSR 75.
Be aware that not all handsets support JSR 75.

Depending on the amount of data storage required you might look at using javax.microedition.rms for persistent storage rather than files.

yeah i was looking at that FileConnaction API, but as you say its not supported on most phones, how much data can the RMS handle? as it could be a simple model or quite a complex one…

It varies tremendously between handsets, The limit is typically somewhere between 10kb and 200kb.