This application is based on and claims priority to Chinese Patent Application No. 201510127975.5, filed on Mar. 23, 2015, the entire contents of which are incorporated herein by reference.
The present disclosure generally relates to the Internet field, and more particularly, to a method and a device for loading a user interface (UI) theme.
The inventors have noted that with the increasing individual requirement of the intelligent phone, recent developments are now directed towards to the method for providing theme packages with various formats through a theme application program (theme app). In the process of downloading the theme package through the theme app and loading the theme package to the intelligent phone, there are several steps. The steps might include: downloading the theme package through the theme app; decompressing the compression package of the theme package to obtain a plurality of compression subpackages. Each compression subpackage corresponds to one application module. The steps might further include copying each compression subpackage to a corresponding resource catalog in the intelligent phone; and modifying the theme configuration in the intelligent phone.
Thus, the inventors have observed that, before the theme package is loaded and applied in the intelligent phone, the whole process might consume a large amount of time to decompress, copy and merge the theme package, as a result, the user might waste a lot of time waiting.
In some embodiments, a method for loading a UI theme in an intelligent terminal is provided. The method includes: detecting an operation instruction of a user to the intelligent terminal; determining whether an application module exists in a downloaded theme package according to the operation instruction, wherein the application module corresponds to the operation instruction. The method further comprises loading the application module to the intelligent terminal if it is determined that the application module exists.
In some embodiments, a device for loading a UI theme is provided, and the device includes: a processor; and a memory for storing instructions executable by the processor. The processor is configured to: detect an operation instruction of a user to the intelligent terminal; determine whether an application module exists in a downloaded theme package according to the operation instruction, wherein the application module corresponds to the operation instruction. The processer is further configured to load the application module to the intelligent terminal if it is determined that the application module exists.
In some embodiments, a non-transitory computer-readable storage medium stores instructions. Wherein the instructions, when executed by one or more processors of an intelligent terminal, cause the intelligent terminal to perform a method for loading a UI theme. The method comprises: detecting an operation instruction of a user to the intelligent terminal; determining whether an application module exists in a downloaded theme package according to the operation instruction, wherein the application module corresponds to the operation instruction; loading the application module to the intelligent terminal if it is determined that the application module exists.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the embodiments.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise represented. The implementations set forth in the following description of exemplary embodiments do not represent all implementations consistent with the invention. Instead, they are merely examples of apparatuses and methods consistent with aspects related to the invention as recited in the appended claims.
As shown in
As shown in
From
In step S201, an operation instruction of a user to the intelligent terminal is detected.
In an embodiment, the operation instruction of a user to the intelligent terminal may be an operation instruction of re-opening the intelligent terminal after the user closes the intelligent terminal, an operation instruction of releasing by the user the intelligent terminal which is in the lock screen state, an operation instruction of opening by the user the message application on the touched screen of the intelligent terminal, an operation instruction of opening by the user the contact list application on the touched screen of the intelligent terminal, etc. That is, the operation instruction of a user to the intelligent terminal may be an operation instruction trigged by any action on the intelligent terminal from the user.
In step S202, it is determined whether an application module exits in a downloaded theme package according to the operation instruction, wherein the application module corresponds to the operation instruction.
For example, assuming that the user has downloaded the theme package for the UI theme “Sunny” through a theme app, or that the user is downloading the theme package for the UI theme “Sunny” through the theme app and some application modules of the theme package for the UI theme “Sunny” have been downloaded and other application modules of the theme package for the UI theme “Sunny” have not yet been downloaded. If it is determined that the operation instruction of the user to the intelligent terminal is an operation instruction of releasing the intelligent terminal which is in the lock screen state, firstly it is determined whether the releasing module of the theme package for the UI theme “Sunny” is downloaded.
In step S203, if it is determined that the application module exists, the application module is loaded to the intelligent terminal.
For example, if it is determined that the releasing module of the theme package for the UI theme “Sunny” is downloaded, the releasing module of the theme package for the UI theme “Sunny” is loaded to the intelligent terminal. Once the operation instruction of the user to the intelligent terminal is detected, the application module corresponding to the operation instruction is loaded, thus, the application module may be loaded according to the interaction of the user and the intelligent terminal.
As illustrated above, the corresponding application module is loaded according to the operation instruction of a user to the intelligent terminal. Accordingly, the theme package is applied in the intelligent terminal without wasting a large amount of time on decompressing, copying and merging the theme package by the intelligent terminal, thus, the user's waiting time of using the theme package is reduced.
In some embodiments, the method may further include: sending a first download instruction with a first priority to a theme app installed on the intelligent terminal, if it is determined that the application module corresponding to the operation instruction does not exist; downloading the application module with the first priority through the theme app according to the first download instruction.
Details about loading the UI theme may be obtained with reference to following embodiments.
In step S301, an operation instruction of a user to the intelligent terminal is detected.
Step S301 is substantially the same as that detailed above with respect to step S201 of
In step S302, it is determined whether an application module corresponding to the operation instruction exits in a downloaded theme package according to the operation instruction. If the application module corresponding to the operation instruction exists, step S303 is executed. If the application module corresponding to the operation instruction does not exist, step S304 is executed.
Similar to step S202, step S302 will not be addressed.
In step S303, if it is determined that the application module corresponding to the operation instruction exists, the application module is loaded by a first thread of the intelligent terminal to the intelligent terminal, and then the procedure is finished.
Similar to step S203, step S303 will not be addressed.
In step S304, if it is determined that the application module corresponding to the operation instruction does not exist, a first download instruction with a first priority is sent to the theme appl installed on the intelligent terminal.
In some embodiments, the first priority of the first download instruction may be the highest priority, or a priority set according to the importance of application module. If the first priority is the highest priority, the application module corresponding to the operation instruction is downloaded to the intelligent terminal as soon as possible, thus, the user's waiting time of using the theme resource related to the operation instruction may be greatly reduced.
In step S305, the application module is downloaded by a second thread of the intelligent terminal through the theme app with the first priority.
In step S306, the first thread is initiated to load the application module to the intelligent terminal.
For example, if it is detected that the operation instruction of the user to the intelligent terminal is a releasing operation, then it is determined whether the releasing module corresponding to the releasing operation exists in the downloaded theme package for the UI theme “Sunny.” If it is determined that the releasing module corresponding to the releasing operation exists, the releasing module is loaded to the intelligent terminal by the first thread of the intelligent terminal. If it is determined that the releasing module corresponding to the releasing operation does not exist, the releasing module is downloaded through the theme app by the second thread of the intelligent terminal, and is loaded to the intelligent terminal by the first thread. In this way, the releasing module is loaded by the first thread, or downloaded by the second thread, thus, that the parallelization of loading the application module and downloading the application module is implemented.
As illustrated above, the application module of the theme package is downloaded by the first thread of the intelligent terminal through the theme app to the intelligent terminal, and the downloaded application module is loaded by the second thread of the intelligent terminal to the intelligent terminal, such that the parallelization of downloading and loading is implemented, thus the user's waiting time of using the theme resource related to the operation instruction is greatly reduced.
In some embodiments, the method for loading a UI theme further includes: detecting whether a second download instruction about the theme package exists in a theme app installed on the intelligent terminal; downloading the theme package via a second thread in the intelligent terminal if the second download instruction about the theme package exists. Wherein downloading the theme package via a second thread in the intelligent terminal includes: determining download priorities corresponding to application modules in the theme package; downloading the application modules in the theme package in an order determined according to the download priorities corresponding to the application modules.
In some embodiments, the method may further include: displaying an indication indicating that the theme package is successfully loaded after any application module in the theme package is downloaded.
Thus, in a situation where the intelligent device works normally, or the indication light is still on, the indication light can be switched off by a remote control. Accordingly, the dazzling feeling of the user due to the indication light is avoided. Accordingly, the user has a good rest and use electricity safely indoor, and the convenience for a family home is improved.
In step S401, it is detected whether a second download instruction regarding the theme package exists in a theme app installed on the intelligent terminal.
In step S402, if it is detected that the second download instruction regarding the theme package exists, download priorities corresponding to application modules in the theme package are determined.
In step S403, a second thread is initiated to download the application modules in the theme package according to the download priorities corresponding to the application modules.
In step S404, in the process of downloading the theme package, if an operation instruction of a user to the intelligent terminal is detected, it is determined whether an application module corresponding to the operation instruction exists in the downloaded theme package according to the operation instruction. If it is determined that the application module corresponding to the operation instruction exists, step S405 is executed. If it is determined that the application module corresponding to the operation instruction does not exist, step S406 is executed.
In step S405, if it is determined that the application module corresponding to the operation instruction exists, a first thread is initiated to load the application module to the intelligent terminal, and the procedure is finished.
In step S406, if it is determined that the application module corresponding to the operation instruction does not exist, a first download instruction with a first priority is sent to a theme app installed on the intelligent terminal.
In step S407, the application module is downloaded with the first priority through the theme app according to the first download instruction, and then the procedure is finished.
In step S408, the first thread of the intelligent terminal is initiated to load the application module to the intelligent terminal.
For example, if a download instruction of downloading the theme package for the UI theme “Sunny” is detected in the theme app, the download priorities corresponding to the application modules (such as, the desktop module, the screen locking module, the setting module, etc.) in the downloaded theme package for the UI theme “Sunny” are determined. The download priorities may be, for example, first downloading the desktop module, then downloading the screen locking module, and then downloading the setting module with the above download priorities. When an operation instruction of opening the message application from the user is detected, then it is determined whether the message module corresponding to the operation instruction of opening the message application exists in the downloaded theme package according to the operation instruction of opening the message application.
If it is determined that the message module corresponding to the operation instruction of opening the message application exists, the first thread is initiated to load the message module of the theme package for the UI theme “Sunny” to the intelligent terminal. If it is determined that the message module corresponding to the operation instruction of opening the message application does not exist, the first download instruction with the first priority is sent to the theme app installed on the intelligent terminal, and the application module is downloaded with the first priority through the theme app according to the first download instruction. The first priority may be higher than each of the download priorities in step S402, thus, the message module of the theme package for the UI theme “Sunny” is downloaded preferentially. Accordingly, the time caused by downloading the message module of the theme package for the UI theme “Sunny” to the intelligent terminal by the preset priority is reduced.
As illustrated above, the downloading and loading of the application module are implemented by a downloading thread and a loading thread, respectively. The application module is downloaded according to a preset priority. In the loading process, it is determined, according to the operation instruction from the user, whether the corresponding application module is downloaded with the first priority through the theme app. Thus, the parallelization of downloading and loading is achieved, accordingly, the user's waiting time of using the theme resource related to the operation instruction is realty reduced.
The first detecting module 51 is configured to detect an operation instruction of a user to the intelligent terminal.
The first determining module 52 is configured to determine whether an application module corresponding to the operation instruction exists in a downloaded theme package according to the operation instruction detected by the first detecting module 51.
The loading module 53 is configured to load the application module to the intelligent terminal, if the first determining module 52 determines that the application module corresponding to the operation instruction exists.
The sending module 54 is configured to send a first download instruction with a first priority to a theme app installed on the intelligent terminal, if the first determining module 52 determines that the application module corresponding to the operation instruction does not exist.
The first downloading module 55 is configured to download the application module with the first priority through the theme app according to the first download instruction sent by the sending module 54.
In some embodiments, the apparatus may further include a second detecting module 56 and a second downloading module 57.
The second detecting module 56 is configured to detect whether a second download instruction regarding the theme package exists in a theme app installed on the intelligent terminal.
The second downloading module 57 is configured to download the theme package if the second detecting module 56 detects that the second download instruction about the theme package exists, such that the first determining module 52 may determine whether the application module corresponding to the operation instruction exists in the downloaded theme package.
In some embodiments, the second downloading module 57 may include a determining sub module 571, a downloading sub module 572.
The determining sub module 571 is configured to determine download priorities corresponding to application modules in the theme package corresponding to the second download instruction detected by the second detecting module 56.
The downloading sub module 572 is configured to download the application modules in the theme package in an order determined according to the download priorities corresponding to the application modules determined by the determining sub module 571.
In an embodiment, the apparatus may further include a displaying module 58.
The displaying module 58 is configured to display an indication that the theme package is successfully loaded after any application module in the theme package is downloaded by the second downloading module 57.
Concerning the implementation process of the function and action of each modules of the apparatus above, reference is made to the implementation process of corresponding steps in the above method, which will not be addressed.
Referring to
The processing component 702 typically controls overall operations of the device 700, such as the operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps in the above described methods. Moreover, the processing component 702 may include one or more modules which facilitate the interaction between the processing component 702 and other components. For instance, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support the operation of the device 700. Examples of such data include instructions for any applications or methods operated on the device 700, contact data, phonebook data, messages, pictures, video, etc. The memory 704 may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.
The power component 706 provides power to various components of the device 700. The power component 706 may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the device 700.
The multimedia component 708 includes a screen providing an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or swipe action, but also sense a period of time and a pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. The front camera and the rear camera may receive an external multimedia datum while the device 700 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the rear camera may be a fixed optical lens system or have focus and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC) configured to receive an external audio signal when the device 700 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker to output audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.
The sensor component 714 includes one or more sensors to provide status assessments of various aspects of the device 700. For instance, the sensor component 714 may detect an open/closed status of the device 700, relative positioning of components, e.g., the display and the keypad, of the device 700, a change in position of the device 700 or a component of the device 700, a presence or absence of user contact with the device 700, an orientation or an acceleration/deceleration of the device 700, and a change in temperature of the device 700. The sensor component 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication, wired or wirelessly, between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 716 further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.
In exemplary embodiments, the device 700 may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components, for performing the above described methods.
In exemplary embodiments, there is also provided a non-transitory computer-readable storage medium including instructions, such as included in the memory 704, executable by the processor 720 in the device 700, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.
Other embodiments will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed here. This application is intended to cover any variations, uses, or adaptations of the invention following the general principles thereof and including such departures from the present disclosure as come within known or customary practice in the art. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be appreciated that the present disclosure is not limited to the exact construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. It is intended that the scope of the invention only be limited by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201510127975.5 | Mar 2015 | CN | national |