Namespaces
Variants
Actions
Redirect page

File Connection API (JSR 75)

Jump to: navigation, search
SignpostIcon FloppyDisk 52.png
Article Metadata

Article
Created: wang_shui (19 Mar 2007)
Last edited: hamishwillee (18 Jul 2012)

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.

Special Folders

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.

External Resources

JCP specification:

Nokia resources:

Sun resources:

Sony Ericsson resources:

This page was last modified on 18 July 2012, at 08:02.
256 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved