Example: Accessing files on the device

This example MIDlet shows you how to use the features of the FileConnection API (FC API) to navigate the device file system and access files. The features are demonstrated in the context of a basic image viewer MIDlet, which implements a file browser for navigating the device file system and selecting images to view on the device screen.

Figure: Viewing an image

Note: There are some restrictions on the applicable size of images used in this kind of example. For more information, see article Memory Usage: Images in the Nokia Developer Wiki.

Prerequisites

You need Series 40 3rd Edition SDK and device to develop and test this MIDlet.

Note: The Series 40 full touch version of the MIDlet requires Nokia SDK 2.0 for Java or newer.

For instructions on how to get started with Java ME, see section Getting started.

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for instructions on how to implement the MIDlet

You can download the project files for the MIDlet from the download page.