Design

The UI of the ImageViewer MIDlet consists of a simple file browser that:

  • Displays the contents of the current directory

  • Allows the user to navigate the directory tree

  • Allows the user to select an image to display

  • Allows the user to perform file management operations

The MIDlet reads the directory contents when the user navigates in the device file system. All recognized images in the current directory are listed. When the user selects one of the images, the image is displayed.

The MIDlet does not contain any image editing functionality. The user can only return to the file browser from the image view. The file browser contains additional file management features such as creating, renaming, and deleting files and directories.

Figure: Navigating the device file system and viewing an image

For instructions on how to implement the MIDlet, see section Implementation.