WO2014106449A1 - 轮换桌面背景的客户端、系统和方法 - Google Patents
轮换桌面背景的客户端、系统和方法 Download PDFInfo
- Publication number
- WO2014106449A1 WO2014106449A1 PCT/CN2013/091206 CN2013091206W WO2014106449A1 WO 2014106449 A1 WO2014106449 A1 WO 2014106449A1 CN 2013091206 W CN2013091206 W CN 2013091206W WO 2014106449 A1 WO2014106449 A1 WO 2014106449A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wallpaper
- downloaded
- pictures
- preset
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present invention relates to the field of network data communication technologies, and in particular, to a client, system, and method for rotating a desktop background.
- the wallpaper images for rotation are downloaded to the client in advance, and the client rotates the wallpaper image downloaded to the local. Since the wallpaper images need to be downloaded to the client, the operation of rotating the desktop background occupies a large amount of client resources.
- the number of wallpaper images downloaded to the client is limited, thus limiting the number of wallpaper images used to rotate the desktop background.
- the present invention has been made in order to provide a client, system and method for rotating a desktop background that overcomes the above problems or at least partially solves the above problems.
- a client for rotating a desktop background comprising: a random table generating module, configured to randomly sort and generate wallpaper images in a specified wallpaper library in a server at the beginning of the rotation a random table for recording the random order;
- the image downloading module is adapted to download a preset wallpaper image of the stock value from a specified wallpaper library of the server according to the order recorded in the random table;
- a storage module adapted to store random tables and wallpaper images
- the background replacement module is adapted to receive the instruction to start rotating the desktop background, replace the desktop background according to a preset period according to the downloaded wallpaper image, and replace the desktop background with the downloaded wallpaper image, and notify the office The picture download module has been replaced;
- the image downloading module is further adapted to: after receiving the notification that the replacement has been completed, determine whether the number of downloaded wallpaper images reaches a preset inventory value, and if yes, download the earliest downloaded wallpaper image stored in the storage module.
- the wallpaper image is deleted, and the next wallpaper image is downloaded from the server according to the sorting in the random table and stored in the storage module.
- a system for rotating a desktop background comprising: the client, and The server is suitable for storing wallpaper images and sending wallpaper images to the client.
- a method for rotating a desktop background comprising: randomly sorting wallpaper pictures in a specified wallpaper library in a server at the beginning of the rotation, and generating a random number for recording the random order Table
- a computer program comprising computer readable code, when the computer readable code is run on a terminal device, causing the terminal device to perform the rotating desktop of any of the above The method of the background.
- a computer readable medium wherein the computer program described in the preceding paragraph is stored.
- the wallpaper pictures in the specified wallpaper library in the server are randomly sorted, and a random table for recording the random sort is generated; the specified wallpaper library from the server is sorted according to the records in the random table.
- the wallpaper image in the specified wallpaper library in the server is rotated when the desktop background is rotated, thereby solving the problem that the number of wallpaper images used for rotating the desktop background is limited; and the use of the rotating desktop background is significantly increased.
- the number of wallpaper images has a beneficial effect.
- the technical solution of the present invention when rotating the desktop background, it is not necessary to download all the wallpaper images in the server wallpaper library to the client, and only need to download the preset stock value wallpaper image from the wallpaper library, The rotation is carried out. Whenever a wallpaper image is used for replacement, a new wallpaper image is downloaded to supplement the wallpaper image stored by the client, and the obsolete wallpaper image in the client is deleted accordingly. It can be seen that the invention can reduce the burden on the client while using a larger number of wallpaper pictures to rotate the desktop background. Therefore, the problem of occupying a large amount of client resources and increasing the burden on the client when rotating the desktop background is solved, and the beneficial effect of saving client resources and reducing the burden on the client is obtained.
- FIG. 1 is a schematic block diagram showing a client of a rotating desktop background according to an embodiment of the present invention
- FIG. 2 is a schematic view showing a random table used for rotating a desktop background according to an embodiment of the present invention
- FIG. 3 is a structural diagram showing a client of a rotating desktop background according to an embodiment of the present invention
- FIG. 4 is a schematic structural view showing a client of a rotating desktop background according to an embodiment of the present invention
- FIG. 6 is a block diagram showing a method of rotating a background of a desktop according to an embodiment of the present invention
- FIG. 6 is a flow chart schematically showing a method of rotating a background of a desktop according to an embodiment of the present invention
- FIG. 7 is a flow chart schematically showing an operation method in a case where a network connection is disconnected in a method of rotating a desktop background according to an embodiment of the present invention
- Fig. 8 schematically shows a block diagram of a terminal device for carrying out the method according to the invention
- Fig. 9 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
- FIG. 1 schematically shows a block diagram of a client of a rotating desktop background in accordance with one embodiment of the present invention.
- the client 1 00 includes: a random table generation module 1 1 0, a picture download module 120, a storage module 130, and a background replacement module 140.
- the random table generating module 1 10 is adapted to randomly sort the wallpaper pictures in the specified wallpaper library in the server 200 at the beginning of the rotation, and generate a random table for recording the random order.
- the designated wallpaper library may be a certain category or a certain channel in the server 200, or may be a service of the user. Favorites in the device 200. Users can use the mouse to drag the scroll bar, mouse wheel, keyboard to browse the wallpaper images in each wallpaper library. When the user selects a certain wallpaper library, the wallpaper library is a specified wallpaper library.
- the random table generating module 1 10 groups the wallpaper pictures in the wallpaper library, randomly groups the wallpaper pictures; makes the columns in the random table correspond to the group, and records the index of the wallpaper image in the corresponding group in the column of the random table. number.
- the generated random table is shown in Figure 2.
- the total number of wallpaper images in the specified wallpaper library is n, and the wallpaper images in the wallpaper library are grouped.
- the client 100 randomly arranges the ⁇ /k group wallpaper pictures.
- Each column in the random table corresponds to a set of wallpaper images, and the index number of the wallpaper image in the corresponding group is recorded in each column of the random table. This index number is used to download wallpaper images from the server 200.
- the server 200 may be a cloud server, and the server 200 stores a wallpaper picture richer than the client 100.
- the picture downloading module 120 is adapted to download the wallpaper image of the preset stock value from the specified wallpaper library of the server 200 according to the order recorded in the random table.
- the wallpaper picture is downloaded line by line in the order from top to bottom.
- the index number is read in the order from the front to the back, and the index number is used to download the file from the server 200.
- the wallpaper image is downloaded in the direction indicated by the arrow in Figure 2.
- the image downloading module 120 downloads a first preset number of wallpaper images from the specified wallpaper library of the server 200 for storage according to the order recorded in the random table, and the first preset value is smaller than the stock value. After the number of downloaded wallpaper images reaches the first preset value, after receiving the notification that the background replacement module 140 has completed the replacement, downloading the second preset number of wallpaper images for storage until the downloaded and stored wallpaper image is downloaded. The quantity reaches the inventory value, and the second preset value is smaller than the first preset value.
- the stock value is 100 sheets
- the first preset value is 20 sheets
- the second preset value is 2 sheets.
- the picture downloading module 120 downloads 20 pictures from the wallpaper library of the server 200 according to the order recorded in the random table, and then downloads 2 wallpaper pictures every time a wallpaper picture is played, until the wallpaper picture stored in the storage module 130 The number reached 100.
- the storage module 130 is adapted to store a random table and a wallpaper picture.
- the background replacement module 140 is adapted to receive the instruction to start rotating the desktop background, replace the desktop background according to a preset period according to the downloaded wallpaper image, and replace the desktop background after using the downloaded wallpaper image, and notify The picture download module 120 has completed the replacement.
- the background replacement module 140 performs wallpaper picture playback through the following interface. While(l) ⁇ //waiting time
- dwWait WaitForSingleObject(hQuitEvent,dwWaitingTime);
- the image downloading module 120 is further adapted to: after receiving the notification that the replacement has been completed, determine whether the number of downloaded wallpaper images reaches a preset inventory value, and if so, store the first downloaded wallpaper image in the wallpaper image stored in the storage module 130.
- the next wallpaper image is downloaded from the server 200 and stored in the storage module 130 according to the sorting recorded in the random table. For example, after the number of downloaded wallpaper images reaches the preset stock value 100, after each wallpaper image is played, the earliest downloaded wallpaper image in the storage module 130 is deleted, and the server 200 is sorted according to the records in the random table. The next wallpaper image is downloaded and stored in the storage module 130.
- the client 100 When the wallpaper picture played by the background replacement module 140 is the last picture in the random table, it indicates that the rotation of the desktop background has been completed, the client 100 is restarted, and the random table generation module 1 10 regenerates the random table, the picture.
- the download module 120 re-downloads, and the background replacement module 140 plays the newly downloaded wallpaper image, thereby starting a new round of desktop background rotation.
- the burden on the client can be alleviated while using a larger number of wallpaper pictures to rotate the desktop background. Thereby, the beneficial effect of saving client resources and reducing the burden on the client is obtained.
- the client 100 includes a network detection module 150 in addition to the random table generation module 1 10, the picture download module 120, the storage module 130, and the background replacement module 140.
- the network detection module 150 is adapted to detect whether there is a network connection, and if there is no network connection, instruct the background replacement module 140 to replace the desktop background with a preset period using a local wallpaper picture.
- each module operates as previously described.
- the picture download module 120 downloads a wallpaper image of a preset stock value from a specified wallpaper library of the server 200 in the order recorded in the random table.
- Background Replacement Module 140 Replace the desktop background with the downloaded wallpaper image.
- the background replacement module 140 is further adapted to determine whether the number of local wallpaper pictures reaches a preset threshold before using the local wallpaper picture to replace the desktop background according to a preset period. If not, the network connection is checked. prompt.
- the network detection module 150 detects that there is no network connection, it prompts "The network connection is disconnected, and the server 200 wallpaper auto play will stop.”
- the background replacement module 140 stops the playing of the wall paper picture, that is, stops rotating the desktop background.
- the background replacement module 140 determines whether the number of local wallpaper pictures reaches a preset threshold, and if so, uses the local wallpaper picture to replace the desktop background according to a preset period; When reached, a prompt to check the network connection is presented.
- the local wallpaper image may be a local wallpaper image, or may be a wallpaper image that has been downloaded from the server 200 before the network is disconnected.
- the desktop background when a wallpaper image cannot be downloaded from the server 200 without a network connection, the desktop background can be rotated using the local wallpaper image, so that the desktop background rotation can still be realized in the case where the network is disconnected.
- the client 100 includes a network speed detecting module 160 in addition to the random table generating module 1 10, the picture downloading module 120, the storage module 130, and the background replacing module 140.
- the network speed detecting module 160 is adapted to extend the desktop background rotation period according to the number of unplayed wallpaper images in the storage module 130 when the network transmission speed is less than the set second threshold, and present a prompt for extending the desktop background rotation period.
- the background replacement module 140 is instructed to replace the desktop background in an extended period.
- the network speed detecting module 160 calculates the extended period according to the following formula.
- Extended period (last recorded number of unplayed wallpaper images - unplayed wallpaper in current storage module Number of pictures) X current playback period
- the network speed detecting module 1 60 instructs the background replacement module 140 to replace the desktop background in an extended period.
- the period of rotating the background of the desktop can be automatically extended when the network speed is low, and the situation that the playback period of the wallpaper to be played due to the slow network speed has not been completed is avoided, thereby avoiding the occurrence of the downloading of the wallpaper image.
- the desktop background is rotated, the playback failure phenomenon is generated, and the client performance is enhanced.
- FIG 5 a block diagram of a system for rotating a background of a desktop in accordance with one embodiment of the present invention is schematically illustrated.
- the aforementioned plurality of clients 100 and the server 200 are included in the system.
- the server 200 is adapted to store a wallpaper picture and send a wallpaper picture to the client 100.
- the server 200 and the client 100 can be directly connected or connected through a network, and there is no particular limitation here.
- FIG. 6 a flow diagram of a method of rotating a desktop background in accordance with one embodiment of the present invention is schematically illustrated. The method includes the following steps.
- Step S61 0 When the rotation starts, the wallpaper pictures in the specified wallpaper library in the server are randomly sorted, and a random table for recording the random order is generated. Subsequently, step S620 and step S630 are performed.
- the specified wallpaper library may be a certain category or a certain channel in the server, or may be a user's favorite in the server. Users can use the mouse to drag the scroll bar, mouse wheel, keyboard to browse the wallpaper images in each wallpaper library. When the user selects a certain wallpaper library, the wallpaper library is a specified wallpaper library.
- step S61 the wallpaper pictures in the wallpaper library are grouped, and the grouping of the wallpaper pictures is randomly arranged; the columns in the random table are corresponding to the group, and the index of the wallpaper picture in the corresponding group is recorded in the column of the random table. number.
- the generated random table is shown in Figure 2.
- the total number of wallpaper images in the specified wallpaper library is n, and the wallpaper images in the wallpaper library are grouped.
- Each column in the random table corresponds to a set of wallpaper images, and the index number of the wallpaper image in the corresponding group is recorded in each column of the random table. This index number is used to download wallpaper images from the server.
- the server can be a cloud server, and a richer wallpaper image is stored in the server.
- Step S620 Download the wall paper of the preset stock value from the specified wallpaper library of the server for storage according to the order recorded in the random table.
- step S620 the wallpaper image is downloaded line by line in the order from top to bottom.
- the index number is read in order from front to back, and the number of the stock value is downloaded from the server using the index number.
- Wallpaper images and storage. The wallpaper image is downloaded in the direction indicated by the arrow in Figure 2.
- step S620 the first preset number of wallpaper pictures are downloaded from the specified wallpaper library of the server for storage according to the order recorded in the random table, and the first preset value is smaller than the stock value.
- the number of wallpaper images downloaded is up to After the first preset value is completed, each time the desktop background is replaced with the downloaded wallpaper image, the second preset number of wallpaper images are downloaded for storage until the number of downloaded and stored wallpaper images reaches the stock value, The second preset value is smaller than the first preset value.
- the stock value is 100 sheets
- the first preset value is 20 sheets
- the second preset value is 2 sheets.
- 20 images are downloaded from the server's wallpaper library in the order sorted in the random table. After each wallpaper image is played, 2 wallpaper images are downloaded, until the number of stored wallpaper images reaches 100.
- Step S630 receiving an instruction to start rotating the desktop background, and then performing step S640.
- Step S640 the desktop background is replaced according to a preset period by using the downloaded wallpaper image in the order in which the wallpaper images are downloaded.
- step S650 after the desktop background is replaced with the downloaded wallpaper image, it is determined whether the number of downloaded wallpaper images reaches the preset inventory value. If yes, step S660 is performed; otherwise, step S640 is performed.
- Step S660 deleting the earliest downloaded wallpaper image in the currently stored wallpaper image, and downloading the next wallpaper image from the server according to the order recorded in the random table and storing, and then performing step S640.
- the server is sorted according to the records in the random table. Download the next wallpaper image for storage.
- the played wallpaper image is the last picture in the random table, it indicates that the rotation of the desktop background has been completed, and the above steps S610 to S660 are performed again, thereby starting a new round of desktop background rotation.
- the burden on the client can be alleviated while using a larger number of wallpaper pictures to rotate the desktop background.
- the beneficial effect of saving client resources and reducing the burden on the client is obtained.
- the method before the downloading each wallpaper image, the method further includes the steps of: detecting whether there is a network connection, and if there is no network connection, using the local wallpaper image to replace the desktop background according to a preset period.
- step S640 is used to replace the desktop background with the downloaded wallpaper image.
- FIG. 7 a flow chart of a method of operation in the event of a disconnection of a network connection in a method of rotating a background of a desktop in accordance with one embodiment of the present invention is schematically illustrated.
- Step S710 detecting that there is no network connection, prompting "The network connection is disconnected, the server wallpaper will automatically stop playing.”
- Step S720 after receiving the "known” command, stop playing the wallpaper picture, that is, stop rotating the desktop background.
- Step S730 receiving an instruction of "playing an existing wallpaper", and then performing step S740.
- Step S740 determining whether the number of local wallpaper pictures reaches a preset threshold, and if so, performing steps S750, otherwise, step S760 is performed.
- Step S750 using a local wallpaper image to replace the desktop background according to a preset period.
- Step S760 presenting a prompt for checking the network connection.
- the local wallpaper image may be a local wallpaper image, or may be a wallpaper image that has been downloaded from the server before the network is disconnected.
- the local background image can be used to complete the rotation of the desktop background, so that the desktop background rotation can still be realized in the case of the network disconnection.
- the method further includes the following steps.
- the desktop background rotation period is extended according to the number of unplayed wallpaper images in the stored wallpaper image, and the prompt for extending the desktop background rotation period is presented, and after receiving the determination instruction, starting Replace the desktop background with an extended period.
- the extended period is calculated according to the following formula.
- Extended period (last recorded number of unplayed wallpaper images - number of unplayed wallpaper images in currently stored wallpaper images) X current playback period
- the desktop background is replaced by the extended period.
- the period of rotating the background of the desktop can be automatically extended when the network speed is low, and the situation that the playback period of the wallpaper to be played due to the slow network speed has not been completed is avoided, thereby avoiding the occurrence of the downloading of the wallpaper image. Playback failure occurs when the desktop background is rotated.
- the various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of some or all of the components of the rotating desktop background, in accordance with embodiments of the present invention.
- DSP digital signal processor
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the present invention may be stored on a computer readable medium or may be in the form of one or more signals.
- signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- FIG. 8 illustrates a terminal device that can implement a method of rotating a desktop background in accordance with the present invention.
- the terminal device conventionally includes a processor 810 and a computer program product or computer readable medium in the form of a memory 820.
- the memory 820 can be, for example, a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), Electronic memory such as EPROM, hard disk or ROM.
- Memory 820 has a memory space 830 for program code 831 for performing any of the method steps described above.
- storage space 830 for program code may include various program code 831 for implementing various steps in the above methods, respectively.
- the program code can be read from or written to one or more computer program products.
- Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
- Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
- the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 820 in the terminal device of FIG.
- the program code can be compressed, for example, in an appropriate form.
- the storage unit includes computer readable code 831, ie, code readable by a processor, such as 810, that when executed by the terminal device causes the terminal device to perform each of the methods described above step.
- an embodiment or “one or more embodiments” as used herein means that the particular features, structures, or characteristics described in connection with the embodiments are included in at least one embodiment of the invention.
- the phrase “in one embodiment” herein does not necessarily refer to the same embodiment.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明涉及网络数据通信技术领域,公开了一种轮换桌面背景的客户端、系统和方法,该客户端包括:随机表生成模块,适于生成用于记录该随机排序的随机表;图片下载模块,适于按随机表中记录的排序下载预设的存量值的壁纸图片;存储模块,适于存储随机表和壁纸图片;背景更换模块,适于使用下载的壁纸图片按预设的周期更换桌面背景,并在完成桌面背景更换后,通知所述图片下载模块已完成更换;图片下载模块,还适于在更换完成并且下载的数量达到存量值时,将存储模块中存储的最早下载的壁纸图片刪除,根据随机表中记录的排序下载下一张壁纸图片并存储到所述存储模块中。本发明能够解决在轮换桌面背景时占用客户端资源多,增加客户端负担的技术问题。
Description
轮换桌面背景的客户端、 系统和方法 技术领域 本发明涉及网络数据通信技术领域, 具体涉及轮换桌面背景的客户端、 系统和 方法。 背景技术 现有技术中, 实现轮换桌面背景时, 需要预先将用于轮换的壁纸图片都下载到 客户端中, 客户端对下载到本地的壁纸图片进行轮播。 由于需要将壁纸图片全部下 载到客户端, 使得轮换桌面背景的操作占用了大量的客户端资源。 另一方面, 由于 客户端资源有限, 导致下载到客户端的壁纸图片数量有限, 因此限制了轮换桌面背 景所用的壁纸图片数量。
由上述可知, 现有技术中存在轮换桌面背景时占用客户端资源过多, 增加客户 端负担, 以及轮换桌面背景所用的壁纸图片数量受到限制的问题。 发明内容 鉴于上述问题, 提出了本发明以便提供一种克服上述问题或者至少部分地解决 上述问题的轮换桌面背景的客户端、 系统和方法。
根据本发明的一个方面, 提供了一种轮换桌面背景的客户端, 该客户端包括: 随机表生成模块, 适于在轮换开始时, 将服务器中指定壁纸库中的壁纸图片进 行随机排序, 生成用于记录该随机排序的随机表;
图片下载模块, 适于按随机表中记录的排序从服务器的指定壁纸库中下载预设 的存量值的壁纸图片;
存储模块, 适于存储随机表和壁纸图片;
背景更换模块, 适于接收到开始轮换桌面背景的指令后, 依据壁纸图片下载的 顺序使用下载的壁纸图片按预设的周期更换桌面背景, 并在使用下载的壁纸图片更 换桌面背景后, 通知所述图片下载模块已完成更换;
所述图片下载模块, 还适于接收到已完成更换的通知后, 判断下载的壁纸图片 数量是否达到预设的存量值, 如果是, 则将所述存储模块中存储的壁纸图片中最早 下载的壁纸图片刪除, 并根据随机表中记录的排序从服务器中下载下一张壁纸图片 并存储到所述存储模块中。
根据本发明的另一个方面, 提供了一种轮换桌面背景的系统, 该系统包括: 所述的客户端, 以及
服务器, 适于存储壁纸图片, 并向客户端发送壁纸图片。
根据本发明的又一个方面, 提供了一种轮换桌面背景的方法, 该方法包括: 在轮换开始时, 将服务器中指定壁纸库中的壁纸图片进行随机排序, 生成用于 记录该随机排序的随机表;
按随机表中记录的排序从服务器的指定壁纸库中下载预设的存量值的壁纸图片 进行存储;
接收到开始轮换桌面背景的指令后, 依据壁纸图片下载的顺序使用下载的壁纸 图片按预设的周期更换桌面背景;
在每次使用下载的壁纸图片更换桌面背景完成后, 判断下载的壁纸图片数量是 否达到预设的存量值, 如果是, 则将当前存储的壁纸图片中最早下载的壁纸图片刪 除, 并根据随机表中记录的排序从服务器中下载下一张壁纸图片并存储。
根据本发明的又一个方面, 提供了一种计算机程序, 包括计算机可读代码, 当 所述计算机可读代码在终端设备上运行时, 导致所述终端设备执行上述任一项所述 的轮换桌面背景的方法。
根据本发明的再一个方面, 提供了一种计算机可读介质, 其中存储了前项所述 的计算机程序。
根据本发明的技术方案, 在轮换开始时, 将服务器中指定壁纸库中的壁纸图片 进行随机排序, 生成用于记录该随机排序的随机表; 按随机表中记录的排序从服务 器的指定壁纸库中下载预设的存量值的壁纸图片进行存储; 接收到开始轮换桌面背 景的指令后, 依据壁纸图片下载的顺序使用下载的壁纸图片按预设的周期更换桌面 背景; 在每次使用下载的壁纸图片更换桌面背景完成后, 判断下载的壁纸图片数量 是否达到预设的存量值, 如果是, 则将当前存储的壁纸图片中最早下载的壁纸图片 刪除, 并根据随机表中记录的排序从服务器中下载下一张壁纸图片并存储。
通过本发明的技术方案, 在轮换桌面背景时使用服务器中指定壁纸库中的壁纸 图片进行轮换, 由此解决了轮换桌面背景所用的壁纸图片数量受到限制的问题; 取 得了显著增加轮换桌面背景所用的壁纸图片数量的有益效果。
此外, 通过本发明的技术方案, 在轮换桌面背景时, 不需要将服务器的壁纸库 中所有壁纸图片都下载到客户端, 仅需从壁纸库中下载预设的存量值数量的壁纸图 片, 随着轮换的进行, 每当使用壁纸图片进行一次更换, 便下载一张新的壁纸图片 补充客户端所存储的壁纸图片, 并相应的将客户端中过时的壁纸图片刪除。 可见, 采用本发明在使用数量更多的壁纸图片来轮换桌面背景的同时, 可以减轻客户端负 担。 由此, 解决了在轮换桌面背景时占用客户端资源多, 增加客户端负担的问题, 取得节约客户端资源, 减轻客户端负担的有益效果。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段, 而可依照说明书的内容予以实施, 并且为了让本发明的上述和其它目的、 特征和优 点能够更明显易懂, 以下特举本发明的具体实施方式。 附图说明
通过阅读下文优选实施方式的详细描述, 各种其他的优点和益处对于本领域普 通技术人员将变得清楚明了。 附图仅用于示出优选实施方式的目的, 而并不认为是 对本发明的限制。 而且在整个附图中, 用相同的参考符号表示相同的部件。 在附图 中:
图 1示意性示出了根据本发明一个实施例的轮换桌面背景的客户端的结构图; 图 2 示意性示出了根据本发明一个实施例的轮换桌面背景所用随机表的示意 图;
图 3示意性示出了根据本发明一个实施例的轮换桌面背景的客户端的结构图; 图 4示意性地示出了本发明一个实施例的轮换桌面背景的客户端的结构图; 图 5示意性地示出了根据本发明一个实施例的轮换桌面背景的系统的结构图; 图 6 示意性地示出了根据本发明一个实施例的轮换桌面背景的方法的流程图; 以及
图 7示意性地示出了根据本发明一个实施例的轮换桌面背景的方法中在网络连 接断开情况下的操作方法的流程图;
图 8示意性地示出了用于执行根据本发明的方法的终端设备的框图; 以及 图 9示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存 储单元。 具体实施例
下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显示了本公 开的示例性实施例, 然而应当理解, 可以以各种形式实现本公开而不应被这里阐述 的实施例所限制。 相反, 提供这些实施例是为了能够更透彻地理解本公开, 并且能 够将本公开的范围完整的传达给本领域的技术人员。
图 1示意性地示出了根据本发明一个实施例的轮换桌面背景的客户端的结构图。 客户端 1 00包括: 随机表生成模块 1 1 0、 图片下载模块 120、 存储模块 130和背景更换 模块 140。
随机表生成模块 1 10,适于在轮换开始时,将服务器 200中指定壁纸库中的壁纸图片 进行随机排序, 生成用于记录该随机排序的随机表。
其中, 指定壁纸库可以是服务器 200中某一分类或某一频道, 也可以是用户在服务
器 200中的收藏夹。 用户可以通过鼠标拖动滚动条, 鼠标滚轮, 键盘来浏览各个壁纸库 中壁纸图片。 当用户选择了某一壁纸库后, 该壁纸库为指定壁纸库。
进一步地, 随机表生成模块 1 10将壁纸库中的壁纸图片进行分組, 随机排列壁纸图 片的分組; 使随机表中的列与分組对应, 在随机表的列中记录对应分組中壁纸图片的索 引号。
举例而言, 生成的随机表如图 2所示。指定壁纸库中壁纸图片总数为 n, 将壁纸库中 的壁纸图片进行分組, 每組中壁纸图片数量为 k, 例如, k=19, 即每組中包含 19张壁纸 图片; 共有 n/k組壁纸图片。 客户端 100将 Γη/k組壁纸图片随机排列。 随机表中每一 列对应一組壁纸图片, 随机表每列中记录对应的分組中壁纸图片的索引号。 该索引号用 于从服务器 200中下载壁纸图片。
其中, 服务器 200可以为云端服务器, 服务器 200中存储有比客户端 100更加丰富 的壁纸图片。
图片下载模块 120,适于按随机表中记录的排序从服务器 200的指定壁纸库中下载预 设的存量值的壁纸图片。
图片下载模块 120在下载图片时, 按从上到下的顺序逐行下载壁纸图片, 对于随机 表中每一行, 按从前到后的顺序读取索引号, 使用该索引号从服务器 200中下载所述存 量值数量的壁纸图片并存储。 即按图 2中箭头所指方向下载壁纸图片。
进一步地, 图片下载模块 120按随机表中记录的排序从服务器 200的指定壁纸库中 下载第一预设值数量的壁纸图片进行存储, 所述第一预设值小于所述存量值。 在下载的 壁纸图片数量达到第一预设值后, 在接收到背景更换模块 140发送的已完成更换的通知 后, 下载第二预设值数量的壁纸图片进行存储, 直至下载并存储的壁纸图片的数量达到 存量值, 第二预设值小于所述第一预设值。
举例而言, 存量值为 100张, 第一预设值为 20张, 第二预设值为 2张。开始下载时, 图片下载模块 120按随机表中记录的排序从服务器 200的壁纸库中下载 20张,之后每播 放一张壁纸图片, 则下载 2张壁纸图片, 直到存储模块 130中存储的壁纸图片数量达到 100张。
存储模块 130, 适于存储随机表和壁纸图片。
背景更换模块 140,适于接收到开始轮换桌面背景的指令后,依据壁纸图片下载的顺 序使用下载的壁纸图片按预设的周期更换桌面背景, 并在使用下载的壁纸图片更换桌面 背景后, 通知所述图片下载模块 120已完成更换。
举例而言, 背景更换模块 140通过如下接口进行壁纸图片播放。 while(l)
{//等待时间
if(!SetWallpaper()) dwWait = WaitForSingleObject(hQuitEvent,2000);
if(dwWait == WAIT OBJECT 0) break;
continue;
DWORD dwWaitingTime = m_lpLoopWallpaper->ParseLoopInterval() t 1000; if(m_lpLoopWallpaper->GetAlreadyPlay())
{
dwWait = WaitForSingleObject(hQuitEvent,dwWaitingTime);
if(dwWait == WAIT OBJECT 0) break;
}
dwWait = WaitForSingleObject(hQuitEvent,2000);
if(dwWait == WAIT OBJECT 0) break;
图片下载模块 120,还适于接收到已完成更换的通知后,判断下载的壁纸图片数量是 否达到预设的存量值, 如果是, 则将存储模块 130中存储的壁纸图片中最早下载的壁纸 图片刪除, 并根据随机表中记录的排序从服务器 200中下载下一张壁纸图片并存储到存 储模块 130中。 例如, 当下载的壁纸图片数量是否达到预设的存量值 100后, 每播放一 张壁纸图片后, 则将存储模块 130中最早下载的壁纸图片刪除, 并根据随机表中记录的 排序从服务器 200中下载下一张壁纸图片存储到存储模块 130中。
当背景更换模块 140播放的壁纸图片为随机表中最后一张图片时, 表示已经完成了 一轮桌面背景的轮换, 重新启动客户端 100, 随机表生成模块 1 10重新生成随机表, 图片
下载模块 120重新进行下载, 背景更换模块 140播放新下载的壁纸图片, 由此开始新一 轮的桌面背景的轮换。
采用本实施例, 在使用数量更多的壁纸图片来轮换桌面背景的同时, 可以减轻客户 端负担。 由此, 取得节约客户端资源, 减轻客户端负担的有益效果。
参见图 3, 示意性地示出了根据本发明一个实施例的轮换桌面背景的客户端的结构 图。 客户端 100除包括随机表生成模块 1 10、 图片下载模块 120、 存储模块 130和背景更 换模块 140外, 还包括网络检测模块 150。
网络检测模块 150, 适于检测是否具有网络连接, 如果没有网络连接, 则指示背景更 换模块 140使用本地的壁纸图片按预设的周期更换桌面背景。
如果网络检测模块 150检测到具有网络连接, 各个模块按前述方式进行操作。 图片 下载模块 120按随机表中记录的排序从服务器 200的指定壁纸库中下载预设的存量值的 壁纸图片。 背景更换模块 140使用下载的壁纸图片更换桌面背景。
进一步地, 背景更换模块 140在使用本地的壁纸图片按预设的周期更换桌面背景前, 还适于判断本地的壁纸图片的数量是否达到预设阀值, 如果没有达到, 则呈现检查网络 连接的提示。
举例而言, 网络检测模块 150检测到没有网络连接, 则提示 "网络连接断开, 服务 器 200壁纸自动播放将停止" 。 接收到 "已知" 的指令后, 则背景更换模块 140停止壁 纸图片的播放, 即停止轮换桌面背景。 接收到 "播放已有壁纸" 的指令后, 背景更换模 块 140判断本地的壁纸图片的数量是否达到预设阀值, 如果达到, 则使用本地的壁纸图 片按预设的周期更换桌面背景; 如果没有达到, 则呈现检查网络连接的提示。 所述本地 的壁纸图片可以是本地自带的壁纸图片, 也可以是在网络断开前从服务器 200已经下载 到本地的壁纸图片。
采用本实施例, 当没有网络连接无法从服务器 200下载壁纸图片时, 可以使用本地 的壁纸图片完成轮换桌面背景, 从而使得在网络断开的情况下, 仍然可以实现桌面背景 轮换。
参见图 4, 示意性地示出了根据本发明一个实施例的轮换桌面背景的客户端的结构 图。 客户端 100除包括随机表生成模块 1 10、 图片下载模块 120、 存储模块 130和背景更 换模块 140外, 还包括网速检测模块 160。
网速检测模块 160,适于在检测到网络传输速度小于设定的第二阀值时,根据存储模 块 130中未播放的壁纸图片数量延长桌面背景轮换周期, 呈现延长桌面背景轮换周期的 提示, 接收到确定指令后, 指示背景更换模块 140按延长后的周期更换桌面背景。
举例而言, 网速检测模块 160在检测到网络传输速度小于设定的第二阀值时, 按如 下公式计算延长后的周期。
延长后的周期 = (上次记录的未播放的壁纸图片数量-当前存储模块中未播放的壁纸
图片数量) X当前播放周期
网速检测模块 1 60计算完成后, 呈现提示 "网络速度低, 播放周期将自动延长为 XXX " , 其中 "XXX " 为延长后的周期。 网速检测模块 1 60接收到确定指令后, 指示背景 更换模块 140按延长后的周期更换桌面背景。
采用本实施例, 能够在网络速度低时自动延长轮换桌面背景的周期, 避免了因为网 速慢而导致的播放周期已到而待播放的壁纸图片还没有完成下载的情况的发生, 从而避 免了轮换桌面背景时, 播放失败现象的产生, 增强了客户端性能。 参见图 5, 示意性地示出了根据本发明一个实施例的轮换桌面背景的系统的结构图。 该系统中包括前述多个客户端 1 00以及服务器 200。
服务器 200, 适于存储壁纸图片, 并向客户端 1 00发送壁纸图片。服务器 200和客户 端 1 00间可以直接连接也可以通过网络连接, 在此没有特別限制。 参见图 6, 示意性地示出了根据本发明一个实施例的轮换桌面背景的方法的流程图。 该方法包括如下步骤。
步骤 S61 0, 在轮换开始时, 将服务器中指定壁纸库中的壁纸图片进行随机排序, 生 成用于记录该随机排序的随机表。 随后, 执行步骤 S620和步骤 S630。
其中, 指定壁纸库可以是服务器中某一分类或某一频道, 也可以是用户在服务器中 的收藏夹。 用户可以通过鼠标拖动滚动条, 鼠标滚轮, 键盘来浏览各个壁纸库中壁纸图 片。 当用户选择了某一壁纸库后, 该壁纸库为指定壁纸库。
进一步地, 在步骤 S61 0中, 将壁纸库中的壁纸图片进行分組, 随机排列壁纸图片的 分組; 使随机表中的列与分組对应, 在随机表的列中记录对应分組中壁纸图片的索引号。
举例而言, 生成的随机表如图 2所示。指定壁纸库中壁纸图片总数为 n, 将壁纸库中 的壁纸图片进行分組, 每組中壁纸图片数量为 k, 例如, k=19, 即每組中包含 19张壁纸 图片; 共有 n/k組壁纸图片。 将 Γη/k組壁纸图片随机排列。 随机表中每一列对应一組 壁纸图片, 随机表每列中记录对应的分組中壁纸图片的索引号。 该索引号用于从服务器 中下载壁纸图片。
其中, 服务器可以为云端服务器, 服务器中存储有更加丰富的壁纸图片。
步骤 S620, 按随机表中记录的排序从服务器的指定壁纸库中下载预设的存量值的壁 纸图片进行存储。
在步骤 S620中, 按从上到下的顺序逐行下载壁纸图片, 对于随机表中每一行, 按从 前到后的顺序读取索引号, 使用该索引号从服务器中下载所述存量值数量的壁纸图片并 存储。 即按图 2中箭头所指方向下载壁纸图片。
进一步地, 在步骤 S620中, 按随机表中记录的排序从服务器的指定壁纸库中下载第 一预设值数量的壁纸图片进行存储, 第一预设值小于存量值。 在下载的壁纸图片数量达
到第一预设值后, 每次使用下载的壁纸图片更换桌面背景完成时, 下载第二预设值数量 的壁纸图片进行存储, 直至下载并存储的壁纸图片的数量达到所述存量值, 第二预设值 小于第一预设值。
举例而言, 存量值为 100张, 第一预设值为 20张, 第二预设值为 2张。开始下载时, 按随机表中记录的排序从服务器的壁纸库中下载 20张, 之后每播放一张壁纸图片, 则下 载 2张壁纸图片, 直到存储的壁纸图片数量达到 100张。
步骤 S630, 接收到开始轮换桌面背景的指令, 随后执行步骤 S640。
步骤 S640, 依据壁纸图片下载的顺序使用下载的壁纸图片按预设的周期更换桌面背 景。
步骤 S650, 使用下载的壁纸图片更换桌面背景完成后, 判断下载的壁纸图片数量是 否达到预设的存量值, 如果是, 则执行步骤 S660, 否则, 执行步骤 S640。
步骤 S660, 将当前存储的壁纸图片中最早下载的壁纸图片刪除, 并根据随机表中记 录的排序从服务器中下载下一张壁纸图片并存储, 随后执行步骤 S640。
例如, 当下载的壁纸图片数量是否达到预设的存量值 100后, 每播放一张壁纸图片 后, 则将存储的壁纸图片中最早下载的壁纸图片刪除, 并根据随机表中记录的排序从服 务器中下载下一张壁纸图片进行存储。
当播放的壁纸图片为随机表中最后一张图片时, 表示已经完成了一轮桌面背景的轮 换, 重新执行上述步骤 S610至步骤 S660, 由此开始新一轮的桌面背景的轮换。
采用本实施例, 在使用数量更多的壁纸图片来轮换桌面背景的同时, 可以减轻客户 端负担。 由此, 取得节约客户端资源, 减轻客户端负担的有益效果。 在一实施例中, 在下载每张壁纸图片前还包括步骤: 检测是否具有网络连接, 如果 没有网络连接, 则使用本地的壁纸图片按预设的周期更换桌面背景。
如果检测到具有网络连接, 则执行下载操作, 并执行步骤 S640使用下载的壁纸图片 更换桌面背景。
进一步地, 在使用本地的壁纸图片按预设的周期更换桌面背景前, 判断本地的壁纸 图片的数量是否达到预设阀值, 如果没有达到, 则呈现检查网络连接的提示。
举例而言,参见图 7,示意性地示出了根据本发明一个实施例的轮换桌面背景的方法 中在网络连接断开情况下的操作方法的流程图。
步骤 S710, 检测到没有网络连接, 提示 "网络连接断开, 服务器壁纸自动播放将停 止" 。
步骤 S720, 接收到 "已知" 的指令后, 停止壁纸图片的播放, 即停止轮换桌面背景。 步骤 S730, 接收到 "播放已有壁纸" 的指令, 随后执行步骤 S740。
步骤 S740, 判断本地的壁纸图片的数量是否达到预设阀值, 如果达到, 则执行步骤
S750, 否则, 执行步骤 S760。
步骤 S750, 使用本地的壁纸图片按预设的周期更换桌面背景。
步骤 S760, 呈现检查网络连接的提示。
所述本地的壁纸图片可以是本地自带的壁纸图片, 也可以是在网络断开前从服务器 已经下载到本地的壁纸图片。
采用本实施例, 当没有网络连接无法从服务器下载壁纸图片时, 可以使用本地的壁 纸图片完成轮换桌面背景, 从而使得在网络断开的情况下, 仍然可以实现桌面背景轮换。
本发明一个实施例中, 所述方法还包括如下步骤。
在检测到网络传输速度小于设定的第二阀值时, 根据存储的壁纸图片中未播放的壁 纸图片数量延长桌面背景轮换周期, 呈现延长桌面背景轮换周期的提示, 接收到确定指 令后, 开始按延长后的周期更换桌面背景。
举例而言, 在检测到网络传输速度小于设定的第二阀值时, 按如下公式计算延长后 的周期。
延长后的周期 = (上次记录的未播放的壁纸图片数量-当前存储的壁纸图片中未播放 的壁纸图片数量) X当前播放周期
计算完成后, 呈现提示 "网络速度低, 播放周期将自动延长为 XXX" , 其中 "XXX" 为延长后的周期。
接收到确定指令后, 开始按延长后的周期更换桌面背景。
采用本实施例, 能够在网络速度低时自动延长轮换桌面背景的周期, 避免了因为网 速慢而导致的播放周期已到而待播放的壁纸图片还没有完成下载的情况的发生, 从而避 免了轮换桌面背景时, 播放失败现象的产生。 本发明的各个部件实施例可以以硬件实现, 或者以在一个或者多个处理器上运 行的软件模块实现, 或者以它们的組合实现。 本领域的技术人员应当理解, 可以在 实践中使用微处理器或者数字信号处理器(DSP) 来实现根据本发明实施例的轮换桌 面背景的客户端、 系统中的一些或者全部部件的一些或者全部功能。 本发明还可以 实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序 (例如, 计算机程序和计算机程序产品) 。 这样的实现本发明的程序可以存储在计算机可读 介质上, 或者可以具有一个或者多个信号的形式。 这样的信号可以从因特网网站上 下载得到, 或者在载体信号上提供, 或者以任何其他形式提供。
例如, 图 8示出了可以实现根据本发明的轮换桌面背景的方法的终端设备。 该 终端设备传统上包括处理器 810和以存储器 820形式的计算机程序产品或者计算机 可读介质。 存储器 820可以是诸如闪存、 EEPROM (电可擦除可编程只读存储器) 、
EPROM、 硬盘或者 ROM之类的电子存储器。 存储器 820具有用于执行上述方法中 的任何方法步骤的程序代码 831 的存储空间 830。 例如, 用于程序代码的存储空间 830可以包括分別用于实现上面的方法中的各种步骤的各个程序代码 831。 这些程序 代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机 程序产品中。 这些计算机程序产品包括诸如硬盘, 紧致盘 (CD ) 、 存储卡或者软盘 之类的程序代码载体。 这样的计算机程序产品通常为如参考图 9 所述的便携式或者 固定存储单元。 该存储单元可以具有与图 8 的终端设备中的存储器 820 类似布置的 存储段、 存储空间等。 程序代码可以例如以适当形式进行压縮。 通常, 存储单元包 括计算机可读代码 831,, 即可以由例如诸如 810之类的处理器读取的代码, 这些代 码当由终端设备运行时, 导致该终端设备执行上面所描述的方法中的各个步骤。
本文中所称的 "一个实施例" 、 "实施例"或者 "一个或者多个实施例" 意味 着, 结合实施例描述的特定特征、 结构或者特性包括在本发明的至少一个实施例中。 此外, 请注意, 这里 "在一个实施例中" 的词语例子不一定全指同一个实施例。
在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 本发明的 实施例可以在没有这些具体细节的情况下被实践。 在一些实例中, 并未详细示出公 知的方法、 结构和技术, 以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制, 并且本 领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 在权利 要求中, 不应将位于括号之间的任何参考符号构造成对权利要求的限制。 单词 "包 含"不排除存在未列在权利要求中的元件或步骤。 位于元件之前的单词 "一"或 "一 个" 不排除存在多个这样的元件。 本发明可以借助于包括有若干不同元件的硬件以 及借助于适当编程的计算机来实现。 在列举了若干装置的单元权利要求中, 这些装 置中的若干个可以是通过同一个硬件项来具体体现。 单词第一、 第二、 以及第三等 的使用不表示任何顺序。 可将这些单词解释为名称。
此外, 还应当注意, 本说明书中使用的语言主要是为了可读性和教导的目的而 选择的, 而不是为了解释或者限定本发明的主题而选择的。 因此, 在不偏离所附权 利要求书的范围和精神的情况下, 对于本技术领域的普通技术人员来说许多修改和 变更都是显而易见的。 对于本发明的范围, 对本发明所做的公开是说明性的, 而非 限制性的, 本发明的范围由所附权利要求书限定。
Claims
1、 一种轮换桌面背景的客户端, 该客户端包括:
随机表生成模块, 适于在轮换开始时, 将服务器中指定壁纸库中的壁纸图片进 行随机排序, 生成用于记录该随机排序的随机表;
图片下载模块, 适于按随机表中记录的排序从服务器的指定壁纸库中下载预设 的存量值的壁纸图片;
存储模块, 适于存储随机表和壁纸图片;
背景更换模块, 适于接收到开始轮换桌面背景的指令后, 依据壁纸图片下载的 顺序使用下载的壁纸图片按预设的周期更换桌面背景, 并在使用下载的壁纸图片更 换桌面背景后, 通知所述图片下载模块已完成更换;
所述图片下载模块, 还适于接收到已完成更换的通知后, 判断下载的壁纸图片 数量是否达到预设的存量值, 如果是, 则将所述存储模块中存储的壁纸图片中最早 下载的壁纸图片刪除, 并根据随机表中记录的排序从服务器中下载下一张壁纸图片 并存储到所述存储模块中。
2、 如权利要求 1所述的客户端, 其中,
所述图片下载模块, 进一步适于按随机表中记录的排序从服务器的指定壁纸库 中下载第一预设值数量的壁纸图片进行存储, 所述第一预设值小于所述存量值; 在下载的壁纸图片数量达到第一预设值后, 在接收到所述背景更换模块发送的 已完成更换的通知后, 下载第二预设值数量的壁纸图片进行存储, 直至下载并存储 的壁纸图片的数量达到所述存量值, 所述第二预设值小于所述第一预设值。
3、 如权利要求 1或 2所述的客户端, 其中,
所述随机表生成模块, 进一步适于将壁纸库中的壁纸图片进行分組, 随机排列 壁纸图片的分組; 使随机表中的列与分組对应, 在随机表的列中记录对应分組中壁 纸图片的索引号。
4、 如权利要求 3所述的客户端, 其中,
所述图片下载模块, 进一步适于按从上到下的顺序逐行下载壁纸图片, 对于随 机表中每一行, 按从前到后的顺序读取索引号, 使用该索引号从服务器中下载所述 存量值数量的壁纸图片并存储。
5、 如权利要求 1至 4任一项所述的客户端, 其中,
所述客户端还包括:
网络检测模块, 适于检测是否具有网络连接, 如果没有网络连接, 则指示所述 背景更换模块使用本地的壁纸图片按预设的周期更换桌面背景。
6、 如权利要求 5所述的客户端, 其中,
所述背景更换模块在使用本地的壁纸图片按预设的周期更换桌面背景前, 还适 于判断本地的壁纸图片的数量是否达到预设阀值, 如果没有达到, 则呈现检查网络 连接的提示。
7、 如权利要求 1至 6任一项所述的客户端, 其中,
所述客户端还包括:
网速检测模块, 适于在检测到网络传输速度小于设定的第二阀值时, 根据存储 模块中未播放的壁纸图片数量延长桌面背景轮换周期, 呈现延长桌面背景轮换周期 的提示, 接收到确定指令后, 指示背景更换模块按延长后的周期更换桌面背景。
8、 一种轮换桌面背景的系统, 该系统包括:
如权利要求 1至 7任一项所述的客户端, 以及
服务器, 适于存储壁纸图片, 并向客户端发送壁纸图片。
9、 一种轮换桌面背景的方法, 该方法包括: 在轮换开始时, 将服务器中指定壁 纸库中的壁纸图片进行随机排序, 生成用于记录该随机排序的随机表;
按随机表中记录的排序从服务器的指定壁纸库中下载预设的存量值的壁纸图片 进行存储;
接收到开始轮换桌面背景的指令后, 依据壁纸图片下载的顺序使用下载的壁纸 图片按预设的周期更换桌面背景;
在每次使用下载的壁纸图片更换桌面背景完成后, 判断下载的壁纸图片数量是 否达到预设的存量值, 如果是, 则将当前存储的壁纸图片中最早下载的壁纸图片刪 除, 并根据随机表中记录的排序从服务器中下载下一张壁纸图片并存储。
10、 如权利要求 9所述的方法, 其中,
所述按随机表中记录的排序从服务器的指定壁纸库中下载预设的存量值的壁纸 图片进行存储进一步包括:
按随机表中记录的排序从服务器的指定壁纸库中下载第一预设值数量的壁纸图 片进行存储, 所述第一预设值小于所述存量值;
在下载的壁纸图片数量达到第一预设值后, 每次使用下载的壁纸图片更换桌面 背景完成时, 下载第二预设值数量的壁纸图片进行存储, 直至下载并存储的壁纸图 片的数量达到所述存量值, 所述第二预设值小于所述第一预设值。
1 1、 如权利要求 9或 10所述的方法, 其中,
所述将服务器中指定壁纸库中的壁纸图片进行随机排序, 生成用于记录该随机 排序的随机表进一步包括:
将壁纸库中的壁纸图片进行分組, 随机排列壁纸图片的分組;
使随机表中的列与分組对应, 在随机表的列中记录对应分組中壁纸图片的索引
12、 如权利要求 1 1所述的方法, 其中,
所述按随机表中记录的排序从服务器的指定壁纸库中下载预设的存量值的壁纸 图片进行存储进一步包括:
按从上到下的顺序逐行下载壁纸图片, 对于随机表中每一行, 按从前到后的顺 序读取索引号, 使用该索引号从服务器中下载所述存量值数量的壁纸图片并存储。
13、 如权利要求 9至 12任一项所述的方法, 其中,
在下载每张壁纸图片前还包括:
检测是否具有网络连接, 如果没有网络连接, 则使用本地的壁纸图片按预设的 周期更换桌面背景。
14、 如权利要求 13所述的方法, 其中,
所述使用本地的壁纸图片按预设的周期更换桌面背景前还包括:
判断本地的壁纸图片的数量是否达到预设阀值, 如果没有达到, 则呈现检查网 络连接的提示。
15、 如权利要求 9至 14任一项所述的方法, 其中,
所述方法还包括:
当检测到网络传输速度小于设定的第二阀值时, 根据存储的壁纸图片中未播放 的壁纸图片数量延长桌面背景轮换周期, 呈现延长桌面背景轮换周期的提示, 接收 到确定指令后, 开始按延长后的周期更换桌面背景。
16、 一种计算机程序, 包括计算机可读代码, 当所述计算机可读代码在终端设 备上运行时, 导致所述终端设备执行根据权利要求 9-15 中的任一个所述的轮换桌面 背景的方法。
17、 一种计算机可读介质, 其中存储了如权利要求 16所述的计算机程序。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310002914.7 | 2013-01-05 | ||
| CN201310002914.7A CN103019831B (zh) | 2013-01-05 | 2013-01-05 | 轮换桌面背景的客户端、系统和方法 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014106449A1 true WO2014106449A1 (zh) | 2014-07-10 |
Family
ID=47968462
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2013/091206 Ceased WO2014106449A1 (zh) | 2013-01-05 | 2013-12-31 | 轮换桌面背景的客户端、系统和方法 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN103019831B (zh) |
| WO (1) | WO2014106449A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116795476A (zh) * | 2023-08-29 | 2023-09-22 | 荣耀终端有限公司 | 一种删除壁纸的方法及电子设备 |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103019831B (zh) * | 2013-01-05 | 2015-11-25 | 北京奇虎科技有限公司 | 轮换桌面背景的客户端、系统和方法 |
| CN103338235B (zh) * | 2013-06-06 | 2016-05-11 | 天津华永无线科技有限公司 | 在手机上实现动态壁纸交互式、个性化创作的方法 |
| CN103593158B (zh) * | 2013-11-27 | 2017-11-10 | 广东欧珀移动通信有限公司 | 图片墙中图片的显示方法与装置 |
| CN103927361B (zh) * | 2014-04-18 | 2018-04-10 | 广州久邦世纪科技有限公司 | 一种锁屏界面图片定时更新的系统及其实现方法 |
| CN105992029A (zh) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | 一种壁纸推荐方法、服务器、移动终端及系统 |
| CN106101761A (zh) * | 2016-06-30 | 2016-11-09 | 乐视控股(北京)有限公司 | 一种桌面加载方法及智能电视 |
| CN106250136B (zh) * | 2016-07-27 | 2017-10-24 | 广东欧珀移动通信有限公司 | 一种锁屏杂志播放方法及移动终端 |
| CN106293389B (zh) * | 2016-07-27 | 2018-01-19 | 广东欧珀移动通信有限公司 | 一种自定义图片设置方法及移动终端 |
| CN106254651B (zh) * | 2016-08-03 | 2019-08-13 | Oppo广东移动通信有限公司 | 一种图片下载方法及通信终端 |
| CN106407342B (zh) * | 2016-09-05 | 2020-01-14 | Oppo广东移动通信有限公司 | 一种图片播放方法及移动终端 |
| CN106648296A (zh) * | 2016-10-09 | 2017-05-10 | 乐视控股(北京)有限公司 | 一种壁纸的设置方法和装置 |
| CN106990962B (zh) * | 2017-03-29 | 2021-02-12 | 北京金山安全软件有限公司 | 动态锁屏壁纸切换方法、装置及终端 |
| US11521705B2 (en) * | 2018-09-18 | 2022-12-06 | International Business Machines Corporation | Random sequence generation for gene simulations |
| CN110209312A (zh) * | 2019-04-30 | 2019-09-06 | 维沃移动通信有限公司 | 一种图片显示方法及移动终端 |
| CN112346800A (zh) * | 2020-10-15 | 2021-02-09 | 深圳Tcl新技术有限公司 | 壁纸自动切换方法、装置和计算机可读存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1770103A (zh) * | 2004-11-03 | 2006-05-10 | 乐金电子(昆山)电脑有限公司 | 移动通讯终端机背景图像变更装置和方法及图像传送方法 |
| CN102065414A (zh) * | 2011-01-13 | 2011-05-18 | 中兴通讯股份有限公司 | 终端显示图片的自动更新方法及终端 |
| CN102135854A (zh) * | 2011-03-09 | 2011-07-27 | 惠州Tcl移动通信有限公司 | 更换壁纸的方法及使用所述方法的电子设备 |
| CN103019831A (zh) * | 2013-01-05 | 2013-04-03 | 北京奇虎科技有限公司 | 轮换桌面背景的客户端、系统和方法 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101154156A (zh) * | 2006-09-29 | 2008-04-02 | 张海疆 | 桌面壁纸更新装置和方法 |
| CN101800791A (zh) * | 2009-12-31 | 2010-08-11 | 康佳集团股份有限公司 | 一种动态相簿作为终端墙纸的方法 |
| CN102207976A (zh) * | 2011-06-24 | 2011-10-05 | 厦门雅迅网络股份有限公司 | 一种网页数据的下载和浏览方法 |
-
2013
- 2013-01-05 CN CN201310002914.7A patent/CN103019831B/zh active Active
- 2013-12-31 WO PCT/CN2013/091206 patent/WO2014106449A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1770103A (zh) * | 2004-11-03 | 2006-05-10 | 乐金电子(昆山)电脑有限公司 | 移动通讯终端机背景图像变更装置和方法及图像传送方法 |
| CN102065414A (zh) * | 2011-01-13 | 2011-05-18 | 中兴通讯股份有限公司 | 终端显示图片的自动更新方法及终端 |
| CN102135854A (zh) * | 2011-03-09 | 2011-07-27 | 惠州Tcl移动通信有限公司 | 更换壁纸的方法及使用所述方法的电子设备 |
| CN103019831A (zh) * | 2013-01-05 | 2013-04-03 | 北京奇虎科技有限公司 | 轮换桌面背景的客户端、系统和方法 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116795476A (zh) * | 2023-08-29 | 2023-09-22 | 荣耀终端有限公司 | 一种删除壁纸的方法及电子设备 |
| CN116795476B (zh) * | 2023-08-29 | 2023-11-03 | 荣耀终端有限公司 | 一种删除壁纸的方法及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103019831A (zh) | 2013-04-03 |
| CN103019831B (zh) | 2015-11-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103019831B (zh) | 轮换桌面背景的客户端、系统和方法 | |
| US8868602B2 (en) | Database manager and method and computer program for managing a database | |
| JP4944919B2 (ja) | メディアファイルの自動選択 | |
| US10114865B2 (en) | Tile cache | |
| CN101589592B (zh) | 多协议可移动存储设备 | |
| CN101546337A (zh) | 存储器系统和数据访问方法 | |
| CN104428744B (zh) | 一种多媒体显示的方法、装置和设备 | |
| EP2950310B1 (en) | Method and system for continuously playing media resources in device | |
| CN103945259A (zh) | 一种在线视频播放方法及装置 | |
| CN108459824A (zh) | 一种数据修改写方法及装置 | |
| CN103956175A (zh) | 一种多媒体文件的播放方法及播放设备 | |
| CN103248707A (zh) | 文件访问方法、系统以及设备 | |
| CN106201602B (zh) | 一种标签提供方法、获取方法、服务器及电子设备 | |
| CN111031117B (zh) | 一种多媒体文件下载方法及相关装置 | |
| CN101296258A (zh) | 具有网络功能的硬盘装置 | |
| WO2016019875A1 (zh) | 呈现来自网络的内容数据的方法和设备 | |
| CN103763575A (zh) | 一种节目单编排方法及装置 | |
| CN105528348B (zh) | 媒体文件的处理方法及装置 | |
| TWI461904B (zh) | Linux FAT檔案系統修復方法及裝置 | |
| CN104598612B (zh) | 歌曲播放与封套图片显示的同步方法及装置 | |
| CN101996665B (zh) | 可携式装置的媒体播放方法以及其可携式装置 | |
| CN114756786A (zh) | 一种网页的显示方法、系统、终端及介质 | |
| JP5729823B2 (ja) | バックアップ装置、バックアップ方法及び、バックアップ用プログラム | |
| CN103618961A (zh) | 一种显示视频标题的方法、系统及浏览器 | |
| TW201314564A (zh) | 電子裝置及其多媒體檔的播放方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13870298 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 13870298 Country of ref document: EP Kind code of ref document: A1 |