Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
File Connection API (JSR 75)
FileConnection API (which is an optional package of JSR-75) allows developer to access local file systems on the phone (like RAM or flash card) and read and write files, such as text, image, audio and video files.
This API is not meant to be a replacement for the Record Management System (RMS) but rather a complement to it allowing MIDlets to interact with native applications. For example, a MIDlet could access and manipulate images previously captured by a native application using a built-in digital camera.
Java ME devices use Generic Connection Framework (GCF) for Input / Output operations, by means of Connection interface implementations specific to each connection type. The different Connection extensions are built using a URL adequate to the different connection types with a protocol such as http://, sockets://, and so on. This API uses file:// as a protocol, and have a FileConnection interface that is inserted inside GCF.
The API allows you to receive the roots available on the file system (like drives in desktop systems) and the files on every folder.
In many Nokia devices, you can get an special folder using System properties, like fileconn.dir.photos, fileconn.dir.videos, fileconn.dir.tones and fileconn.dir.memorycard.
Sony Ericsson resources: