This page was last modified 23:37, 19 May 2008.
File Connection API (JSR 75)
From Forum Nokia Wiki
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:
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| jsr 179 and jsr 226 questions | shydisturbedboy | Mobile Java General | 3 | 2007-05-27 05:59 |
| JSR - 177 API | tushant | Mobile Java Networking & Messaging & Security | 1 | 2006-04-20 20:18 |
| J2ME - How to transfer data without OBEX | benderg | Bluetooth Technology | 2 | 2008-06-08 20:53 |
| Jsr 205 (wma api- jsr 135) | hitesh | Mobile Java General | 1 | 2006-09-02 01:35 |
| abt jsr-172 in 9300 | kmsoomro | Mobile Java General | 2 | 2006-01-03 19:19 |
