File system and FileConnection API

File system and FileConnection API

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.

Apply for J2ME Certification Now!!

https://www.vskills.in/certification/

Back to Tutorial

Share this post
[social_warfare]
Record and Record Store Management
FileSystemRegistry Methods

Get industry recognized certification – Contact us

keyboard_arrow_up