Summary of the invention
The embodiment of the invention provides a kind of wallpaper changing method and device, can automatically switch wallpaper with realization, and can switch wallpaper according to user's needs, can switch wallpaper simultaneously when mobile phone enters holding state, thereby improve user's Experience Degree.
The embodiment of the invention provides a kind of wallpaper changing method, and this method comprises:
Wallpaper is stored in the file;
Set interval, add message, when timer arrives the time of setting, from file, select wallpaper to switch to message queue.
The embodiment of the invention provides a kind of wallpaper switching device shifter, and this device comprises:
Memory cell is used for wallpaper is stored in file;
Switch unit is used to set interval, and adds message to message queue, when timer arrives the time of setting, selects wallpaper to switch from file.
Above-mentioned wallpaper changing method and device, the wallpaper that can automatically switch, and the wallpaper that can automatically switch have as required improved user's Experience Degree and satisfaction well.
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
Embodiment
Embodiment of the invention wallpaper changing method comprises:
Wallpaper is stored in the file;
Set interval, add message, when timer arrives the time of setting, from file, select wallpaper to switch to message queue.
As shown in Figure 1, be the flow chart of wallpaper changing method embodiment of the present invention, this method comprises:
Step 101, wallpaper is stored in the file;
To give tacit consent to wallpaper and be stored in the default folder, will change wallpaper and be stored in the replacing file; The position of above-mentioned wallpaper storage can be the memory disc that system carries, and also can be memory device movably, for example storage card (T-FLASH) etc.;
Step 102, set interval, add message to message queue;
When switching wallpaper is to realize according to certain frequency certain time interval, the time interval of setting can be per 10 minutes, per hour, every day, weekly, every month etc.; After setting the above-mentioned time interval, system can add message in the message queue of trend alarm clock;
Step 103, when time that timer arrive to be set, from file, select wallpaper to switch.
When timer arrives the time of setting, whether detect above-mentioned replacing file effective, if effectively, then from change file, select wallpaper to switch,, then eject the file unavailable emphasis information of changing if invalid, whether and it is effective to detect default folder, if effectively, then can from default folder, select wallpaper to switch, otherwise eject default folder unavailable emphasis information; Causing replacing file or the invalid reason of default folder to have a lot, for example can be not have wallpaper in the above-mentioned file, also can be that the preservation form of wallpaper is not right, and the preservation form of above-mentioned wallpaper can be * .gif, * .jpeg etc.;
In addition, above-mentioned wallpaper switching can occur in terminal and be in non-holding state, also can occur in terminal and be in holding state, when terminal is in holding state, call an interface function and carry out subsequent operation, judge whether automatic switching function is opened, if then switch, and the wallpaper that changes is that preceding next that once changed wallpaper opened wallpaper, if switched to the maximum of wallpaper number, then switch since first wallpaper once more, otherwise can't switch wallpaper;
Further, the user also can carry out the manual switchover wallpaper as required, but the prerequisite of carrying out manual switchover is to close automatic switching function, and the manual switchover wallpaper can satisfy client's needs well.
Above-mentioned wallpaper changing method, can realize the wallpaper that automaticallyes switch, and can be according to user's needs automatic switchover wallpaper, simultaneously, when being in holding state, terminal also can switch wallpaper, in addition, according to all right manual switchover wallpaper of user's needs, user's Experience Degree and satisfaction have been improved well.
As shown in Figure 2, be the structural representation of wallpaper switching device shifter embodiment of the present invention, this device comprises: memory cell 1 is used for wallpaper is stored in file; Switch unit 2 is used to set interval, and adds message to message queue, when timer arrives the time of setting, selects wallpaper to switch from file.
Wherein, said memory cells 1 can comprise: default storage module 11 is used for the acquiescence wallpaper is stored in default folder; Change memory module 12, be used for the replacing wallpaper is stored in the replacing file.
In addition, above-mentioned switch unit 2 can comprise: detection module 21, whether effectively be used to detect default folder or change file, and if invalid, then send corresponding document folder unavailable emphasis information.In addition, above-mentioned switch unit 3 also can comprise: first handover module 22, and be used for detection module and detect transaction file and accompany when imitating, from change file, select wallpaper to switch; Second handover module 23 is used for when the replacing file is invalid, selects wallpaper to switch from default folder.
Further, above-mentioned wallpaper switching device shifter can also comprise: control unit is used to control the state of switch unit; When terminal becomes holding state by non-holding state, if switch unit is in opening, then can switch wallpaper, if switch unit is in closed condition, want to carry out the switching of wallpaper, then need to change its state by control unit; Equally, when the user wants the manual switchover wallpaper, must close switch unit, otherwise need to use control unit that switch unit is become closed condition.
Above-mentioned wallpaper switching device shifter, can realize the wallpaper that automaticallyes switch by switch unit, and can be according to user's needs automatic switchover wallpaper, simultaneously, make terminal when being in holding state, can switch wallpaper by control unit, also can be according to user's needs manual switchover wallpaper, thus user's Experience Degree and satisfaction improved well.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.