Join Now
Quality Rating:
  • Currently 3.0 / 5
(3.0 / 5 - 1 vote cast)
This page was last modified 19:24, 29 October 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
J2ME - How to transfer data without OBEX benderg Bluetooth Technology 2 2008-06-08 21:53
mms with J2ME chan_fookmun Mobile Java General 6 2005-07-16 06:40
speach api honest_success Mobile Java Networking & Messaging & Security 1 2007-12-07 01:51
File Transfer goglog Mobile Java General 10 2006-08-21 14:44
Question regard using JSR-179 Location API ongchiboon Mobile Java General 1 2003-12-13 09:11
 
Powered by MediaWiki
RDF Facets: qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX