CN114296854B - Desktop wallpaper display method and device, electronic equipment and readable storage medium - Google Patents

Desktop wallpaper display method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114296854B
CN114296854B CN202111632468.9A CN202111632468A CN114296854B CN 114296854 B CN114296854 B CN 114296854B CN 202111632468 A CN202111632468 A CN 202111632468A CN 114296854 B CN114296854 B CN 114296854B
Authority
CN
China
Prior art keywords
target
wallpaper
gadget
rendering
instruction
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.)
Active
Application number
CN202111632468.9A
Other languages
Chinese (zh)
Other versions
CN114296854A (en
Inventor
徐进平
余章胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN202111632468.9A priority Critical patent/CN114296854B/en
Publication of CN114296854A publication Critical patent/CN114296854A/en
Application granted granted Critical
Publication of CN114296854B publication Critical patent/CN114296854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a desktop wallpaper display method, a desktop wallpaper display device, electronic equipment and a readable storage medium, relates to the technical field of computer application, and aims to improve the reliability of desktop wallpaper display. The method comprises the following steps: receiving a setting instruction of desktop wallpaper; determining a target wallpaper material according to the setting instruction; starting a dynamic wallpaper service to enable the dynamic wallpaper service to provide a rendering interface; and rendering the target wallpaper material to the rendering interface. The application is suitable for displaying desktop wallpaper.

Description

Desktop wallpaper display method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer applications, and in particular, to a desktop wallpaper display method, an application keep-alive device, an electronic device, and a readable storage medium.
Background
With the rapid development of computer application technology, various applications capable of meeting the demands of users are generated, wherein the desktop wallpaper can make the desktop look better, more beautiful and more personalized, and is popular with the vast users, however, in the prior art, an application program providing the desktop wallpaper is easily killed by a system, and the desktop wallpaper selected by the user cannot be displayed continuously through the application program, so that the display reliability of the desktop wallpaper is lower.
Disclosure of Invention
In view of the above, embodiments of the present application provide a desktop wallpaper display method, device, electronic device, and readable storage medium, which can improve the reliability of desktop wallpaper display.
In a first aspect, an embodiment of the present application provides a desktop wallpaper display method, including: receiving a setting instruction of desktop wallpaper; determining a target wallpaper material according to the setting instruction; starting a dynamic wallpaper service to enable the dynamic wallpaper service to provide a rendering interface; and rendering the target wallpaper material to the rendering interface.
According to a specific implementation manner of the embodiment of the present application, the starting dynamic wallpaper service includes: calling a dynamic wallpaper service interface of a system; and starting the dynamic wallpaper service through the dynamic wallpaper service interface.
According to a specific implementation manner of the embodiment of the application, the target wallpaper material comprises a video.
According to a specific implementation manner of the embodiment of the present application, the rendering the target wallpaper material to the rendering interface includes: analyzing the video data corresponding to the video through a player to obtain frame data of each video frame corresponding to the video data; and sequentially rendering the frame data of each video frame to the rendering interface.
According to a specific implementation manner of the embodiment of the application, the method further comprises: receiving user changes
A desktop wallpaper replacement instruction; determining a new target wallpaper material according to the replacement instruction; and rendering the new target wallpaper material to the rendering interface.
In a second aspect, an embodiment of the present application provides a desktop wallpaper display device, including: the receiving module is used for receiving a setting instruction of the desktop wallpaper; the determining module is used for determining target wallpaper materials according to the setting instruction; the starting module is used for starting the dynamic wallpaper service so that the dynamic wallpaper service provides a rendering interface; and the rendering module is used for rendering the target wallpaper material to the rendering interface.
According to a specific implementation manner of the embodiment of the present application, the starting module is specifically configured to: calling a dynamic wallpaper service interface of a system; and starting the dynamic wallpaper service through the dynamic wallpaper service interface.
According to a specific implementation manner of the embodiment of the application, the target wallpaper material comprises a video.
According to a specific implementation manner of the embodiment of the present application, the rendering module is specifically configured to: analyzing the video data corresponding to the video through a player to obtain frame data of each video frame corresponding to the video data; and sequentially rendering the frame data of each video frame to the rendering interface.
According to a specific implementation manner of the embodiment of the present application, the apparatus is further configured to: receiving a replacement instruction of replacing desktop wallpaper by a user; determining a new target wallpaper material according to the replacement instruction; and rendering the new target wallpaper material to the rendering interface.
The embodiment of the application also provides an application program keep-alive method, an application program keep-alive device, electronic equipment and a readable storage medium, which can improve the application program protection reliability to a certain extent and reduce the system resource consumption.
In a third aspect, an embodiment of the present application provides an application keep-alive method, including: running a target gadget associated with a target application in an operating system; and maintaining the target application program by an updating instruction which is sent to the target application program by the operating system and used for updating the interface information of the target widget.
According to a specific implementation manner of the embodiment of the present application, in an operating system, the running of a target gadget associated with a target application program includes: activating the target gadget according to a preset activation strategy so as to run the target gadget associated with the target application program in the operating system; or receiving an activation instruction which is sent by a user and activates the target small component; and activating the target gadget according to the activation instruction so as to run the target gadget associated with the target application program in the operating system.
According to a specific implementation manner of the embodiment of the present application, the receiving an activation instruction sent by a user to activate the target widget includes: sending prompt information to a user; the prompt message is used for prompting a user to activate the gadget; receiving an activation instruction sent by a user; the activation instruction is an instruction sent by a user according to the prompt information.
According to a specific implementation manner of the embodiment of the application, the method further comprises: closing the gadget.
According to a specific implementation manner of the embodiment of the application, the method further comprises: and through the target application program, updating content sent to the small component and displaying the updating content on an interface of the small component.
According to a specific implementation manner of the embodiment of the application, the method further comprises: detecting whether the target gadget is in an operating state or not through the preset time interval of the operating system; and if the target gadget is not in the running state, pulling up the target gadget through a pulling-up instruction sent by the operating system to the target gadget.
In a fourth aspect, an embodiment of the present application provides an application keep-alive device, including: the operation module is used for operating a target widget associated with a target application program in the operating system; and the keep-alive module is used for keeping the target application program alive by an update instruction which is sent to the target application program by the operating system and is used for updating the interface information of the target widget.
According to a specific implementation manner of the embodiment of the present application, the operation module includes: the first activation submodule is used for activating the target gadget according to a preset activation strategy so as to run the target gadget related to the target application program in the operating system; or, the second activation submodule is used for receiving an activation instruction which is sent by a user and activates the target small component; and activating the target gadget according to the activation instruction so as to run the target gadget associated with the target application program in the operating system.
According to a specific implementation manner of the embodiment of the present application, the second activation submodule is specifically configured to: sending prompt information to a user; the prompt message is used for prompting a user to activate the gadget; receiving an activation instruction sent by a user; the activation instruction is an instruction sent by a user according to the prompt information.
According to a specific implementation manner of the embodiment of the present application, the apparatus further includes: and the closing module is used for closing the small assembly.
According to a specific implementation manner of the embodiment of the present application, the apparatus further includes: and the updating module is used for transmitting the updated content to the gadget through the target application program and displaying the updated content on the interface of the gadget.
According to a specific implementation manner of the embodiment of the present application, the apparatus further includes: the detection module is used for detecting whether the target gadget is in an operation state or not through the preset time interval of the operating system; and the pulling-up module is used for pulling up the target gadget through a pulling-up instruction sent by the operating system to the target gadget if the target gadget is not in a running state.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is configured to execute the desktop wallpaper display method or the application keep-alive method according to any one of the foregoing implementation manners.
In a sixth aspect, an embodiment of the present application provides a computer readable storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement the desktop wallpaper display method or the application keep-alive method according to any one of the foregoing implementation manners.
According to the desktop wallpaper display method, device, electronic equipment and readable storage medium, the setting instruction of the desktop wallpaper is received, the target wallpaper material is determined according to the setting instruction, and then the dynamic wallpaper service is started, so that the dynamic wallpaper service provides a rendering interface, and finally the target wallpaper material can be rendered to the rendering interface, thereby setting the desktop wallpaper.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating a desktop wallpaper display method according to an embodiment of the present application;
FIG. 2 is a flowchart of an application keep-alive method according to an embodiment of the application;
fig. 3 is a schematic structural diagram of a desktop wallpaper display device according to an embodiment of the application;
FIG. 4 is a schematic diagram of an application keep-alive device according to an embodiment of the application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order that those skilled in the art will better understand the technical concepts, embodiments and advantages of the embodiments of the present application, a detailed description will be given below with reference to specific examples.
The desktop wallpaper display method provided by the embodiment of the application comprises the following steps: receiving a setting instruction of desktop wallpaper; determining a target wallpaper material according to the setting instruction; starting a dynamic wallpaper service to enable the dynamic wallpaper service to provide a rendering interface; and rendering the target wallpaper material to the rendering interface, so that the reliability of displaying the target wallpaper material on a desktop as wallpaper can be improved.
Fig. 1 is a flow chart of a desktop wallpaper display method according to an embodiment of the present application, as shown in fig. 1, where the method of the embodiment may include:
s101, receiving a desktop wallpaper setting instruction.
Desktop wallpaper may be background content used by desktops of electronic devices such as cell phones, computers. The desktop wallpaper enables the desktop of the electronic device to look better, more beautiful and more personalized.
When the user wants to set the desktop wallpaper, the desktop wallpaper can be set by sending a setting instruction.
S102, determining target wallpaper materials according to the setting instruction.
The target wallpaper material may be content that the user wants to display on the desktop. In some examples, the user issues a set instruction when selecting the target wallpaper material, such that when the user clicks on the target wallpaper material, both the set instruction and the target wallpaper material are issued.
S103, starting the dynamic wallpaper service so that the dynamic wallpaper service provides a rendering interface.
The dynamic wallpaper service may be a system-on-board service that is of higher priority, in some examples, an Android system-on-board service.
The dynamic wallpaper service in this embodiment is capable of providing a rendering interface for the process that initiated it.
The rendering interface can be a canvas corresponding to the desktop, and the target wallpaper material can be rendered on the canvas, so that the setting of the target desktop wallpaper is realized.
And S104, rendering the target wallpaper material to a rendering interface.
In this embodiment, the target wallpaper material is rendered to the rendering interface, so that the target wallpaper material can be set on the desktop, and becomes desktop wallpaper.
In some examples, the method of the embodiment may be applied to a mobile phone desktop, and further, may be applied to a mobile phone desktop of an Android operating system.
In some examples, the method of the present embodiment may be applied to applications of primordial qi desktop wallpaper.
According to the embodiment, the setting instruction of the desktop wallpaper is received, the target wallpaper material is determined according to the setting instruction, and the dynamic wallpaper service is started again, so that the dynamic wallpaper service provides a rendering interface, and finally the target wallpaper material can be rendered to the rendering interface, thereby setting the desktop wallpaper.
To enable the dynamic wallpaper service more conveniently, in some examples, enabling the dynamic wallpaper service (S103) may include:
S103a, calling a dynamic wallpaper service interface of the system.
The dynamic wallpaper service interface is provided by the system, and in some examples, the windows system provides a dynamic wallpaper service interface.
S103b, starting dynamic wallpaper service through the dynamic wallpaper service interface.
Through the dynamic wallpaper service interface, a dynamic wallpaper service can be initiated.
In some examples, the target wallpaper material may include a picture or video.
And under the condition that the target wallpaper material is the picture, the pixel corresponding to the picture can be sent to the image processor, and the image processor renders the pixel corresponding to the picture to the rendering interface, so that the picture is used as the desktop wallpaper.
For the case where the target wallpaper material is video, in some examples, rendering the target wallpaper material to the rendering interface (S104) may include:
S104a, analyzing the video data corresponding to the video through a player to obtain frame data of each video frame corresponding to the video data.
In this embodiment, the player can parse the video data to obtain frame data of each video frame that forms the video, where each group of frame data corresponds to one video frame, i.e., one picture of the video.
And S104b, sequentially rendering the frame data of each video frame to a rendering interface.
The frame data of each video frame can be rendered to the rendering interface according to the sequence of each video frame in the video, so that the video is used as desktop wallpaper.
To enhance the user experience, the speed of changing desktop wallpaper can be increased, in some examples, the method may further include:
S105, receiving a replacement instruction of replacing desktop wallpaper by a user.
In this embodiment, when the user is not satisfied with the target wallpaper material selected previously or wants to use the preferred material as the wallpaper, an instruction to replace the desktop wallpaper is issued.
S106, determining new target wallpaper materials according to the replacement instruction.
The new target wallpaper material can replace the target wallpaper material set as desktop wallpaper in the above embodiments.
And S107, rendering the new target wallpaper material to a rendering interface.
According to the embodiment, after the target wallpaper material is used as the desktop wallpaper, the replacement instruction of the desktop wallpaper is received by a user, then a new target wallpaper material is determined according to the replacement instruction, and finally the new target wallpaper material is rendered to the rendering interface, so that the new target wallpaper material is used as the new desktop wallpaper, and in the process, the dynamic wallpaper service does not need to be restarted, the replacement speed of the desktop wallpaper can be improved, and the user experience is improved.
In the prior art, in order to keep the application program alive, a resident notification and re-notification column can be created, so that the system priority of the application process is improved; or the surviving application A can be used for detecting whether the application B survives or not at an irregular time, if the application B is found to be not survived, the application A wakes the application B by starting a background service of the application B, so that the application B continues to run; or when the application is returned to the background, a section of silent music is circularly played, and the system is deceived, so that the system considers that the application is an application related to playing music and cannot be cleaned, and the aim of continuously running the application is fulfilled; the application program is pulled mutually, so that the application program which is not wanted to be started by a user is easily pulled, and system resources are consumed; and a section of silent music is circularly played in the background, so that the music is played without any reason without the consent of the user, and the system resource is consumed. The embodiment provides an application program keep-alive method, which can improve the protection reliability of an application program to a certain extent and reduce the consumption of system resources.
Fig. 2 is a flow chart of an application program protection method according to an embodiment of the present application, as shown in fig. 2, the application program protection method of the present embodiment may include:
S201, running a target widget associated with a target application program in an operating system.
The gadget may be a simple extended application, i.e., a plug-in, that may be dragged to a desktop, and the gadget may have various shapes and sizes, and may be customized and resident on any home screen. In this embodiment, information can be accessed quickly through the target gadget without opening a target application that manages this information.
S202, maintaining the target application program by an updating instruction which is sent to the target application program by the operating system and used for updating the interface information of the target gadget.
After receiving the update instruction sent by the system, the target application program updates the interface information of the target small component according to the update instruction.
The embodiment can be applied to a mobile phone, and particularly can be applied to a mobile phone with an Android operating system.
According to the embodiment, the target gadget related to the target application program is operated in the operating system, and the updating instruction for updating the interface information of the target gadget is sent to the target application program by the operating system, because the operating system is used for updating the interface information of the target gadget, the target gadget is not easy to kill, and the target gadget is related to the application program, and the target gadget process and the application program process are the same process, so that the target application program is not easy to kill, the reliability of the keep-alive target application program is improved, and in the process of keeping-alive the target application program, other applications are not involved in operation, and the system resource consumption is reduced to a certain extent.
A further embodiment of the present application is substantially the same as the above embodiment, except that in the operating system, running the target gadget (S201) associated with the target application program of the present embodiment may include:
S201a, activating a gadget corresponding to a target application program according to a preset activation strategy so as to run the target gadget associated with the target application program in an operating system.
In this embodiment, when an application program is developed, an activation policy of a gadget may be set, specifically how long after an application is installed and used, a target application program activates a gadget corresponding to the target application program; or setting a preset threshold, and when the number of times that the user opens the application program in the preset time exceeds the preset threshold, activating the gadget corresponding to the target application program by the target application program.
According to the embodiment, the gadget corresponding to the target application program is activated according to the preset activation strategy, so that the process of manually activating the gadget by a user is omitted, and the user operation is simplified.
As an alternative implementation manner, in the operating system, the running of the target gadget associated with the target application (S201) of this embodiment may include:
S201b, receiving an activation instruction of activating the gadget sent by a user.
The user can actively activate the gadget according to the actual needs of the user, and in the implementation, the gadget can be moved to the desktop from the window tool by moving the gadget corresponding to the application program, and the activation instruction for activating the gadget sent by the user can be used when the gadget is moved to the desktop.
S201c, activating the gadget corresponding to the target application program according to the activation instruction.
In this embodiment, since the activation instruction for activating the gadget sent by the user is received, and the gadget corresponding to the target application is activated according to the activation instruction, the user can activate the gadget according to the needs of the user, and user experience is improved.
To further enhance the user experience, in some examples, receiving an activation instruction from the user to activate the gadget (S201 b) may include:
A. And sending prompt information to the user.
In this embodiment, the prompt message is used to prompt the user to activate the gadget.
The user can be informed in a popup mode, and the gadget corresponding to the target application program can be set.
B. And receiving an activation instruction sent by a user.
In this embodiment, the activation instruction may be an instruction sent by the user according to the prompt information.
After the user views the prompt information, if the user wants to set the gadget, the user can send an activation instruction so as to activate the gadget.
To more flexibly control gadgets, in some examples gadgets may be turned off.
The closing of the gadget of this embodiment may be the deletion of the gadget from the desktop.
To enrich the functionality of the gadgets, corresponding information may be displayed in the gadgets. In some examples, the method may further comprise:
S203, updating content sent to the gadget through the target application program, and displaying the updating content on the interface of the gadget.
In this embodiment, the updated content may be content on the target application.
According to the embodiment, the updated content is sent to the gadget through the target application program, and the updated content is displayed on the interface of the gadget, so that a user can browse the updated content in the gadget without opening the application program, the user operation is simplified, and the user experience is improved.
In some examples, the method further comprises:
S204, detecting whether the target gadget is in an operation state or not through the preset time interval of the operating system.
The preset time period can be 10s or 1min.
And detecting whether the target gadget is in an operating state or not by detecting whether the target gadget is in the operating state or not at preset time intervals, for example, detecting whether the target gadget is in the operating state or not at 10min intervals by the operating system.
S205, if the target gadget is not in the running state, pulling up the target gadget through a pulling-up instruction sent to the target gadget by the operating system.
If the operating system detects that the target gadget is not in the running state, the operating system sends a pull-up instruction to the target gadget to pull up the target gadget, and because the target gadget is associated with the target application program, the target application program is pulled up, so that the keep-alive target application program is realized.
The desktop wallpaper display device provided by the embodiment of the application comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a setting instruction of desktop wallpaper; the determining module is used for determining target wallpaper materials according to the setting instruction; the starting module is used for starting the dynamic wallpaper service so that the dynamic wallpaper service provides a rendering interface; and the rendering module is used for rendering the target wallpaper material to the rendering interface, so that the reliability of displaying the target wallpaper material on a desktop as wallpaper can be improved.
Fig. 3 is a schematic structural diagram of a desktop wallpaper display device according to an embodiment of the application, as shown in fig. 3, where the desktop wallpaper display device according to the embodiment may include: a receiving module 11, configured to receive a setting instruction of desktop wallpaper; a determining module 12, configured to determine a target wallpaper material according to the setting instruction; a starting module 13, configured to start a dynamic wallpaper service, so that the dynamic wallpaper service provides a rendering interface; a rendering module 14, configured to render the target wallpaper material to the rendering interface.
The device of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and its implementation principle and technical effects are similar, and are not described here again.
According to the device, the setting instruction of the desktop wallpaper is received, the target wallpaper material is determined according to the setting instruction, and the dynamic wallpaper service is started again, so that the dynamic wallpaper service provides a rendering interface, and finally the target wallpaper material can be rendered to the rendering interface, thereby setting the desktop wallpaper.
As an optional implementation manner, the starting module is specifically configured to: calling a dynamic wallpaper service interface of a system; and starting the dynamic wallpaper service through the dynamic wallpaper service interface.
As an alternative embodiment, the target wallpaper material includes a picture or video.
As an optional implementation manner, the rendering module is specifically configured to: analyzing the video data corresponding to the video through a player to obtain frame data of each video frame corresponding to the video data; and sequentially rendering the frame data of each video frame to the rendering interface.
As an alternative embodiment, the device is further configured to: receiving a replacement instruction of replacing desktop wallpaper by a user; determining a new target wallpaper material according to the replacement instruction; and rendering the new target wallpaper material to the rendering interface.
The device of the above embodiment may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and are not repeated here.
An application keep-alive device provided in an embodiment of the present application includes: the operation module is used for operating a target widget associated with a target application program in the operating system; and the keep-alive module is used for keeping the target application program alive by an update instruction for updating the interface information of the target gadget, which is sent to the target application program by the operating system, so that the protection reliability of the application program can be improved to a certain extent, and the consumption of system resources can be reduced.
Fig. 4 is a schematic structural diagram of an application keep-alive device according to an embodiment of the application, as shown in fig. 4, where the application keep-alive device according to the embodiment may include: an operation module 21, configured to operate, in an operating system, a target gadget associated with a target application; and the keep-alive module 22 is configured to keep-alive the target application program by using an update instruction sent by the operating system to the target application program for updating the interface information of the target widget.
The device of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and its implementation principle and technical effects are similar, and are not described here again.
According to the device, the target gadget related to the target application program is operated in the operating system, and the updating instruction for updating the interface information of the target gadget is sent to the target application program by the operating system, because the operating system is used for updating the interface information of the target gadget, the target gadget is not easy to kill, the target gadget is related to the application program, and the target gadget process and the application program process are the same process, so that the target application program is not easy to kill, the reliability of the keep-alive target application program is improved, and in the process of keeping-alive the target application program, other applications are not involved in operation, and the system resource consumption is reduced to a certain extent.
As an alternative embodiment, the operation module includes: the first activation submodule is used for activating the target gadget according to a preset activation strategy so as to run the target gadget related to the target application program in the operating system; or, the second activation submodule is used for receiving an activation instruction which is sent by a user and activates the target small component; and activating the target gadget according to the activation instruction so as to run the target gadget associated with the target application program in the operating system.
As an optional implementation manner, the second activating sub-module is specifically configured to: sending prompt information to a user; the prompt message is used for prompting a user to activate the gadget; receiving an activation instruction sent by a user; the activation instruction is an instruction sent by a user according to the prompt information.
As an alternative embodiment, the apparatus further comprises: and the closing module is used for closing the small assembly.
As an alternative embodiment, the apparatus further comprises: and the updating module is used for transmitting the updated content to the gadget through the target application program and displaying the updated content on the interface of the gadget.
As an alternative embodiment, the apparatus further comprises: the detection module is used for detecting whether the target gadget is in an operation state or not through the preset time interval of the operating system; and the pulling-up module is used for pulling up the target gadget through a pulling-up instruction sent by the operating system to the target gadget if the target gadget is not in a running state.
The device of the above embodiment may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 4, may include: the processor 62 and the memory 63 are arranged on the circuit board 64, wherein the circuit board 64 is arranged in a space surrounded by the shell 61; a power supply circuit 65 for supplying power to the respective circuits or devices of the above-described electronic apparatus; the memory 63 is for storing executable program code; the processor 62 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 63, so as to implement any of the desktop wallpaper display method or the application keep-alive method provided in the foregoing embodiment, so that corresponding beneficial technical effects can be achieved.
Such electronic devices exist in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And (3) a server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction functions.
Accordingly, an embodiment of the present application further provides a computer readable storage medium, where one or more programs are stored, where the one or more programs may be executed by one or more processors, so as to implement any one of the desktop wallpaper display method or the application keep-alive method provided in the foregoing embodiment, so that corresponding technical effects can also be achieved, which has been described in detail above and will not be repeated herein.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
For convenience of description, the above apparatus is described as being functionally divided into various units/modules, respectively. Of course, the functions of the various elements/modules may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present application should be included in the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (20)

1. A desktop wallpaper display method, comprising:
receiving a setting instruction of desktop wallpaper;
Determining a target wallpaper material according to the setting instruction;
Calling a dynamic wallpaper service interface of a system;
starting a dynamic wallpaper service through the dynamic wallpaper service interface so that the dynamic wallpaper service provides a rendering interface; the dynamic wallpaper service is a service provided by a system;
And rendering the target wallpaper material to the rendering interface.
2. The method of claim 1, wherein the target wallpaper material comprises video.
3. The method of claim 2, wherein the rendering the target wallpaper material to the rendering interface comprises:
Analyzing the video data corresponding to the video through a player to obtain frame data of each video frame corresponding to the video data;
And sequentially rendering the frame data of each video frame to the rendering interface.
4. The method according to claim 1, wherein the method further comprises:
receiving a replacement instruction of replacing desktop wallpaper by a user;
determining a new target wallpaper material according to the replacement instruction;
and rendering the new target wallpaper material to the rendering interface.
5. An application keep-alive method, comprising:
Activating a target widget according to a preset activation strategy to run a target widget associated with a target application program in an operating system; or receiving an activation instruction which is sent by a user and activates the target small component; activating the target gadget according to the activation instruction so as to run the target gadget associated with the target application program in the operating system; the process of the target widget and the process of the target application program are the same process;
And maintaining the target application program by an updating instruction which is sent to the target application program by the operating system and used for updating the interface information of the target widget.
6. The method of claim 5, wherein receiving an activation instruction from a user to activate the target gadget comprises:
Sending prompt information to a user; the prompt message is used for prompting a user to activate the gadget;
Receiving an activation instruction sent by a user; the activation instruction is an instruction sent by a user according to the prompt information.
7. The method of claim 5, wherein the method further comprises:
Closing the gadget.
8. The method of claim 5, wherein the method further comprises:
And through the target application program, updating content sent to the small component and displaying the updating content on an interface of the small component.
9. The method of claim 5, wherein the method further comprises:
Detecting whether the target gadget is in an operating state or not through the preset time interval of the operating system;
and if the target gadget is not in the running state, pulling up the target gadget through a pulling-up instruction sent by the operating system to the target gadget.
10. A desktop wallpaper display device, comprising:
the receiving module is used for receiving a setting instruction of the desktop wallpaper;
The determining module is used for determining target wallpaper materials according to the setting instruction;
The starting module is used for starting the dynamic wallpaper service so that the dynamic wallpaper service provides a rendering interface; the starting module is specifically configured to: calling a dynamic wallpaper service interface of a system; starting the dynamic wallpaper service through the dynamic wallpaper service interface; the dynamic wallpaper service is a service provided by a system;
And the rendering module is used for rendering the target wallpaper material to the rendering interface.
11. The apparatus of claim 10, wherein the target wallpaper material comprises video.
12. The apparatus of claim 11, wherein the rendering module is specifically configured to:
Analyzing the video data corresponding to the video through a player to obtain frame data of each video frame corresponding to the video data;
And sequentially rendering the frame data of each video frame to the rendering interface.
13. The apparatus of claim 11, wherein the apparatus is further configured to:
receiving a replacement instruction of replacing desktop wallpaper by a user;
determining a new target wallpaper material according to the replacement instruction;
and rendering the new target wallpaper material to the rendering interface.
14. An application keep-alive device, comprising:
The operation module is used for operating a target widget associated with a target application program in the operating system; the operation module comprises: the first activation submodule is used for activating the target gadget according to a preset activation strategy so as to run the target gadget associated with the target application program in the operating system; or, the second activation submodule is used for receiving an activation instruction which is sent by a user and activates the target small component; activating the target gadget according to the activation instruction so as to run the target gadget associated with the target application program in the operating system; the process of the target widget is the same process as the process of the target application program;
And the keep-alive module is used for keeping the target application program alive by an update instruction which is sent to the target application program by the operating system and is used for updating the interface information of the target widget.
15. The apparatus of claim 14, wherein the second activation submodule is specifically configured to:
Sending prompt information to a user; the prompt message is used for prompting a user to activate the gadget;
Receiving an activation instruction sent by a user; the activation instruction is an instruction sent by a user according to the prompt information.
16. The apparatus of claim 14, wherein the apparatus further comprises:
and the closing module is used for closing the small assembly.
17. The apparatus of claim 14, wherein the apparatus further comprises:
and the updating module is used for transmitting the updated content to the gadget through the target application program and displaying the updated content on the interface of the gadget.
18. The apparatus of claim 14, wherein the apparatus further comprises:
The detection module is used for detecting whether the target gadget is in an operation state or not through the preset time interval of the operating system;
and the pulling-up module is used for pulling up the target gadget through a pulling-up instruction sent by the operating system to the target gadget if the target gadget is not in a running state.
19. An electronic device, the electronic device comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; a processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for executing the desktop wallpaper display method of any of the preceding claims 1-4 or the application keep-alive method of any of the claims 5-9.
20. A computer readable storage medium storing one or more programs executable by one or more processors to implement the desktop wallpaper display method of any of the preceding claims 1-4 or the application keep-alive method of any of the claims 5-9.
CN202111632468.9A 2021-12-28 2021-12-28 Desktop wallpaper display method and device, electronic equipment and readable storage medium Active CN114296854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111632468.9A CN114296854B (en) 2021-12-28 2021-12-28 Desktop wallpaper display method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111632468.9A CN114296854B (en) 2021-12-28 2021-12-28 Desktop wallpaper display method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114296854A CN114296854A (en) 2022-04-08
CN114296854B true CN114296854B (en) 2024-04-26

Family

ID=80971353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111632468.9A Active CN114296854B (en) 2021-12-28 2021-12-28 Desktop wallpaper display method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114296854B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278338B (en) * 2022-07-28 2023-09-19 广州市百果园信息技术有限公司 Video wallpaper processing method and device, equipment and medium thereof

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388472A (en) * 2018-10-25 2019-02-26 网易(杭州)网络有限公司 Wallpaper displaying method and device, electronic equipment
CN109725800A (en) * 2018-12-14 2019-05-07 Oppo广东移动通信有限公司 A kind of wallpaper setting method and device, terminal, storage medium
CN109992310A (en) * 2019-03-12 2019-07-09 中国平安财产保险股份有限公司 Application program keepalive method, device, computer equipment and storage medium
CN110209460A (en) * 2019-06-10 2019-09-06 Oppo广东移动通信有限公司 A kind of implementation method of dynamic wallpaper, device, storage medium and terminal
CN110377392A (en) * 2019-07-26 2019-10-25 珠海豹趣科技有限公司 Wallpaper displaying method and device
CN110990090A (en) * 2019-11-14 2020-04-10 上海掌门科技有限公司 Dynamic wallpaper display method, device and computer readable medium
CN111209065A (en) * 2019-12-31 2020-05-29 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
CN111240776A (en) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
CN111880879A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
CN112286652A (en) * 2020-09-17 2021-01-29 福州云联畅想软件科技有限公司 Android APP background keep-alive method
CN112579180A (en) * 2019-09-30 2021-03-30 奇安信科技集团股份有限公司 Application program keep-alive method and device
CN112799771A (en) * 2021-02-09 2021-05-14 珠海豹趣科技有限公司 Playing method and device of dynamic wallpaper, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206803A1 (en) * 2005-03-14 2006-09-14 Smith Jeffrey C Interactive desktop wallpaper system
US20100236159A1 (en) * 2008-04-18 2010-09-23 Magnum Magnetics Corporation Magnetic Wallpaper Systems
US9063776B2 (en) * 2011-05-27 2015-06-23 Microsoft Technology Licensing, Llc Application activation framework
US9747307B2 (en) * 2013-11-18 2017-08-29 Scott Kier Systems and methods for immersive backgrounds

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388472A (en) * 2018-10-25 2019-02-26 网易(杭州)网络有限公司 Wallpaper displaying method and device, electronic equipment
CN109725800A (en) * 2018-12-14 2019-05-07 Oppo广东移动通信有限公司 A kind of wallpaper setting method and device, terminal, storage medium
CN109992310A (en) * 2019-03-12 2019-07-09 中国平安财产保险股份有限公司 Application program keepalive method, device, computer equipment and storage medium
CN110209460A (en) * 2019-06-10 2019-09-06 Oppo广东移动通信有限公司 A kind of implementation method of dynamic wallpaper, device, storage medium and terminal
CN110377392A (en) * 2019-07-26 2019-10-25 珠海豹趣科技有限公司 Wallpaper displaying method and device
CN112579180A (en) * 2019-09-30 2021-03-30 奇安信科技集团股份有限公司 Application program keep-alive method and device
CN110990090A (en) * 2019-11-14 2020-04-10 上海掌门科技有限公司 Dynamic wallpaper display method, device and computer readable medium
CN111209065A (en) * 2019-12-31 2020-05-29 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
CN111240776A (en) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
CN111880879A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
CN112286652A (en) * 2020-09-17 2021-01-29 福州云联畅想软件科技有限公司 Android APP background keep-alive method
CN112799771A (en) * 2021-02-09 2021-05-14 珠海豹趣科技有限公司 Playing method and device of dynamic wallpaper, electronic equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
PMESI:一种优化进程私有数据访问的缓存一致性协议;王绍刚 等;《国防科技大学学报》;20130228;第35卷(第1期);97-102 *
Reusable Self-Adaptation through Bidirectional Programming;Kevin Colson et al;《2016 IEEE/ACM 11th International Symposium on Software Engineering for Adaptive and Self-Managing Systems (SEAMS)》;20170126;4-15 *
基于灰色关联分析和BIM技术的装修设计方案比选研究;王源佑;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》;20180215(第2期);C038-161 *
将系统时间嵌入桌面壁纸;罗勇;《软件指南》;20110430(第4期);38-38 *

Also Published As

Publication number Publication date
CN114296854A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
RU2689203C2 (en) Flexible circuit for adjusting language model
CN107636613B (en) Digital assistant extensibility to third party applications
KR100597670B1 (en) mobile communication terminal capable of reproducing and updating multimedia content, and method for reproducing the same
US20180373426A1 (en) Information Showing Method and Apparatus, and Electronic Device
CN106250182B (en) File processing method and device and electronic equipment
JP2014519632A (en) Customized launch of application
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
WO2018161811A1 (en) H5-based page displaying method and terminal
CN109842818A (en) A kind of video broadcasting method, device, computer equipment and storage medium
CN112241397B (en) Sharing method and device of multimedia files, electronic equipment and readable storage medium
CN108287647B (en) Application running method and device
US20190034039A1 (en) Notification field display method, device, and electronic apparatus
WO2020206691A1 (en) Application processing method and apparatus, storage medium, and electronic device
CN106873898B (en) Application program working mode switching method and device and electronic equipment
CN109582274B (en) Volume adjusting method and device, electronic equipment and computer readable storage medium
CN105700928A (en) Control information display method and device and electronic equipment
CN114296854B (en) Desktop wallpaper display method and device, electronic equipment and readable storage medium
EP3486823A1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN109753201A (en) A kind of method and device of the application display icon of customized vehicle-mounted desktop
CN104615432B (en) Splash screen information processing method and client
US20150350312A1 (en) Information processing method and electronic device
CN110162350B (en) Notification bar information display method, notification bar information display device, server and storage medium
JP5414003B2 (en) Electronics
US20170171266A1 (en) Method and electronic device based on android platform for multimedia resource play
JP2021056989A (en) Voice skill recommendation method, apparatus, device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant