System properties

The table below contains the File API system properties that return the localized names of common directories and the URLs to the most common directories.

Table: File API system properties in

String

Description

fileconn.dir.photos.name

Localized name for the photo directory, for example "Images".

fileconn.dir.videos.name

Localized name for the video directory, for example "Video clips".

fileconn.dir.graphics.name

Localized name for the graphic directory, for example "Graphic clips".

fileconn.dir.tones.name

Localized name for the sounds directory, for example "Sound clips".

fileconn.dir.music.name

Localized name for the music directory, for example "Music clips".

fileconn.dir.recordings.name

Localized name for the recordings directory, for example "Recorded clips".

fileconn.dir.memorycard.name

Localized UI name for the memory card of directory, for example "Memory card".

fileconn.dir.private.name

Localized name for the private work directory, for example "scratch".

fileconn.dir.photos

The URL of the default storage directory for photos captured with the integrated camera and other images. For example, "file:///c:/My files/Images/".

fileconn.dir.videos

The URL of the default storage directory for video clips captured with the integrated camera or downloaded and saved. For example, "file:///c:/My files/Video clips/".

fileconn.dir.graphics

The URL of the default storage directory for clip art graphics (caller group icons, background pictures, and other similar items). For example, "file:///c:/My files/Graphic clips/".

fileconn.dir.tones

The URL of the default storage directory for ring tones and other related audio files. For example, "file:///c:/My files/Sound clips/".

fileconn.dir.music

The URL of the default storage directory for music files (MP3, AAC, and others). For example, "file:///c:/My files/Music clips/".

fileconn.dir.recordings

The URL of the default storage directory for voice recordings made with the device. For example, "file:///c:/My files/Recorded clips/".

fileconn.dir.memorycard

Root directory of memory card. For example, "file:///e:/".

fileconn.dir.private

Private work directory of MIDlet suite. For example, "file:///c:/private/102033e6/midlets/[1015b77b]/scratch".

S60 3rd Ed. FP 2

fileconn.dir.roots.names

Localized names corresponding to roots returned by the FileSystemRegistry.listRoots() method. One localized name corresponds to each root returned by the method. Localized names are in the same order as returned by the method and are separated by a semicolon (;) character. If no localized name exists for the root, the nonlocalized (logical) name is returned in the property for this root. Root names returned through this property cannot contain the semicolon (;) character.

Example:

String url = System.getProperty("fileconn.dir.photos") + "myImage.jpg";

The Content of the URL is file:///c:/data/Images/myImage.jpg