CN107315603A - Screen saver creating method and device - Google Patents

Screen saver creating method and device Download PDF

Info

Publication number
CN107315603A
CN107315603A CN201710425950.2A CN201710425950A CN107315603A CN 107315603 A CN107315603 A CN 107315603A CN 201710425950 A CN201710425950 A CN 201710425950A CN 107315603 A CN107315603 A CN 107315603A
Authority
CN
China
Prior art keywords
creation
screen protection
creation mode
terminal
file
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
CN201710425950.2A
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710425950.2A priority Critical patent/CN107315603A/en
Publication of CN107315603A publication Critical patent/CN107315603A/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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a screen saver creating method and a screen saver creating device, wherein the method comprises the following steps: setting priorities for all creating modes in advance; starting from the highest priority, acquiring a target creation mode from all creation modes in sequence; establishing a screen saver for the terminal by using a target establishing mode; and if the target creation mode does not successfully create the screen saver, selecting the creation mode of the next stage as the target creation mode to continue to create the screen saver until the screen saver is successfully created or all the creation modes do not successfully create the screen saver. The screensaver creating method provided by the embodiment of the invention provides a plurality of creating modes for creating screensavers, creates screensavers according to the priority sequence of the corresponding creating modes until the screensavers are successfully created, realizes dynamic creation of screensavers, improves diversification of screensavers, and ensures response speed and stability of the screensavers.

Description

Screen protection creation method, device
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of screen protection creation method, device.
Background technology
User is in using terminal, and when the screen of terminal is in blank screen, user needs to light the screen of terminal first, this When can show screen protection state to user on the screen of terminal.Under screen protection state user can with next step such as unblock operate into Enter the application interface of terminal.
When user lights screen, terminal will trigger the logic of screen protection establishment, at present, mostly can using what is write in advance The code of extending mark language (Extensible Markup Language, abbreviation XML) form directly creates cloth for terminal Office interface.Due to after the establishment logic of screen protection is triggered, now going to create interface layout using xml code, often in the presence of one A little performance issues, for example, user may have new demand to screen protection, current xml code can not be realized, can only pass through XML The redaction of code meets the demand that user is new, then such as establishment duration it is longer the problems such as.
The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of screen protection creation method, to realize the dynamic creation of screen protection, The variation of screen protection is improved, demand renewal promptness is poor, create to exist when solving and being created in the prior art by xml code merely Build the performance issues such as duration is longer.
Second object of the present invention is to propose a kind of screen protection creating device.
Third object of the present invention is to propose a kind of electronic equipment.
Fourth object of the present invention is to propose a kind of computer program product.
The 5th purpose of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
For up to above-mentioned purpose, first aspect present invention embodiment proposes a kind of screen protection creation method, including:It is in advance institute There is creation mode that priority is set;Since limit priority, target creation mode is sequentially obtained in all creation modes;Utilize The target creation mode is that terminal creates screen protection;If the target creation mode creates screen protection not successfully, select next Level creation mode as target creation mode continue create screen protection, until screen protection create successfully or all creation modes not Untill successfully creating screen protection.
According to one embodiment of present invention, all creation modes at least include creating by the first file obtained from high in the clouds Build the first creation mode of screen protection, by from local the second creation mode for obtaining the second built-in document creation screen protection and logical Cross the 3rd creation mode of the code establishing screen protection write;First file and second file include creating for terminal The establishment logic of screen protection;Wherein, the priority of first creation mode is higher than the priority of second creation mode, described The priority of second creation mode is higher than the priority of the 3rd creation mode.
According to one embodiment of present invention, it is described since limit priority, sequentially obtain mesh in all creation modes Creation mode is marked, including:Since limit priority, first creation mode is selected to be used as the target creation mode;Sentence The high in the clouds break with the presence or absence of first file;If it is judged that there is first file in the high in the clouds, then from the cloud Download first file in end;Described is that the terminal creates screen protection using the target creation mode, including:Perform described Establishment logic in one file, is that the terminal creates layout interface, generates the screen protection of the terminal.
According to one embodiment of present invention, after first file from high in the clouds download, in addition to:According to Default first store path stores first file into the local memory of the terminal.
According to one embodiment of present invention, the limit priority starts, and selects first creation mode to be used as institute Before stating target creation mode, in addition to:It is determined that being opened for allowing the first switch using first creation mode to be in State.
According to one embodiment of present invention, the establishment logic performed in first file, is the terminal wound Layout interface is built, before the screen protection for generating the terminal, in addition to:It is determined that at second switch for deleting first file In closed mode.
According to one embodiment of present invention, in addition to:If it is judged that the high in the clouds be not present first file or The first creation mode creates screen protection not successfully described in person, then selects the second creation mode of next stage as target establishment mould Formula;Described is that the terminal creates screen protection using the target creation mode, including:
Second file under second creation mode is obtained according to the second store path;Perform second file In establishment logic, be that the terminal creates layout interface, generate the screen protection of the terminal.
According to one embodiment of present invention, in addition to:If second creation mode creates screen protection not successfully, select The 3rd creation mode of next stage is selected as the target creation mode;Described is the terminal using the target creation mode Screen protection is created, including:The code write in the 3rd creation mode is performed, is that the terminal creates layout interface, generates institute State the screen protection of terminal.
According to one embodiment of present invention, it is described since limit priority, sequentially obtain mesh in all creation modes Before mark creation mode, in addition to:The operation that detection user performs to the terminal;In the event of the target for being used to light screen Operation, it is determined that generate the trigger event that screen protection is created for the terminal.
The screen protection creation method of the embodiment of the present invention, by being that all creation modes set priority in advance, and from highest Priority starts, and target creation mode is sequentially obtained in all creation modes, and created for terminal using target creation mode Screen protection, and target creation mode for successfully create screen protection when, select next stage creation mode as target creation mode after Continuous to create screen protection, until screen protection is created successfully or all creation modes are not successfully untill establishment screen protection, thus there is provided a variety of The creation mode of screen protection is created, and screen protection is created according to the priority orders of correspondence creation mode, until screen protection is created successfully, it is real The dynamic creation of existing screen protection, improves the variation of screen protection, it is ensured that the response speed and stability of screen protection.
For up to above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of screen protection creating device, including:Default mould Block, for being that all creation modes set priority in advance;Acquisition module, for since limit priority, sequentially institute to be invasive Target creation mode is obtained in modeling formula;Creation module, for being that terminal creates screen protection using the target creation mode;Gravity treatment Module, if creating screen protection not successfully for the target creation mode, the creation mode of selection next stage is created as target Modeling formula continue create screen protection, until screen protection creates successfully or all creation modes not successfully establishment screen protection untill.
According to one embodiment of present invention, all creation modes at least include creating by the first file obtained from high in the clouds Build the first creation mode of screen protection, by from local the second creation mode for obtaining the second built-in document creation screen protection and logical Cross the 3rd creation mode of the code establishing screen protection write;First file and second file include creating for terminal The establishment logic of screen protection;Wherein, the priority of first creation mode is higher than the priority of second creation mode, described The priority of second creation mode is higher than the priority of the 3rd creation mode.
According to one embodiment of present invention, the acquisition module, including:Selecting unit, for being opened from limit priority Begin, select first creation mode to be used as the target creation mode;Judging unit, for judging that the high in the clouds whether there is First file;Download unit, for if it is judged that the high in the clouds has first file, then from high in the clouds download First file;The creation module, specifically for:The establishment logic in first file is performed, is the terminal wound Layout interface is built, the screen protection of the terminal is generated.
According to one embodiment of present invention, the acquisition module, in addition to:Member is preserved, under the high in the clouds Carry after first file, store first file to the local interior of the terminal according to default first store path In depositing.
According to one embodiment of present invention, the acquisition module, in addition to:First determining unit, for from highest Priority starts, before selecting first creation mode as the target creation mode, it is determined that for allowing using described The first switch of first creation mode is in opening.
According to one embodiment of present invention, the acquisition module, in addition to:Second determining unit, for performing institute The establishment logic in the first file is stated, is that the terminal creates layout interface, before the screen protection for generating the terminal, it is determined that being used for The second switch for deleting first file is closed.
According to one embodiment of present invention, the gravity treatment module, specifically for if it is judged that the high in the clouds is not present First file or first creation mode create screen protection not successfully, then select the second creation mode conduct of next stage The target creation mode;The creation module, specifically for:Obtained according to the second store path under second creation mode Second file;The establishment logic in second file is performed, is that the terminal creates layout interface, generates the end The screen protection at end.
According to one embodiment of present invention, the gravity treatment module, specifically for:If second creation mode not into Work(creates screen protection, then selects the 3rd creation mode of next stage to be used as the target creation mode;The creation module is specific to use In:The code write in the 3rd creation mode is performed, is that the terminal creates layout interface, generates the screen of the terminal Protect.
According to one embodiment of present invention, described device also includes:Detection module, for being opened from limit priority Begin, sequentially obtained in all creation modes before target creation mode, detect the operation that user performs to the terminal;Triggering is true Cover half block, for when occurring to be used to light the object run of screen, it is determined that generating the triggering that screen protection is created for the terminal Event.
The screen protection creating device of the embodiment of the present invention, by being that all creation modes set priority in advance, and from highest Priority starts, and target creation mode is sequentially obtained in all creation modes, and created for terminal using target creation mode Screen protection, and target creation mode for successfully create screen protection when, select next stage creation mode as target creation mode after Continuous to create screen protection, until screen protection is created successfully or all creation modes are not successfully untill establishment screen protection, thus there is provided a variety of The creation mode of screen protection is created, and screen protection is created according to the priority orders of correspondence creation mode, until screen protection is created successfully, it is real The dynamic creation of existing screen protection, improves the variation of screen protection, it is ensured that the response speed and stability of screen protection.
For up to above-mentioned purpose, third aspect present invention embodiment proposes a kind of electronic equipment, including:Including housing, place Device, memory, circuit board and power circuit are managed, wherein, circuit board is placed in the interior volume that housing is surrounded, processor and storage Device is set on circuit boards;Power circuit, for being powered for each circuit or device of above-mentioned electronic equipment;Memory is used to deposit Store up executable program code;The executable program code that processor is stored by reading in memory is run and executable program The corresponding program of code, the screen protection creation method for performing first aspect present invention embodiment.
The electronic equipment of the embodiment of the present invention, by being that all creation modes set priority in advance, and it is preferential from highest Level starts, and target creation mode is sequentially obtained in all creation modes, and utilizes target creation mode to be that terminal creates screen protection, And in target creation mode for when successfully creating screen protection, the creation mode of selection next stage continues to create as target creation mode Screen protection, until screen protection create successfully or all creation modes not successfully create screen protection untill, thus there is provided it is a variety of create screen The creation mode of guarantor, and screen protection is created according to the priority orders of correspondence creation mode, until screen protection is created successfully, realize screen protection Dynamic creation, improve screen protection variation, it is ensured that the response speed and stability of screen protection.
For up to above-mentioned purpose, fourth aspect present invention embodiment proposes a kind of computer program product, calculated when described Instruction in machine program product by computing device when, perform the screen protection creation method as described in first aspect embodiment.
For up to above-mentioned purpose, fifth aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter, is stored thereon with computer program, is realized when computer program is executed by processor as described in first aspect embodiment Screen protection creation method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is a kind of schematic flow sheet of screen protection creation method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another screen protection creation method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another screen protection creation method provided in an embodiment of the present invention;
Fig. 4 is intended to for a kind of structure of screen protection creating device provided in an embodiment of the present invention;
Fig. 5 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention;
Fig. 6 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention;
Fig. 7 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention;
Fig. 8 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention;
Fig. 9 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention;
Figure 10 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings screen protection creation method, device and the electronic equipment of the embodiment of the present invention described.
Fig. 1 is a kind of schematic flow sheet of screen protection creation method provided in an embodiment of the present invention.The embodiment of the present invention is held Row main body is terminal, and terminal can be the hardware that smart mobile phone, tablet personal computer, personal digital assistant etc. have various operating systems Equipment.
As shown in figure 1, the screen protection creation method comprises the following steps:
S101, sets priority for all creation modes in advance.
In this embodiment, all creation modes prestored in terminal are a variety of, and every kind of creation mode can be terminal Screen protection is created, and terminal can preset corresponding priority for every kind of creation mode in advance.
For example, it is assumed that all creation modes include the first wound of the first document creation screen protection by being obtained from high in the clouds Modeling formula, by obtaining the second creation mode of the second built-in document creation screen protection from local, and pre-set the first establishment The priority of pattern is higher than the priority of the second creation mode.
In another example, all creation modes can include the first establishment of the first document creation screen protection by being obtained from high in the clouds Pattern, by the 3rd creation mode of the code establishing screen protection write, and the default priority for setting the first creation mode is higher than The priority of 3rd creation mode.
In another example, all creation modes can include the first establishment of the first document creation screen protection by being obtained from high in the clouds Pattern, pass through from local the second creation mode for obtaining the second built-in document creation screen protection and the code establishing by writing 3rd creation mode of screen protection, and the priority that the priority of the first creation mode is higher than the second creation mode is pre-set, the The priority of two creation modes is higher than the priority of the 3rd creation mode.
, wherein it is desired to understand, in order to subsequently create screen protection for terminal, the first file and the second file are including being Terminal creates the establishment logic of screen protection.
In one embodiment of the invention, the first file and the second file can be exemplary as one kind with arbitrary format Embodiment, the first file and the second file can be the file of JSON forms.
Wherein, the file of JSON forms, which has, reads and writes, the characteristics of being also easy to machine parsing and generate, therefore, The efficiency of terminal layout interface can be improved by the first file or the second file of JSON forms in the embodiment, and improved Generate the efficiency of terminal screen protection.
S102, since limit priority, sequentially obtains target creation mode in all creation modes.
S103, is that terminal creates screen protection using target creation mode.
S104, if target creation mode creates screen protection not successfully, the creation mode of selection next stage is created as target Modeling formula continue create screen protection, until screen protection creates successfully or all creation modes not successfully establishment screen protection untill.
For example, it is assumed that first that the first document creation screen protection obtained from high in the clouds was pre-saved in terminal creates mould Formula, by the 3rd creation mode of the code establishing screen protection write, and the default priority for setting the first creation mode is higher than the The priority of three creation modes, when needing to create screen protection for terminal, may be selected the first creation mode as target creation mode, And judge that high in the clouds whether there is the first file, if judging there is the first file in high in the clouds, from first the first file of file download, And the establishment logic in the first file is performed, it is that terminal creates layout interface, generates the screen protection of terminal.If judging in high in the clouds not In the presence of the first file, then layout interface is created for terminal by the 3rd creation mode of the code establishing screen protection write, generation is eventually The screen protection at end.
The screen protection creation method of the embodiment of the present invention, by being that all creation modes set priority in advance, and from highest Priority starts, and target creation mode is sequentially obtained in all creation modes, and created for terminal using target creation mode Screen protection, and target creation mode for successfully create screen protection when, select next stage creation mode as target creation mode after Continuous to create screen protection, until screen protection is created successfully or all creation modes are not successfully untill establishment screen protection, thus there is provided a variety of The creation mode of screen protection is created, and screen protection is created according to the priority orders of correspondence creation mode, until screen protection is created successfully, it is real The dynamic creation of existing screen protection, improves the variation of screen protection, it is ensured that the response speed and stability of screen protection.
Fig. 2 is the schematic flow sheet of another screen protection creation method provided in an embodiment of the present invention.The embodiment of the present invention Executive agent is terminal, and terminal can be that smart mobile phone, tablet personal computer, personal digital assistant etc. have the hard of various operating systems Part equipment.
, wherein it is desired to which explanation, the embodiment includes the first file by being obtained from high in the clouds with all creation modes Create the first creation mode of screen protection, by from local the second creation mode for obtaining the second built-in document creation screen protection and It is described exemplified by the 3rd creation mode by the code establishing screen protection write.
As shown in Fig. 2 the screen protection creation method comprises the following steps:
S201, sets priority for all creation modes in advance.
In this embodiment, terminal is set by the first creation mode, the second creation mode and the 3rd creation mode in advance The precedence information put can be:The priority of first creation mode is higher than the priority of the second creation mode, and second creates mould The priority of formula is higher than the priority of the 3rd creation mode.
Wherein, the first file and the second file include the establishment logic that screen protection is created for terminal.
S202, since limit priority, the first creation mode of selection is used as target creation mode.
In one embodiment of the invention, before step S202 is performed, it can also determine to be used to allow to use first Whether the first switch of creation mode is in opening, if it is determined that for allowing the first switch using the first creation mode In opening, then the first creation mode is selected as target creation mode.
In addition, if determining that user allows the first switch using the first creation mode to be closed, then under selecting Second creation mode of one-level is used as target creation mode.
S203, judges that high in the clouds whether there is the first file, if it is judged that high in the clouds has the first file, then performs step S204-S205, otherwise, performs step S206-S208.
S204, the first file is downloaded from high in the clouds.
In one embodiment of the invention, after the first file is downloaded from high in the clouds, it can also be deposited according to default first Store up path to store the first file into the local memory of terminal, so that facilitate subsequently can be literary directly according to preserve in terminal first Establishment logic in part creates terminal screen protection.
Wherein, the first store path can be that the store path given tacit consent in terminal or user's request are pre-set Store path.
For example, it is assumed that user sets the first store path to be /data/data/com.cleanmaster.mguard/ File/URL, then when judging that high in the clouds preserves the first file, can preserve the URL of the first file by service processes from high in the clouds (Uniform Resoure Locator:Uniform resource locator) download the first file in address, and by the downloaded first text Part is stored in/data/data/com.cleanmaster.mguard/file/URL catalogues under.
S205, performs the establishment logic in the first file, is that terminal creates layout interface, generates the screen protection of terminal.
Generally, for the occupancy of the local memory that reduces terminal, terminal can be by the first file being stored in local memory It is automatically deleted, in this embodiment, can pre-sets in the terminal for deleting the second switch of the first file, and pass through second The state of switch determines whether terminal is automatic and deletes the first file.
In one embodiment of the invention, before step S205 is performed, this method can also determine to be used to delete the Whether the second switch of one file is closed, if it is determined that be in closing shape for deleting the second switch of the first file State, then perform the establishment logic in the first file, is that terminal creates layout interface, generates the screen protection of terminal.
For example, it is assumed that terminal is smart mobile phone, it is closed for deleting the second switch of the first file. Smart mobile phone obtains the first file from high in the clouds, and in/data/data/com.cleanmaster.mguard/file/URL catalogues The first file of lower preservation, because the second switch for deleting the first file is closed, now, it may be determined that first in terminal File is not deleted, and the screen protection of establishment logic generation smart mobile phone that can be in the first file.When being again intelligent hand When machine generates screen protection, smart mobile phone is closed can determine that smart mobile phone by the second switch for deleting the first file Middle the first preserved file is not deleted, now, and smart mobile phone can obtain the first file under corresponding catalogue, and hold Establishment logic in the file of row first, is that smart mobile phone creates layout interface, the screen protection of smart mobile phone is generated, as a result, intelligence Energy mobile phone can generate the screen of smart mobile phone without downloading the first file from high in the clouds again by the first file in smart mobile phone Protect, the efficiency that smart mobile phone generates and shows screen protection can be improved, the screen protection response efficiency of smart mobile phone is improved, improve user Experience Degree.
In one embodiment of the invention, if creating screen protection not successfully according to the first creation mode, step is performed S206-S208, to create the screen protection of terminal by the second creation mode.
S206, the second creation mode of selection next stage is used as target creation mode.
S207, the second file under the second creation mode is obtained according to the second store path.
Wherein, the store path that it can be default setting in terminal that the second store path, which is, can also be user according to need Seek the store path of setting.
S208, performs the establishment logic in the second file, is that terminal creates layout interface, generates the screen protection of terminal.
For example, it is assumed that the second store path is /data/data/com.cleanmaster.mguard/assets, in choosing , can be from/data/data/com.cleanmaster.mguard/assets when selecting the second creation mode establishment target creation mode The second file, and the establishment logic in the second file are obtained under catalogue, is that terminal creates layout interface, generates the screen of terminal Protect.
In one embodiment of the invention, if the second creation mode creates screen protection not successfully, selection next stage 3rd creation mode performs the code write in the 3rd creation mode as target creation mode, is that terminal creates layout circle Face, generates the screen protection of terminal.
The screen protection creation method of the embodiment of the present invention, by being the first creation mode, the second creation mode and the 3rd in advance Creation mode sets priority, and is that terminal creates screen protection using the first creation mode, and judging since limit priority When going out high in the clouds and creating screen protection not successfully in the absence of the first file or the first creation mode, the second creation mode of selection is terminal wound Screen protection is built, and is that terminal creates screen protection by the 3rd creation mode when the second creation mode creates the screen protection of terminal not successfully, Thus there is provided the creation mode of a variety of establishment screen protections, and screen protection is created according to the priority orders of correspondence creation mode, until screen Guarantor creates successfully, realizes the dynamic creation of screen protection, improves the variation of screen protection, it is ensured that the response speed and stability of screen protection.
Fig. 3 is the schematic flow sheet of another screen protection creation method provided in an embodiment of the present invention.The embodiment of the present invention Executive agent is terminal, and terminal can be that smart mobile phone, tablet personal computer, personal digital assistant etc. have the hard of various operating systems Part equipment.
, wherein it is desired to which explanation, the embodiment includes the first file by being obtained from high in the clouds with all creation modes Create the first creation mode of screen protection, by from local the second creation mode for obtaining the second built-in document creation screen protection and It is described exemplified by the 3rd creation mode by the code establishing screen protection write.
As shown in figure 3, the screen protection creation method comprises the following steps:
S301, sets priority for all creation modes in advance.
In this embodiment it is assumed that terminal is the first creation mode, the second creation mode and the 3rd creation mode in advance Set precedence information is:The priority of first creation mode is higher than the priority of the second creation mode, and second creates mould The priority of formula is higher than the priority of the 3rd creation mode.
Wherein, the first file and the second file include the establishment logic that screen protection is created for terminal.
S302, the operation that detection user performs to terminal.
S303, in the event of the object run for being used to light screen, it is determined that generate the triggering that screen protection is created for terminal Event.
Wherein, the object run for lighting screen is the default operation set in terminal.
Wherein, the object run for lighting screen can include but is not limited to the corresponding button of clicking point bright screen curtain for example The operations such as power key, click terminal screen, double-click terminal screen.
For example, it is assumed that terminal is smart mobile phone, the operation of screen is lighted to double-click the screen of smart mobile phone, in user Intelligence be in blank screen lock-out state when, if smart mobile phone monitor user perform double-click smart mobile phone screen operation, Judge whether the screensaver functions of smart mobile phone are in opening, if the screensaver functions of smart mobile phone are in opening, It is determined that generating the trigger event that screen protection is created for smart mobile phone.In addition, if the screensaver functions of smart mobile phone, which are in, closes shape State, then need not create screen protection for smart mobile phone.
S304, since limit priority, the first creation mode of selection is used as target creation mode.
S305, judges for allowing whether the first switch using the first creation mode is in opening, if it is determined that It is to be in opening to go out for allowing using the first switch of the first creation mode, then performs step S306, otherwise terminate.
S306, judges that high in the clouds whether there is the first file, if it is judged that high in the clouds has the first file, then performs step S307-S309, otherwise, performs step S311-S312.
S307, the first file is downloaded from high in the clouds.
S308, stores the first file into the local memory of terminal according to default first store path.
S309, it is determined that whether being closed for the second switch for deleting the first file, if it is determined that for deleting The second switch of first file is closed, then performs step S310, otherwise performs step S311-S312.
S310, performs the establishment logic in the first file, is that terminal creates layout interface, generates the screen protection of terminal.
S311, the second creation mode of selection next stage is used as target creation mode.
S312, judges the second file under the second creation mode whether is preserved under the second store path, if it is judged that the The second file under the second creation mode is preserved under two store paths, then performs step S313-S314, otherwise, otherwise performs S315-S316。
S313, the second file under the second creation mode is obtained according to the second store path.
Wherein, the store path that it can be default setting in terminal that the second store path, which is, can also be user according to need Seek the store path of setting.
S314, performs the establishment logic in the second file, is that terminal creates layout interface, generates the screen protection of terminal.
For example, it is assumed that the second store path is /data/data/com.cleanmaster.mguard/assets, in choosing , can be from/data/data/com.cleanmaster.mguard/assets when selecting the second creation mode establishment target creation mode The second file, and the establishment logic in the second file are obtained under catalogue, is that terminal creates layout interface, generates the screen of terminal Protect.
S315, the 3rd creation mode of selection next stage is used as target creation mode.
S316, performs the code write in the 3rd creation mode, is that terminal creates layout interface, generates the screen protection of terminal.
The screen protection creation method of the embodiment of the present invention, by being the first creation mode, the second creation mode and the 3rd in advance Creation mode sets priority, and when receiving operation of the user for lighting screen, shields it is determined that generating and being created for terminal The trigger event of guarantor, is that terminal creates screen protection using the first creation mode, and judging high in the clouds not since limit priority When creating screen protection not successfully in the presence of the first file or the first creation mode, the second creation mode of selection is that terminal creates screen protection, And when the second creation mode creates the screen protection of terminal not successfully, be that terminal creates screen protection by the 3rd creation mode, thus, carry Screen protection is created for the creation mode of a variety of establishment screen protections, and according to the priority orders of correspondence creation mode, until screen protection is created Success, realizes the dynamic creation of screen protection, improves the variation of screen protection, it is ensured that the response speed and stability of screen protection.
In order to realize above-described embodiment, the present invention also proposes a kind of screen protection creating device.
Fig. 4 is intended to for a kind of structure of screen protection creating device provided in an embodiment of the present invention.
As shown in figure 4, the screen protection creating device can include presetting module 110, acquisition module 120, the and of creation module 130 Gravity treatment module 140, wherein:
Presetting module 110 is used to set priority in advance for all creation modes.
Wherein, all creation modes at least include the first establishment mould of the first document creation screen protection by being obtained from high in the clouds Formula, pass through from local the second creation mode for obtaining the second built-in document creation screen protection and the code establishing screen by writing The 3rd creation mode protected.
Wherein, the first file and the second file include the establishment logic that screen protection is created for terminal.
Wherein, the priority of the first creation mode be higher than the second creation mode priority, the second creation mode it is preferential Level is higher than the priority of the 3rd creation mode.
Acquisition module 120 is used for since limit priority, and target creation mode is sequentially obtained in all creation modes.
It is that terminal creates screen protection that creation module 130, which is used for using target creation mode,.
If gravity treatment module 140 creates screen protection not successfully for target creation mode, the creation mode of next stage is selected Continue to create screen protection as target creation mode, until screen protection is created successfully or all creation modes create screen protection not successfully Untill.
Fig. 5 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention, as shown in figure 5, in Fig. 4 institutes On the basis of the embodiment shown, acquisition module 120 can include selecting unit 121, judging unit 122 and download unit 123, its In:
Selecting unit 121 is used for since limit priority, and the first creation mode of selection is used as target creation mode.
Judging unit 122 is used to judge that high in the clouds whether there is the first file.
Download unit 123 is used for if it is judged that high in the clouds has the first file, then from the first file of high in the clouds download.
Alternatively, creation module 130 specifically for:The establishment logic in the first file is performed, is that terminal creates layout circle Face, generates the screen protection of terminal.
Fig. 6 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention, as shown in fig. 6, in Fig. 5 institutes On the basis of the embodiment shown, acquisition module 120 can also include storage unit 124, wherein, the storage unit, for from High in the clouds is downloaded after the first file, stores the first file into the local memory of terminal according to default first store path.
Fig. 7 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention, as shown in fig. 7, in Fig. 5 institutes On the basis of the embodiment shown, acquisition module 120 can also include first and determine single 125, wherein, first determining unit 125 For before the first creation mode since limit priority, is selected as target creation mode, it is determined that for allowing to use The first switch of first creation mode is in opening.
Fig. 8 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention, as shown in figure 8, in Fig. 5 institutes On the basis of the embodiment shown, acquisition module 120 can also include the second determining unit 126, wherein, second determining unit The 126 establishment logics being used in the first file is performed, are that terminal creates layout interface, before the screen protection for generating terminal, it is determined that Second switch for deleting the first file is closed.
Alternatively, gravity treatment module 140 is specifically for if it is judged that the first file or the first establishment mould is not present in high in the clouds Formula creates screen protection not successfully, then selects the second creation mode of next stage to be used as target creation mode.
Alternatively, creation module 130 specifically for:The second text under the second creation mode is obtained according to the second store path Part, performs the establishment logic in the second file, is that terminal creates layout interface, generates the screen protection of terminal.
Alternatively, gravity treatment module 140 specifically for:If the second creation mode creates screen protection not successfully, select next 3rd creation mode of level is used as target creation mode.
Alternatively, creation module, specifically for:
The code write in the 3rd creation mode is performed, is that terminal creates layout interface, generates the screen protection of terminal.
Fig. 9 is intended to for the structure of another screen protection creating device provided in an embodiment of the present invention, as shown in figure 9, in Fig. 4 institutes On the basis of the embodiment shown, the device can also include detection module 150 and triggering determining module 160, wherein:
Detection module 150 is used to, since limit priority, target creation mode is sequentially obtained in all creation modes Before, the operation that detection user performs to terminal.
Triggering determining module 160 is used to, when occurring to be used to light the object run of screen, create for terminal it is determined that generating Build the trigger event of screen protection.
, wherein it is desired to which the detection module 150 and triggering in explanation, the device embodiment shown in above-mentioned Fig. 9 are determined The structure of module 160 can also be included in earlier figures 5- Fig. 8 device embodiment, and this present invention is not limited.
, wherein it is desired to which explanation, the foregoing explanation to screen protection creation method embodiment is also applied for the embodiment Screen protection creating device embodiment, here is omitted.
The screen protection creating device of the embodiment of the present invention, by being that all creation modes set priority in advance, and from highest Priority starts, and target creation mode is sequentially obtained in all creation modes, and created for terminal using target creation mode Screen protection, and target creation mode for successfully create screen protection when, select next stage creation mode as target creation mode after Continuous to create screen protection, until screen protection is created successfully or all creation modes are not successfully untill establishment screen protection, thus there is provided a variety of The creation mode of screen protection is created, and screen protection is created according to the priority orders of correspondence creation mode, until screen protection is created successfully, it is real The dynamic creation of existing screen protection, improves the variation of screen protection, it is ensured that the response speed and stability of screen protection.
Figure 10 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention, it is possible to achieve Fig. 1-3 of the present invention The flow of illustrated embodiment, as shown in Figure 10, above-mentioned electronic equipment can include:Housing 21, processor 22, memory 23, electricity Road plate 24 and power circuit 25, wherein, circuit board 24 is placed in the interior volume that housing 21 is surrounded, processor 22 and memory 23 It is arranged on circuit board 24;Power circuit 25, for being powered for each circuit or device of above-mentioned electronic equipment;Memory 23 is used In storage executable program code;Processor 22 is run by reading the executable program code stored in memory 23 and can The corresponding program of configuration processor code, the screen protection creation method for performing foregoing any embodiment.
Processor 22 to the specific implementation procedure and processor 22 of above-mentioned steps by run executable program code come The step of further performing, may refer to the description of Fig. 1-3 illustrated embodiments of the present invention, will not be repeated here.
The electronic equipment exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server is total including processor, hard disk, internal memory, system Line etc., server is similar with general computer architecture, but is due to need to provide highly reliable service, therefore in processing energy Require higher in terms of power, stability, reliability, security, scalability, manageability.
(5) other electronic equipments with data interaction function.In order to realize above-described embodiment, the present invention also proposes a kind of Computer program product, when the instruction in computer program product is by computing device, performs the screen protection such as previous embodiment Creation method.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposited thereon Computer program is contained, the screen protection establishment side such as previous embodiment can be realized when the computer program is executed by processor Method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the not be the same as Example or the feature of example and non-be the same as Example or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list for the executable instruction for realizing logic function, it may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress for combining these instruction execution systems, device or equipment and using Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Scattered logic circuit, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can be compiled Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and retouching above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of screen protection creation method, it is characterised in that including:
Priority is set for all creation modes in advance;
Since limit priority, target creation mode is sequentially obtained in all creation modes;
It is that terminal creates screen protection using the target creation mode;
If the target creation mode creates screen protection not successfully, the creation mode of selection next stage is used as target creation mode Continue create screen protection, until screen protection creates successfully or all creation modes not successfully establishment screen protection untill.
2. the screen protection creation method according to the claim 1, it is characterised in that all creation modes at least include passing through First creation mode of the first document creation screen protection obtained from high in the clouds, by obtaining the second built-in document creation screen from local Protect the second creation mode and pass through the 3rd creation mode of the code establishing screen protection write;First file and described Two files include the establishment logic that screen protection is created for terminal;Wherein, the priority of first creation mode is higher than described the The priority of two creation modes, the priority of second creation mode is higher than the priority of the 3rd creation mode.
3. the screen protection creation method according to the claim 2, it is characterised in that described since limit priority, is pressed Target creation mode is obtained in all creation modes of sequence, including:
Since limit priority, first creation mode is selected to be used as the target creation mode;
Judge that the high in the clouds whether there is first file;
If it is judged that the high in the clouds has first file, then first file is downloaded from the high in the clouds;
Described is that the terminal creates screen protection using the target creation mode, including:
The establishment logic in first file is performed, is that the terminal creates layout interface, generates the screen protection of the terminal.
4. the screen protection creation method according to the claim 3, it is characterised in that described to download described the from the high in the clouds After one file, in addition to:
First file is stored into the local memory of the terminal according to default first store path.
5. the screen protection creation method according to the claim 3, it is characterised in that the limit priority starts, selection Before first creation mode is as the target creation mode, in addition to:
It is determined that for allowing the first switch using first creation mode to be in opening.
6. the screen protection creation method according to the claim 4, it is characterised in that in execution first file Logic is created, is that the terminal creates layout interface, before the screen protection for generating the terminal, in addition to:
It is determined that being closed for the second switch for deleting first file.
7. the screen protection creation method according to the claim 3, it is characterised in that also include:
If it is judged that first file is not present for the high in the clouds or first creation mode creates screen protection not successfully, then Second creation mode of selection next stage is used as the target creation mode;
Described is that the terminal creates screen protection using the target creation mode, including:
Second file under second creation mode is obtained according to the second store path;
The establishment logic in second file is performed, is that the terminal creates layout interface, generates the screen protection of the terminal.
8. the screen protection creation method according to the claim 7, it is characterised in that also include:
If second creation mode creates screen protection not successfully, the 3rd creation mode of selection next stage is used as the target Creation mode;
Described is that the terminal creates screen protection using the target creation mode, including:
The code write in the 3rd creation mode is performed, is that the terminal creates layout interface, generates the screen of the terminal Protect.
9. the screen protection creation method according to any one of claim 1-8, it is characterised in that described from limit priority Start, sequentially in all creation modes before acquisition target creation mode, in addition to:
The operation that detection user performs to the terminal;
In the event of the object run for being used to light screen, it is determined that generate the trigger event that screen protection is created for the terminal.
10. a kind of screen protection creating device, it is characterised in that including:
Presetting module, for being that all creation modes set priority in advance;
Acquisition module, for since limit priority, target creation mode sequentially to be obtained in all creation modes;
Creation module, for being that terminal creates screen protection using the target creation mode;
Gravity treatment module, if creating screen protection not successfully for the target creation mode, the creation mode of selection next stage is made For target creation mode continue create screen protection, until screen protection creates successfully or all creation modes not successfully establishment screen protection be Only.
CN201710425950.2A 2017-06-08 2017-06-08 Screen saver creating method and device Pending CN107315603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710425950.2A CN107315603A (en) 2017-06-08 2017-06-08 Screen saver creating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710425950.2A CN107315603A (en) 2017-06-08 2017-06-08 Screen saver creating method and device

Publications (1)

Publication Number Publication Date
CN107315603A true CN107315603A (en) 2017-11-03

Family

ID=60183933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710425950.2A Pending CN107315603A (en) 2017-06-08 2017-06-08 Screen saver creating method and device

Country Status (1)

Country Link
CN (1) CN107315603A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6353449B1 (en) * 1998-12-10 2002-03-05 International Business Machines Corporation Communicating screen saver
CN101297269A (en) * 2005-10-13 2008-10-29 索尼爱立信移动通讯股份有限公司 Automatic theme creator
CN102779012A (en) * 2012-07-11 2012-11-14 广州市久邦数码科技有限公司 Screen locking system for touch screen device and realizing method thereof
CN103383637A (en) * 2013-06-28 2013-11-06 华为技术有限公司 Control method and device for screen background display
CN106227542A (en) * 2016-07-27 2016-12-14 广东欧珀移动通信有限公司 A kind of screen locking magazine content is play and mobile terminal
CN106598611A (en) * 2016-12-20 2017-04-26 北京猎豹移动科技有限公司 Lock screen interface display method and device
CN106686419A (en) * 2016-06-29 2017-05-17 青岛海信电器股份有限公司 Screensaver display method and display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6353449B1 (en) * 1998-12-10 2002-03-05 International Business Machines Corporation Communicating screen saver
CN101297269A (en) * 2005-10-13 2008-10-29 索尼爱立信移动通讯股份有限公司 Automatic theme creator
CN102779012A (en) * 2012-07-11 2012-11-14 广州市久邦数码科技有限公司 Screen locking system for touch screen device and realizing method thereof
CN103383637A (en) * 2013-06-28 2013-11-06 华为技术有限公司 Control method and device for screen background display
CN106686419A (en) * 2016-06-29 2017-05-17 青岛海信电器股份有限公司 Screensaver display method and display device
CN106227542A (en) * 2016-07-27 2016-12-14 广东欧珀移动通信有限公司 A kind of screen locking magazine content is play and mobile terminal
CN106598611A (en) * 2016-12-20 2017-04-26 北京猎豹移动科技有限公司 Lock screen interface display method and device

Similar Documents

Publication Publication Date Title
CN108228305A (en) Display methods, device, storage medium and the electronic equipment of five application page
CN106777184A (en) A kind of page loading method, device and electronic equipment
CN106164908A (en) Modern document storing and sync status
CN108038094A (en) A kind of document annotation method, apparatus and electronic equipment
US20080177994A1 (en) System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
CN106255951B (en) It is shown using the content that dynamic zoom focuses
CN106155750A (en) The loading method of a kind of resource file and device
CN108549568A (en) Using entrance processing method, apparatus, storage medium and electronic equipment
CN108153848B (en) Method and device for searching light application data and electronic device
CN103729122A (en) Method and device for unlocking mobile terminal
CN104063495A (en) Form extension method and form extension device
CN103390003A (en) Method and device for combining user data information among servers
CN109074264A (en) User setting across program
CN107003995A (en) The demonstration of content in spreadsheet application
CN110266505A (en) A kind of method and apparatus managing session group
CN108810646A (en) Group information pushes control method, device and computer readable storage medium
CN108170438A (en) A kind of application program automatic installation method, terminal and computer-readable medium
CN112783592B (en) Information issuing method, device, equipment and storage medium
CN108139895A (en) Font font preview
CN106817388A (en) The system that virtual machine, host obtain the method, device and access data of data
CN109992284A (en) Method and device for providing hot update program and electronic equipment
CN105991415A (en) Message pushing method and mobile terminal
CN110507992A (en) Technical support approach, device, equipment and storage medium in a kind of virtual scene
CN108228776A (en) Data processing method, device, storage medium and electronic equipment
CN107360265A (en) A kind of equipment exclusive identification code acquisition methods, device and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171103

RJ01 Rejection of invention patent application after publication