1. Technical Field
The disclosure generally relates to methods for browsing photo files in an embedded electronic device.
2. Description of Related Art
Embedded electronic devices, such as digital cameras, set-top boxes, digital phone frames, and others provide many functions, such as playing multimedia files, reading documents, and browsing websites. The electronic device can be operated to browse photo files through a user interface (UI). The photo files in the external storage devices connected to the electronic device must be selected from a resource folder.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as an EPROM.
It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
Referring to
Referring to
In step S10, an UI window is shown on a display, wherein the UI window includes a navigator bar 10 and a content display area 30 for showing photos. The navigator bar 10 and the content display area 30 are drawn based on extensible markup language. A dynamic progress window can be displayed to show a launching state of the UI window before creating the UI window on the display.
In step S12, at least one control button 12 is loaded on the navigator bar 10 for processing control operations.
In step S14, the electronic device detects if an external storage device is connected to the electronic device. A new resource button 14 linking to the external storage device is created on the navigator bar 10 when the external storage device is connected. The external storage device can be a compact flash (CF) card, a secure digital (SD) card, etc. When no external storage device is detected, the electronic device may create a local resource button on the navigator bar 10 to show local photos in the flash memory.
In step S16, each photo file from the external storage device is displayed in thumbnail image on the content display area. The thumbnail images are stored on a database in the external storage device. A scroll bar is loaded when the thumbnail images exceed display space.
When the UI window is shown, a monitor module can be loaded to the memory to monitor an orientation of the electronic device so as to automatically adjust a display direction of the UI. When at least one control action to the photos is performed on the control button 12, all the control actions are logged and the control operations may take into effect when the UI window is restarted.
It is to be understood, however, that even though numerous characteristics and advantages have been set forth in the foregoing description of preferred embodiments, together with details of the structures and functions of the preferred embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Depending on the embodiment, certain of the steps described may be removed, others may be added, and the sequence of steps may be altered. It is also to be understood that the description and the claims drawn to a method may include some indication in reference to certain steps. However, the indication used is only to be viewed for identification purposes and not as a suggestion as to an order for the steps.
Number | Date | Country | Kind |
---|---|---|---|
200910305206.4 | Aug 2009 | CN | national |