CN117009020A - Wallpaper setting method and device, electronic equipment and readable storage medium - Google Patents

Wallpaper setting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117009020A
CN117009020A CN202310915727.1A CN202310915727A CN117009020A CN 117009020 A CN117009020 A CN 117009020A CN 202310915727 A CN202310915727 A CN 202310915727A CN 117009020 A CN117009020 A CN 117009020A
Authority
CN
China
Prior art keywords
wallpaper
target
interface
screen
image
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.)
Pending
Application number
CN202310915727.1A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310915727.1A priority Critical patent/CN117009020A/en
Publication of CN117009020A publication Critical patent/CN117009020A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a wallpaper setting method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The electronic device comprises at least two screens, and the method comprises the following steps: receiving a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: the desktop wallpaper setting option, the lock wallpaper setting option, the desktop wallpaper, and the lock wallpaper setting option, responsive to a first input, apply a target wallpaper image to a target wallpaper interface of a target screen that matches the target wallpaper setting option.

Description

Wallpaper setting method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a wallpaper setting method and device, electronic equipment and a readable storage medium.
Background
With the development of electronic information technology, electronic devices, such as smart phones, are increasingly popular in people's lives. To meet the different needs of users in different scenes, folding screen electronic devices have been developed. The folding screen electronic device generally has two forms of a folding state and an unfolding state, an outer screen works when folding, an inner screen works when unfolding, a user can use different forms according to different requirements in different scenes, for example, the folding screen electronic device can use the unfolding state in the scenes of life entertainment and the like so as to be convenient for reading documents, watching videos, playing games and the like, and the folding screen electronic device can use the folding state in the scenes of working office, going out to play, taking vehicles and the like so as to be convenient for storage, carrying, daily code scanning and the like.
At present, wallpaper setting processes of the folding screen electronic equipment are unified setting of an inner screen and an outer screen, and wallpaper display flexibility is poor.
Disclosure of Invention
The embodiment of the application aims to provide a wallpaper setting method, device, electronic equipment, readable storage medium, chip and program, which can solve the problem of poor wallpaper display flexibility of folding screen electronic equipment.
In a first aspect, an embodiment of the present application provides a wallpaper setting method, applied to an electronic device, where the electronic device includes at least two screens, the method includes:
receiving a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options;
in response to the first input, a target wallpaper image is applied to a target wallpaper interface of a target screen that matches the target wallpaper setting option.
In a second aspect, an embodiment of the present application provides a wallpaper setting device, applied to an electronic device, where the electronic device includes at least two screens, and the device includes:
The receiving module is used for receiving a first input of a target wallpaper setting option in a wallpaper setting interface of the target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options;
and a response module for applying the target wallpaper image to a target wallpaper interface of a target screen matching the target wallpaper setting option in response to the first input.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions to implement a method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement a method as in the first aspect.
In the embodiment of the application, a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image is received, the target wallpaper image is applied to the target wallpaper interface of a target screen matched with the target wallpaper setting option in response to the first input, and the wallpaper setting interface is used for displaying wallpaper setting options respectively corresponding to at least two screens and wallpaper setting options commonly corresponding to the at least two screens, wherein the wallpaper setting option comprises at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options, thus improving the flexibility of wallpaper display.
Drawings
FIG. 1 is a schematic flow chart of a paper setting method according to an embodiment of the present application;
FIG. 2 is a schematic view of a wallpaper setting interface of a target wallpaper image according to an embodiment of the application;
FIG. 3 is a schematic diagram of another wallpaper setting interface of a target wallpaper image according to an embodiment of the application;
FIG. 4 is a schematic view of yet another wallpaper setting interface of a target wallpaper image according to an embodiment of the application;
FIG. 5 is a schematic view of a wallpaper setting interface of another target wallpaper graphic according to an embodiment of the application;
FIG. 6 (a) is a schematic illustration of a lock screen wallpapers interface in a current screen provided by an embodiment of the present application;
FIG. 6 (b) is a schematic diagram of a desktop wallpaper interface in a current screen according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of creating target wallpaper identity data based on variable parameters according to an embodiment of the application;
FIG. 8 is a flowchart illustrating determining target wallpaper identity data according to an embodiment of the present application;
fig. 9 is a block diagram of a wallpaper setting device provided by an embodiment of the application;
FIG. 10 is a block diagram of an electronic device provided by an embodiment of the application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
Before describing the technical solution provided by the embodiments of the present application, in order to facilitate understanding of the embodiments of the present application, the present application firstly specifically describes the problems existing in the prior art:
as described above, the inventor of the present application found that, in the prior art, different wallpaper is not supported for the outer screen and the inner screen, and when the wallpaper is set, the wallpaper is uniformly set for the inner screen and the outer screen, so that the outer screen and the inner screen are always the same wallpaper, and the wallpaper display flexibility is poor. For example, if the outer screen is provided with wallpaper a, the wallpaper of the inner screen is also a, or if the inner screen is provided with wallpaper B, the wallpaper of the outer screen is also B. The inner and outer screens are always the same wallpaper, so that the inner and outer screens cannot be built for users, belong to different spaces, and can support the feeling of different emotion colors, so that the user experience is poor.
The wallpaper setting method, device, equipment, medium and program provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a wallpaper setting method according to an embodiment of the present application may be applied to an electronic device including at least two screens, as shown in fig. 1, and the method may include the following steps S11-S12.
S11, receiving a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock wallpaper setting options, desktop wallpaper, and lock wallpaper setting options.
In this embodiment, the electronic device includes, but is not limited to, an electronic device having a plurality of screens, such as a folding screen mobile phone, a folding screen tablet computer, and the like. In the actual running process of the electronic device, the screen in the lighting state in the multiple screens can be determined in real time, and the screen in the lighting state is determined to be the current screen, so that the wallpaper setting method provided by the embodiment of the application is executed for the current screen.
When the current screen is in a lighting state, a first application icon for setting screen wallpaper is displayed, wherein the first application icon is an icon of a first application, and the first application is an application capable of setting the screen wallpaper and comprises, but is not limited to, a theme application, an album and the like. The first application generally comprises a plurality of wallpaper images which can be used as wallpaper, and a user can select any one of the wallpaper images of the first application to set the wallpaper according to actual requirements, so that the selected image is used as a target wallpaper image, and when the target wallpaper image is set, a wallpaper setting interface of the target wallpaper image is displayed in a current screen.
As an example, the first application is a theme application, and the user may open the theme application in the first screen and view static wallpaper images and/or dynamic wallpaper images in the theme application, and the user selects any one wallpaper image from the wallpaper images as a target wallpaper image according to actual requirements to perform wallpaper setting, so that a wallpaper setting interface of the target wallpaper image is displayed in the target screen.
As another example, the first application is an album, and the user may open the album in the first screen and select any one of a still picture or a moving picture of the album for wallpaper setting according to actual requirements, thereby determining the picture as a target wallpaper image and displaying a wallpaper setting interface of the target wallpaper image in the target screen.
In this embodiment, the wallpaper setting interface is configured to display wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to at least two screens together, where the wallpaper setting options include at least one of the following: desktop wallpaper setting options, lock wallpaper setting options, desktop wallpaper, and lock wallpaper setting options.
As an example, the wallpaper setting options respectively corresponding to the at least two screens may include only the wallpaper setting option corresponding to the current screen, and thus, wallpaper applied only to the current screen may be set in the current screen.
For example, referring to fig. 2, a wallpaper device interface of a target wallpaper image is shown in fig. 2, where the wallpaper setting interface includes two screen options of "all screen" and "current screen", and three wallpaper setting options of "desktop", "lock screen" and "desktop and lock screen". The desktop is a desktop wallpaper setting option, the screen locking is a screen locking wall paper setting option, and the desktop and the screen locking are desktop wallpaper and screen locking wall paper setting options. And when the current screen is selected, the wallpaper setting option is the wallpaper setting option corresponding to the current screen.
As another example, wallpaper setting options corresponding to at least two screens respectively may be set for each screen respectively, so that wallpaper only applied to the current screen may be set in the current screen, and wallpaper only applied to any other screen may be set.
For example, referring to fig. 3, an interface schematic diagram of a wallpaper device for a target wallpaper image is shown in fig. 3, where the electronic device includes two screens of a first screen and a second screen, three screen options including "all screen", "first screen" and "second screen", and three wallpaper setting options including "desktop", "lock screen" and "desktop and lock screen" may be included in the wallpaper setting interface. In the case that the "all screen" is selected, the wallpaper setting option is the wallpaper setting option corresponding to at least two screens together, in the case that the "first screen" is selected, the wallpaper setting option is the wallpaper setting option corresponding to the first screen, and in the case that the "second screen" is selected, the wallpaper setting option is the wallpaper setting option corresponding to the second screen.
The target wallpaper setting option may be any wallpaper setting option selected in the wallpaper setting interface, and before receiving the first input of the target wallpaper setting option, the second input of the target screen option may be received first, so that the wallpaper setting option in the wallpaper setting interface is set as the wallpaper setting option corresponding to the screen of the target screen option, and then the first input of the target wallpaper setting option in the wallpaper setting option corresponding to the target screen of the target screen option is received, thereby completing the selection of the target wallpaper interface applied to the target screen.
The first input is an input for selecting a target wallpaper setting option, including but not limited to a single click input, a double click input, a slide input, a press input, and the like. The mode of the first input is not particularly limited in the embodiment of the present application, and any mode may be implemented.
S12, responding to the first input, and applying the target wallpaper image to a target wallpaper interface of a target screen matched with the target wallpaper setting option.
As one example, taking the wallpaper setting interface shown in fig. 2 as an example, in a case where the user inputs the second operation to the "current screen" and inputs the first operation to the "desktop", the target wallpaper image is applied to the desktop wallpaper desktop in the current screen; when the user inputs a second operation on the current screen and inputs a first input on the lock screen, the target wallpaper image is applied to a lock screen wallpaper interface in the current screen; in the case where the user inputs the second operation to the "current screen" and inputs the first input to the "desktop and lock screen", the target wallpaper image is applied to the desktop wallpaper interface and lock screen wallpaper interface in the current screen.
As another example, taking the wallpaper setting interface shown in fig. 3 as an example, in a case where the user inputs the second operation to the "first screen" and inputs the first operation to the "desktop", the target wallpaper image is applied to the desktop wallpaper desktop in the first screen; when the user inputs a second operation on the first screen and inputs a first operation on the lock screen, applying the target wallpaper image to the lock screen wallpaper table surface in the first screen; in the case where the user inputs the second operation to the "second screen" and inputs the first input to the "desktop and lock screen", the target wallpaper image is applied to the desktop wallpaper interface and lock screen wallpaper interface in the second screen.
Therefore, by the method, the target wallpaper image can be independently set as wallpaper of any wallpaper interface in any screen, and flexible setting of the wallpaper is realized.
According to the wallpaper setting method provided by the embodiment of the application, a first input of target wallpaper setting options in a wallpaper setting interface of a target wallpaper image is received, the target wallpaper image is applied to the target wallpaper interface of a target screen matched with the target wallpaper setting options in response to the first input, and the wallpaper setting interface is used for displaying at least two wallpaper setting options respectively corresponding to the at least two screens and wallpaper setting options commonly corresponding to the at least two screens, wherein the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options, thus improving the flexibility of wallpaper display.
In some embodiments, for some systems, the lock screen wallpaper interface may not support direct application of the target wallpaper image alone to the target screen. The wallpaper setting interface of this type of system, as shown generally in fig. 4, does not include a lock screen wallpaper setting option, and therefore cannot be directly applied to the lock screen wallpaper interface of the target screen alone, for this case, in order to be able to apply the target wallpaper image to the lock screen interface of the target screen alone, wallpaper setting may be performed in the following manner:
A user firstly selects a first image from a first application as a target wallpaper image, the first image is set to be simultaneously applied to a desktop wallpaper interface and a wallpaper image in a wall paper locking interface of a target screen according to the steps of S11-S12, then a second image which is different from the first image is selected from the first application as a new target wallpaper image, and then the second image is set to be independently applied to the wallpaper image of the desktop wallpaper interface in the target screen according to the steps of S11-S12.
For example, taking wallpaper setting based on the wallpaper setting interface shown in fig. 4 as an example, a user inputs a second input to the "current screen", and then inputs a first input to the "desktop and lock screen", so that the target wallpaper image shown in fig. 4 is simultaneously applied to the desktop wallpaper interface and lock screen wall paper interface of the current screen, further, the user selects another wallpaper image from the first application of the current screen as a new target wallpaper image, see fig. 5 for a wallpaper setting interface schematic diagram corresponding to the new target wallpaper image, the user inputs a second input to the "current screen" in fig. 5, and inputs a first input to the "desktop", so that the new target wallpaper image is applied to the desktop wallpaper interface in the current screen, and thus, the wallpaper image applied to the desktop wallpaper interface in the current screen is replaced by the original target wallpaper image, and the wallpaper image of the lock screen wall paper interface remains unchanged. Referring to fig. 6, fig. 6 (a) is a schematic diagram of a lock screen wallpaper interface in a current screen after wallpaper setting is completed, and fig. 6 (b) is a schematic diagram of a desktop wallpaper interface in the current screen after wallpaper setting is completed, so that it can be seen that the lock screen wallpaper interface and the desktop wallpaper interface display different wallpaper images.
In some embodiments, it may be supported that the target wallpaper image is applied directly to the lock screen wallpaper interface alone for some systems, and for such systems, a schematic diagram of the wallpaper setting interface may be as shown in fig. 2 and 3, wherein in addition to the two wallpaper setting options of "desktop" and "desktop and lock screen", the wallpaper setting option of "lock screen" is included, wherein "lock screen" is the lock screen wallpaper setting option.
Accordingly, for such a system, the user may directly perform the first input with the lock wallpaper setting option as the target wallpaper setting option in accordance with the steps of S11-S12, thereby directly applying the target wallpaper image to the lock wallpaper interface of the target screen.
In some embodiments, the electronic device employs an Android system that performs Wallpaper management with a Wallpaper service Wallpaper, based on which, in response to a first input, applying a target Wallpaper image to a target Wallpaper interface of a target screen that matches a target Wallpaper setting option, may include the steps of:
in response to the first input, creating target wallpaper identity data, and storing the target wallpaper image in association with the target wallpaper identity data;
Determining target wallpaper identity data matched with a target wallpaper interface from the wallpaper identity data of each wallpaper image;
and displaying the target wallpaper image stored in association with the target wallpaper identity data on the target wallpaper interface.
Wherein the Wallpaper service Wallpaper can be used to set dynamic Wallpaper and static Wallpaper.
The Wallpaper service Wallpaper displays the Wallpaper image mainly based on the wallpaperwindow token corresponding to the Wallpaper image, so that when the Wallpaper image is applied to a corresponding screen and a Wallpaper interface for any Wallpaper image, the wallpaperwindow token corresponding to the Wallpaper image, namely, wallpaper identity data, needs to be created first.
Before the wallpapertoken corresponding to the wallpaper image is created, the electronic device binds with the Wallpaper Service service process to create WallpaperConnection, namely wallpaper service connection, and after the WallpaperConnection is successfully pulled up, the wallpapertoken corresponding to the wallpaper image is created through a function onserviceconnection in the WallpaperConnection.
The wallpaper identity data corresponding to the wallpaper image is used for representing a screen and a wallpaper interface to which the wallpaper image is applied, one wallpaper identity data can correspond to one wallpaper interface in one screen, and if one wallpaper image is applied to at least two wallpaper interfaces in one screen, or wallpaper interfaces in different screens, a plurality of wallpaper identity data can be created for the wallpaper image.
In this embodiment, the target wallpaper image is stored in association with the target wallpaper identity data, so that association of the target wallpaper image with the target screen and the target wallpaper interface is achieved.
Because the electronic device comprises a plurality of screens, each screen comprises a lock screen wall paper interface and a desktop wallpaper interface, each wallpaper interface can be provided with a corresponding wallpaper image, the electronic device generally comprises a plurality of wallpaper identity data, each wallpaper identity data corresponds to one wallpaper image, the wallpaper images corresponding to different wallpaper identity data can be the same or different, based on the fact, when the target wallpaper image is applied to the target wallpaper interface in the target screen, the target wallpaper identity information matched with the target wallpaper interface in the target screen needs to be determined from the plurality of wallpaper identity data, and then the target wallpaper image stored in association with the target wallpaper identity data is displayed in the target wallpaper interface.
Further, in response to the first input, creating the target wallpaper identity data may further comprise:
creating target wallpaper data in response to the first input;
determining parameter values of variable parameters of the target wallpaper image based on the target wallpaper data; the parameter values of the variable parameters are used for indicating a target screen and a target wallpaper interface to which the target wallpaper image is applied;
And creating target wallpaper identity data based on the parameter values of the variable parameters.
The Wallpaper data may be WallpaperData, wallpaperData in the Wallpaper service for recording a binding relationship between the Wallpaper image and the screen, and between the Wallpaper image and the Wallpaper interface.
The wallpapertoken may be created based on the binding relationship recorded in the corresponding WallpaperData.
In response to the first input, creating the target wallpaper data may include: and responding to the first input, and updating the binding relation of the wallpaper data template, namely assigning a value to the attribute of the wallpaper data template, so that the target wallpaper data can record the wallpaper image corresponding to the target wallpaper interface in the target screen as the target wallpaper image.
Determining parameter values for variable parameters of the target wallpaper image based on the target wallpaper data may include: and determining parameter values of variable parameters of the target wallpaper image based on the binding relation in the target wallpaper data, wherein the parameter values of the variable parameters of the target wallpaper image are used for indicating a target screen and a target wallpaper interface to which the target wallpaper image is applied.
As an example, taking an electronic device as a folding screen electronic device including an inner screen and an outer screen, the variable parameter may include isSystem, isLock, isFolder, isLockAll, and the parameter value of the variable parameter is true/false. The system comprises a desktop wallpaper interface, an isSysteme, a desktop wallpaper interface and a display unit, wherein the isSysteme is used for indicating whether the wallpaper image is applied to the desktop wallpaper interface, and if the parameter value of the isSysteme is true, the wallpaper image is applied to the desktop wallpaper interface; the isLock is used for indicating whether the wallpaper image is applied to the lock screen wall paper interface, and for the external screen, if the parameter value of the isLock is true, the wall paper image is applied to the lock screen wall paper interface of the external screen; the isFolder is used for indicating whether the wallpaper image is only applied to the outer screen, if the parameter value of the isFolder is true, the wallpaper image is only applied to the outer screen, and if the parameter value of the isFolder is false, the wallpaper image can be applied to the outer screen or the inner screen; the isLockAll is used for indicating whether the wallpaper image is applied to the lock screen interface, and if the parameter value of the isLockAll is true, the wallpaper image is applied to the lock screen interface. When the parameter values of the variable parameters of the target wallpaper image are determined based on the target wallpaper data, each variable parameter can be assigned according to the binding relation of the target wallpaper data record, the assigned value can be true or false, and therefore the screen and the wallpaper interface to which the target wallpaper image is applied can be determined according to the assigned variable parameters.
Referring to fig. 7, when creating the target wallpaper identity data based on the parameter values of the variable parameters may comprise the steps of: S71-S75.
S71, creating a wallpaper identity data template.
The wallpaper identity data template may be a WallpaperWindowToken. Wallpaper identity data templates may be created by calling the wallpapepprconnection.onserviceconnection function.
S72, packaging parameter values of the variable parameters into a variable set of the wallpaper identity data template.
That is, the parameter values of the variable parameters are encapsulated into wallpapertoken.mmonations, which are a data structure used to transfer the parameter values of the variable parameters.
S73, adding the encapsulated wallpaper identity data template into a window management service.
The window management service may be windowmanager service.
S74, creating a wallpaper content drawing engine in a wallpaper service of the electronic equipment through a callback function, adding a wallpaper window in the wallpaper content drawing engine, and drawing a target wallpaper image in the wallpaper window.
The callback function can be an attach method, and the wallpaper window after drawing comprises wallpaper content of the target wallpaper image.
S75, adding the wallpaper window after drawing to the encapsulated wallpaper identity data template to obtain target wallpaper identity data.
Wherein the wallpaper window is added to the initial wallpaper identity data, which may facilitate the management of the wallpaper window.
After the wallpaper window is added into the target wallpaper identity data, when the target wallpaper interface needs to display the target wallpaper image stored in association with the target wallpaper identity data, the wallpaper window in the target wallpaper identity data can be displayed.
In the Android system, wallpaper windows are managed through a Windows ManagerService, the Windows ManagerService is called WMS service for short, a stack is used for organizing windows in the system in the WMS service, and one of functions of the Windows ManagerService service is to pay attention to whether the windows in the system need to display wallpaper or not at all times. Once the windowmanager service finds that a window needs wallpaper to be displayed, it adjusts the position of the wallpaper window to be displayed in the window stack so that it is placed below the window that needs wallpaper to be displayed. When the target wallpaper image is displayed in the target wallpaper interface, the wallpaper window in the target wallpaper identity data is placed below the window corresponding to the target wallpaper interface, so that the target wallpaper image can be displayed in the target wallpaper interface.
By the method, the target wallpaper identity data corresponding to the target wallpaper image can be obtained, so that the wallpaper service in the electronic equipment can apply the target wallpaper image to the target wallpaper interface of the target screen based on the target wallpaper identity data.
In some embodiments, the electronic device screen locking typically sets the screen locking Wallpaper with other screen locking services outside the wallpapers, based on which, in the case that the target Wallpaper image is applied to the screen locking Wallpaper interface, the following steps may be performed before creating the target Wallpaper data:
and unbinding the locked screen wallpapers service of the target screen.
After unbinding the lock screen Wallpaper service, the wallpapers are used for creating target Wallpaper data.
In some embodiments, in the conventional Wallpaper service, only one Wallpaper data is created for the same user account, and only one Wallpaper data can indicate a Wallpaper image corresponding to one Wallpaper interface. In view of this, in order to ensure that management of Wallpaper images of different Wallpaper interfaces in different screens can be realized based on the Wallpaper service, the thought of the multi-user account can be adopted, and the Wallpaper service corresponding to the virtual user account is abstracted, so that management of Wallpaper images of the multi-Wallpaper interface can be realized.
In response to the first input, creating the target Wallpaperdata wallpaper data may include:
in response to the first input, target wallpaper data is created based on wallpaper data corresponding to the virtual user account.
In this embodiment, according to the thought of multi-user account numbers, each wallpaper interface in each screen corresponds to a virtual user account number, and different wallpaper interfaces correspond to different virtual user account numbers, so that corresponding wallpaper data can be created for each virtual user account number, thereby implementing the creation of corresponding wallpaper data for each wallpaper interface of each screen.
For each wallpaper interface under the same actual user account, determining a virtual user account corresponding to the wallpaper interface based on the actual user account, and mapping wallpaper identity data corresponding to the virtual user account to wallpaper identity data corresponding to the wallpaper interface under the actual user account, so that certain association between the abstracted virtual user account and the actual user account can be ensured, and wallpaper management under the same actual user can be facilitated.
As an example, the electronic device is a folding screen electronic device including an inner screen and an outer screen, where the inner screen and the outer screen each include a desktop wallpaper interface and a lock screen wallpaper interface, if the real user account number, i.e., userID, is i, userid=i may be determined as a virtual user account number corresponding to the desktop wallpaper interface of the inner screen, userid=i+1000 may be determined as a virtual user account number corresponding to the desktop wallpaper interface of the outer screen, userid=i+2000 may be determined as a virtual user account number corresponding to the lock screen wallpaper interface of the inner screen, and userid=i+3000 may be determined as a virtual user account number corresponding to the lock screen wallpaper interface of the outer screen. That is, when the electronic device includes an inner screen and an outer screen, the inner screen desktop interface uses wallpaper data corresponding to the current user account, and the outer screen desktop interface, the outer screen lock screen interface and the inner screen lock screen interface use wallpaper data corresponding to the virtual user account expanded based on the actual user account.
And creating a corresponding wallpaper data template aiming at the target wallpaper image and aiming at a virtual user account corresponding to a target wallpaper interface of a target screen to which the target wallpaper image is applied, and assigning a value to the attribute of the wallpaper data template based on the target wallpaper image so as to obtain target wallpaper data.
By the method, different wallpaper interfaces of different screens are respectively abstracted into different virtual users under the same actual user, so that wallpaper data can be respectively created for each virtual user, wallpaper data can be respectively created for each wallpaper interface of each screen under the same actual user, and wallpaper image management of desktop wallpaper interfaces and lock screen wall paper interfaces in a plurality of screens can be realized based on wallpaper services.
In some embodiments, determining target wallpaper identity data matching the target wallpaper interface from the wallpaper identity data of each wallpaper image may include:
obtaining parameter values of variable parameters of each wallpaper image according to the wallpaper identity data of each wallpaper image;
and determining target wallpaper identity data matched with the target wallpaper interface based on parameter values of variable parameters of the wallpaper images.
In this embodiment, the target wallpaper identity data matched with the target wallpaper interface may be determined from the multiple wallpaper identity information in a traversal manner.
The determining, by using a traversal manner, target wallpaper identity data matched with the target wallpaper interface from the plurality of wallpaper identity information may include: traversing variable parameters in all wallpaper identity data of an actual user, respectively determining wallpaper identity data corresponding to each wallpaper interface of each screen in the electronic equipment, and then determining target wallpaper identity information corresponding to a target wallpaper interface of a target screen from the wallpaper identity data corresponding to each wallpaper interface of each screen.
As an example, taking an electronic device as a folding screen electronic device comprising an inner screen and an outer screen, referring to fig. 8, when determining the target wallpaper identity data, the following steps S81-S82 may be included.
S81, acquiring wallpaper identity data corresponding to all wallpaper images of an actual user.
As mentioned above, the virtual user account corresponding to the target wallpaper image is determined based on the actual user account, and has an association relationship with the actual user, so that all wallpaper images corresponding to all virtual user accounts created based on the same actual user account have an association relationship with the actual user account, that is, the actual user, and all wallpaper images belong to the actual user.
Wallpaper identity data corresponding to all wallpaper images under an actual user are wallpaper identity data corresponding to all virtual user accounts determined based on the actual user account, and can be represented by mWALLPAPERTONS, and m is the total number of wallpaper identity data under the actual user.
S82, traversing the wallpaper identity data corresponding to all wallpaper images under the actual user based on the variable parameters of the wallpaper identity data to obtain inner screen desktop wallpaper identity data, outer screen lock screen wall paper identity data and inner screen lock screen wall paper identity data.
Wherein, in traversing, firstly, initializing a variable i, wherein the variable i is used for traversing the mWALLPAPERTONS.
In the traversal process, the i-th WallpaperTokens currently traversed is marked as a wafer [ i ], and variable parameters isFolder, isLock, isSystem and isLockAl are extracted from WallpaperWindowToken.mOptions of the wafer [ i ].
For the token [ i ], if isFolder of the token [ i ] is true, the token [ i ] is indicated to be applied to the outer screen only, and if false, the token [ i ] is indicated to be applied to the inner screen or to be applied to the inner screen and the outer screen simultaneously.
If the token [ i ] is determined to be applied to the external screen based on the isFolder, then judging whether the token [ i ] is a desktop wallpaper interface applied to the external screen, namely judging whether the isSytem is true, if the isSytem is determined to be true, the token [ i ] is indicated to be applied to the desktop wallpaper interface of the external screen, and determining the token [ i ] as wallpaper identity data corresponding to the desktop wallpaper interface of the external screen.
And continuously judging whether the token [ i ] is the wall paper of the lock screen, namely judging whether the isLock is true, if the isLock is true, indicating that the token [ i ] is also applied to the wall paper interface of the lock screen of the external screen, and determining the token [ i ] as the wall paper identity data corresponding to the wall paper interface of the lock screen of the external screen.
If isFolder of the token [ i ] is false, determining that the token [ i ] is not independently applied to the external screen, but is possibly applied to the internal screen or is simultaneously applied to the internal screen and the external screen, at this time, further judging whether the token [ i ] is applied to the desktop wallpaper interface according to the isSystem, if the isSystemS is true, and determining the token [ i ] as wallpaper identity data corresponding to the desktop wallpaper interface of the internal screen when the isFolder of the token [ i ] is applied to the desktop wallpaper interface of the internal screen.
And continuously judging whether the isLockAll of the token [ i ] is true, if the isLockAll is true, indicating that the token [ i ] is applied to a lock screen wall paper interface of the inner screen or is simultaneously applied to the lock screen interface of the inner screen and the lock screen interface of the outer screen, and determining the token [ i ] as wallpaper identity data corresponding to the lock screen wall paper interface of the inner screen.
After the judgment on the token [ i ] is completed, i is added with 1, so that the next wallpaper identity data in the mWALLPAPERTONS is continuously traversed until all the wallpaper identity data in the mWALLPARTONS are traversed.
By the method, the wallpaper identity data corresponding to each wallpaper interface in each screen is determined, so that when the target wallpaper image is required to be displayed, the corresponding target wallpaper identity data can be determined rapidly.
In some embodiments, for some wallpaper interfaces, corresponding wallpaper identity data may not be determined through traversal, if the corresponding wallpaper identity data cannot be determined, the wallpaper interface is a black screen, and the user experience is poor.
And verifying the wallpaper identity data corresponding to each wallpaper interface to determine whether the wallpaper identity data corresponding to the wallpaper interface exists or not, and if not, determining the wallpaper identity data corresponding to the specified wallpaper interface of the specified screen as the wallpaper identity data corresponding to the wallpaper interface.
The specified wallpaper interface of the specified screen may be preset according to actual conditions, or a wallpaper interface with corresponding wallpaper identity data existing at any time may be determined as the specified wallpaper interface, and a screen to which the wallpaper interface belongs may be determined as the specified screen.
As an example, taking an electronic device as a folding screen electronic device including an inner screen and an outer screen as an example, after all wallpaper identity data in the mwallpapektons are traversed, checking the wallpaper identity data corresponding to the desktop wallpaper interface of the inner screen, the locked wall paper interface of the inner screen, the desktop wallpaper interface of the outer screen and the locked wall paper interface of the outer screen.
Based on priori knowledge, a user can set a wallpaper image for the desktop wallpaper interface of the inner screen, and therefore, the corresponding wallpaper identity data of the desktop wallpaper interface of the inner screen can be determined to be certainly present in the desktop wallpaper interface of the inner screen, and the corresponding wallpaper identity data of the desktop wallpaper interface of the inner screen can be used as the corresponding wallpaper identity data of the appointed wallpaper interface of the appointed screen. Based on this, when the verification is performed, the following steps may be included:
judging whether wallpaper identity data corresponding to a desktop wallpaper interface of the outer screen exists, if not, determining the wallpaper identity data corresponding to the desktop wallpaper interface of the inner screen as wallpaper identity data corresponding to the desktop wallpaper interface of the outer screen, and thus, the desktop wallpaper interface of the inner screen and the desktop wallpaper interface of the outer screen share the same wallpaper image.
Further judging whether wallpaper identity data corresponding to the locked wall paper interface of the inner screen exists, if not, determining the wallpaper identity data corresponding to the desktop wallpaper interface of the inner screen as wallpaper identity data corresponding to the locked wall paper interface of the inner screen, and thus, sharing the same wallpaper image by the desktop wallpaper interface of the inner screen and the locked wall paper interface of the inner screen.
Further judging whether wallpaper identity data corresponding to the locked wall paper interface of the outer screen exists, if not, determining the wallpaper identity data corresponding to the desktop wallpaper interface of the inner screen as wallpaper identity data corresponding to the locked wall paper interface of the outer screen, and thus, sharing the same wallpaper image by the desktop wallpaper interface of the inner screen and the locked wall paper interface of the outer screen.
By the method, the corresponding wallpaper identity data can be ensured to exist on each wallpaper interface of each screen, the condition that no wallpaper image is displayed on the wallpaper interface is avoided, and therefore user experience is improved.
In some embodiments, displaying the target wallpaper image stored in association with the target wallpaper identity data at the target wallpaper interface may include:
updating wallpaper associated data corresponding to the target wallpaper interface by utilizing the target wallpaper identity data;
And displaying the target wallpaper image stored in association with the target wallpaper identity data on the target wallpaper interface through the updated wallpaper associated data corresponding to the target wallpaper interface.
In this embodiment, one wallpaper associated data is set for each wallpaper interface, where the wallpaper associated data is used to record wallpaper identity data corresponding to the wallpaper interface, based on this, after determining the wallpaper identity data corresponding to the wallpaper interface from multiple wallpaper identity data, the determined wallpaper identity data may be used to update the wallpaper associated data, so that the wallpaper identity data corresponding to the wallpaper interface may be accurately determined according to the updated wallpaper associated data, and thus, a wallpaper image associated with the wallpaper identity data may be displayed on the wallpaper interface according to the wallpaper associated data.
As an example, taking an electronic device as a folding screen electronic device including an inner screen and an outer screen as an example, before traversing variable parameters in all wallpaper identity data of an actual user, a wallpapers array may be created first, where the wallpapers array includes wallpaper associated data mainwallpapers of a desktop wallpaper interface of the inner screen, wallpaper associated data autocalarywallpapers of the desktop wallpaper interface of the outer screen, wallpaper associated data mainlockwallpapers of a wall paper interface of the inner screen and wallpaper associated data autocilowallpapers of a wall paper interface of the outer screen, initializing each wallpaper associated data in the wallpapers array as a number, assigning a value to a wallpaper wallpapers if a number [ i ] is determined to be wallpaper identity data corresponding to a desktop wallpaper interface of the inner screen, assigning a value to a wallpaper [ i ] if a number [ i ] is determined to be corresponding to a desktop wallpaper interface of the outer screen, assigning a number of a number [ window [ i ] to a corresponding number of wallpaper interface if a number [ i ] is determined to be corresponding to a wall paper interface of the outer screen, and assigning a number to a number of corresponding number [ window [ i ] if a number [ i ] is determined to be corresponding to a number [ window i ] of wall papers [ i ] and the number of wall papers [ i ] is determined to be corresponding to the number [ window i ] and the number of wall i ] is determined to be corresponding to corresponding number. The wallpaper identity data corresponding to each wallpaper interface of each screen is recorded into the wallpapers array, so that the corresponding target wallpaper identity data can be selected from the wallpapers for display according to the two conditions by judging whether the target screen is an inner screen or an outer screen and determining whether the target wallpaper interface is a locked screen wall paper interface or a desktop wallpaper interface, and the rest wallpaper identity data is hidden.
By the mode, the wallpaper identity data corresponding to each screen and each wallpaper interface are convenient to manage.
According to the wallpaper setting method provided by the embodiment of the application, the execution main body can be a wallpaper setting device. In the embodiment of the present application, a method for executing wallpaper setting by using a wallpaper setting device is taken as an example, and the wallpaper setting device provided by the embodiment of the present application is described.
Referring to fig. 9, a schematic diagram of a wallpaper setting device according to an embodiment of the application, as shown in fig. 9, the device 900 may include the following modules:
a receiving module 901, configured to receive a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options;
a response module 902 for applying the target wallpaper image to a target wallpaper interface of a target screen matching the target wallpaper setting option in response to the first input.
In the embodiment of the application, a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image is received, the target wallpaper image is applied to the target wallpaper interface of a target screen matched with the target wallpaper setting option in response to the first input, and the wallpaper setting interface is used for displaying wallpaper setting options respectively corresponding to at least two screens and wallpaper setting options commonly corresponding to the at least two screens, wherein the wallpaper setting option comprises at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options, thus improving the flexibility of wallpaper display.
In some embodiments, the response module 902 includes:
the creation sub-module is used for responding to the first input, creating target wallpaper identity data and storing the target wallpaper image and the target wallpaper identity data in an associated mode;
the matching sub-module is used for determining target wallpaper identity data matched with the target wallpaper interface from the wallpaper identity data of each wallpaper image;
and the display sub-module is used for displaying the target wallpaper image stored in association with the target wallpaper identity data on the target wallpaper interface.
In some embodiments, creating the sub-module includes:
a first creation unit for creating target wallpaper data in response to a first input;
a parameter determination unit for determining a parameter value of a variable parameter of the target wallpaper image based on the target wallpaper data; the parameter values of the variable parameters are used for indicating a target screen and a target wallpaper interface to which the target wallpaper image is applied;
and the second creating unit is used for creating the target wallpaper identity data based on the parameter value of the variable parameter.
In some embodiments, the first creation unit is specifically configured to:
in response to the first input, target wallpaper data is created based on wallpaper data corresponding to the virtual user account.
In some embodiments, the matching sub-module comprises:
the parameter acquisition unit is used for acquiring parameter values of variable parameters of each wallpaper image according to the wallpaper identity data of each wallpaper image;
and the matching unit is used for determining target wallpaper identity data matched with the target wallpaper interface based on the parameter values of the variable parameters of each wallpaper image.
In some embodiments, the display submodule is specifically configured to:
updating wallpaper associated data corresponding to the target wallpaper interface by utilizing the target wallpaper identity data;
And displaying the target wallpaper image stored in association with the target wallpaper identity data on the target wallpaper interface through the updated wallpaper associated data corresponding to the target wallpaper interface.
The wallpaper setting device in the embodiment of the application can be electronic equipment or a component in the electronic equipment, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The wallpaper setting device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The wallpaper setting device provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 8, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 10, the embodiment of the present application further provides an electronic device 1000, including a processor 1001 and a memory 1002, where the memory 1002 stores a program or an instruction that can be executed on the processor 1001, and the program or the instruction implements each step of the embodiment of the wallpaper setting method when executed by the processor 1001, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1110 by a power management system, such as to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be arranged in different components, which are not described in detail herein.
Wherein the user input unit 1107 is configured to receive a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options;
processor 1110 is configured to apply, in response to a first input, a target wallpaper image to a target wallpaper interface of a target screen that matches a target wallpaper setting option.
In some embodiments, processor 1110 is to create target wallpaper identity data in response to a first input;
a memory 1109 for storing a target wallpaper image in association with target wallpaper identity data;
a processor 1110 for determining target wallpaper identity data matched with the target wallpaper interface from the wallpaper identity data of each wallpaper image;
and a display unit 1106, configured to display, on the target wallpaper interface, a target wallpaper image stored in association with the target wallpaper identity data.
In some embodiments, processor 1110 is to:
Creating target wallpaper data in response to the first input;
determining parameter values of variable parameters of the target wallpaper image based on the target wallpaper data; the parameter values of the variable parameters are used for indicating a target screen and a target wallpaper interface to which the target wallpaper image is applied;
target wallpaper identity data is created based on the variable parameters.
In some embodiments, processor 1110 is to:
in response to the first input, target wallpaper data is created based on wallpaper data corresponding to the virtual user account.
In some embodiments, processor 1110 is to:
obtaining parameter values of variable parameters of each wallpaper image according to the wallpaper identity data of each wallpaper image;
and determining target wallpaper identity data matched with the target wallpaper interface based on parameter values of variable parameters of the wallpaper images.
In some embodiments, processor 1110 is configured to update wallpaper associated data corresponding to a target wallpaper interface with target wallpaper identity data;
and the display unit 1106 is configured to display, on the target wallpaper interface, the target wallpaper image stored in association with the target wallpaper identity data according to the updated wallpaper associated data corresponding to the target wallpaper interface.
By receiving a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image, in response to the first input, applying the target wallpaper image to the target wallpaper interface of a target screen matched with the target wallpaper setting option, wherein the wallpaper setting interface is used for displaying at least two wallpaper setting options respectively corresponding to the screens and wallpaper setting options commonly corresponding to the at least two screens, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options, thus improving the flexibility of wallpaper display.
It should be appreciated that in embodiments of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, the graphics processor 11041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also referred to as a touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1109 may include volatile memory or nonvolatile memory, or the memory 1109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the wallpaper setting method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the wallpaper setting method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the wallpaper setting method embodiment described above, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, 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. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A wallpaper setting method, characterized by being applied to an electronic device, the electronic device comprising at least two screens, the method comprising:
receiving a first input of a target wallpaper setting option in a wallpaper setting interface of a target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to the at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options;
in response to the first input, the target wallpaper image is applied to a target wallpaper interface of a target screen that matches the target wallpaper setting option.
2. The method of claim 1, wherein the applying the target wallpaper image to a target wallpaper interface of a target screen that matches the target wallpaper setting option in response to the first input comprises:
creating target wallpaper identity data in response to the first input, and storing the target wallpaper image in association with the target wallpaper identity data;
Determining target wallpaper identity data matched with the target wallpaper interface from the wallpaper identity data of each wallpaper image;
and displaying the target wallpaper image stored in association with the target wallpaper identity data on the target wallpaper interface.
3. The method of claim 2, wherein the creating target wallpaper identity data in response to the first input comprises:
creating target wallpaper data in response to the first input;
determining a parameter value of a variable parameter of the target wallpaper image based on the target wallpaper data; the parameter values of the variable parameters are used for indicating a target screen and a target wallpaper interface to which the target wallpaper image is applied;
and creating the target wallpaper identity data based on the parameter value of the variable parameter.
4. A method according to claim 3, wherein said creating target wallpaper data in response to said first input comprises:
and responding to the first input, and creating the target wallpaper data based on the wallpaper data corresponding to the virtual user account.
5. A method according to claim 3, wherein said determining said target wallpaper identity data matching said target wallpaper interface from wallpaper identity data of respective wallpaper images comprises:
Obtaining parameter values of variable parameters of each wallpaper image according to the wallpaper identity data of each wallpaper image;
and determining the target wallpaper identity data matched with the target wallpaper interface based on parameter values of variable parameters of the wallpaper images.
6. The method of claim 2, wherein the displaying the target wallpaper image stored in association with the target wallpaper identity data at the target wallpaper interface comprises:
updating wallpaper associated data corresponding to the target wallpaper interface by utilizing the target wallpaper identity data;
and displaying the target wallpaper image stored in association with the target wallpaper identity data on the target wallpaper interface through the updated wallpaper associated data corresponding to the target wallpaper interface.
7. A wallpaper setting device, characterized by being applied to an electronic device, the electronic device comprising at least two screens, the device comprising:
the receiving module is used for receiving a first input of a target wallpaper setting option in a wallpaper setting interface of the target wallpaper image; the wallpaper setting interface is used for displaying wallpaper setting options corresponding to the at least two screens respectively and wallpaper setting options corresponding to the at least two screens together, and the wallpaper setting options comprise at least one of the following: desktop wallpaper setting options, lock screen wallpaper setting options, desktop wallpaper and lock screen wallpaper setting options;
And the response module is used for responding to the first input and applying the target wallpaper image to a target wallpaper interface of a target screen matched with the target wallpaper setting option.
8. The apparatus of claim 7, wherein the response module comprises:
the creation sub-module is used for responding to the first input, creating target wallpaper identity data and storing the target wallpaper image and the target wallpaper identity data in an associated mode;
the matching sub-module is used for determining target wallpaper identity data matched with the target wallpaper interface from the wallpaper identity data of each wallpaper image;
and the display sub-module is used for displaying the target wallpaper image which is stored in association with the target wallpaper identity data on the target wallpaper interface.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the wallpaper setting method according to any of claims 1-6.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the wallpaper setting method according to any of claims 1-6.
CN202310915727.1A 2023-07-25 2023-07-25 Wallpaper setting method and device, electronic equipment and readable storage medium Pending CN117009020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310915727.1A CN117009020A (en) 2023-07-25 2023-07-25 Wallpaper setting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310915727.1A CN117009020A (en) 2023-07-25 2023-07-25 Wallpaper setting method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117009020A true CN117009020A (en) 2023-11-07

Family

ID=88573847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310915727.1A Pending CN117009020A (en) 2023-07-25 2023-07-25 Wallpaper setting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117009020A (en)

Similar Documents

Publication Publication Date Title
CN102707870B (en) Method for providing background of locked screen and electronic device
CN108984707B (en) Method, device, terminal equipment and storage medium for sharing personal information
CN112230909A (en) Data binding method, device and equipment of small program and storage medium
CN112416485A (en) Information guiding method, device, terminal and storage medium
US20230326110A1 (en) Method, apparatus, device and media for publishing video
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN112734661A (en) Image processing method and device
CN115202524B (en) Display method and device
CN114679546A (en) Display method and device, electronic equipment and readable storage medium
CN115543176A (en) Information processing method and device and electronic equipment
CN115421631A (en) Interface display method and device
CN112367487B (en) Video recording method and electronic equipment
CN117009020A (en) Wallpaper setting method and device, electronic equipment and readable storage medium
CN114518821A (en) Application icon management method and device and electronic equipment
CN112732958A (en) Image display method and device and electronic equipment
CN112261483A (en) Video output method and device
CN117082056A (en) File sharing method and electronic equipment
CN116909446A (en) Display method and display device
CN116320660A (en) Note generation method, device, electronic equipment and readable storage medium
CN115774508A (en) Application component display method and device, electronic equipment and readable storage medium
CN116069429A (en) Application processing method, device, electronic equipment and medium
CN117274057A (en) Image stitching method and device
CN115037874A (en) Photographing method and device and electronic equipment
CN117331469A (en) Screen display method, device, electronic equipment and readable 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