CN112052063A - Watermark filling method, system, terminal and storage medium for application program - Google Patents

Watermark filling method, system, terminal and storage medium for application program Download PDF

Info

Publication number
CN112052063A
CN112052063A CN202011041509.2A CN202011041509A CN112052063A CN 112052063 A CN112052063 A CN 112052063A CN 202011041509 A CN202011041509 A CN 202011041509A CN 112052063 A CN112052063 A CN 112052063A
Authority
CN
China
Prior art keywords
page
watermark
watermark component
application program
component
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
CN202011041509.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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011041509.2A priority Critical patent/CN112052063A/en
Publication of CN112052063A publication Critical patent/CN112052063A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a watermark filling method, a watermark filling system, a terminal and a storage medium of an application program, wherein the method comprises the following steps: acquiring all pages of an application program by utilizing a preset page management module; judging whether each page comprises a label, wherein the label is set when a developer creates the page; if yes, searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label; and when detecting that the user starts the application program and opens the page, calling the watermark component to fill the corresponding page based on the binding relationship and displaying the watermark component. By the method, the corresponding watermark components can be inserted into the page and displayed when the application program is opened every time, developers do not need to manually add watermarks to the page one by one when developing the application program, development efficiency is improved, and workload of the developers is reduced.

Description

Watermark filling method, system, terminal and storage medium for application program
Technical Field
The present application relates to the field of application program protection technologies, and in particular, to a method, a system, a terminal, and a storage medium for watermark filling of an application program.
Background
With the rapid development of mobile communication technology, mobile terminals such as smart phones become an indispensable part of people's lives, various applications on the mobile terminals are gradually increased, and the internal functions of many applications are more perfect, which provides users with much convenience. With the development of computer technology and network technology, data security is becoming the focus of attention.
At present, adding watermarks in android applications is a requirement of many applications, in the industry, watermark processing methods are all based on View layers, and because all pages are realized based on Activity in an android system, in the prior art, watermarks are processed from Activity, generally speaking, the outermost View group of Activity is obtained, and then a watermark layout is dynamically added in a code layer to achieve the effect of adding watermarks in a single page.
Disclosure of Invention
The application provides a watermark filling method, a system, a terminal and a storage medium of an application program, which aim to solve the problems of complex watermark adding process, low efficiency and the like of the existing application program.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a watermark filling method for an application program, including: acquiring all pages of an application program by utilizing a preset page management module; judging whether each page comprises a label, wherein the label is set when a developer creates the page; if yes, searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label; and when detecting that the user starts the application program and opens the page, calling the watermark component to fill the corresponding page based on the binding relationship and displaying the watermark component.
As a further improvement of the present application, it further comprises: creating at least one watermark component; inserting mark information into at least one watermark component, wherein the mark information corresponds to the label; storing at least one watermark component in a pre-established watermark component library.
As a further improvement of the present application, when detecting that a user starts an application and opens a page, calling a watermark component to fill in the corresponding page based on a binding relationship and displaying the watermark component, includes: when the page is detected to be opened, judging whether a watermark display instruction input by a user is received or not; if the watermark instruction is displayed, calling a watermark component corresponding to the page to fill the page and displaying the watermark component; and if the watermark instruction is not displayed, directly displaying the page.
As a further improvement of the present application, after the page is directly displayed, the method further includes: when an instruction for sharing the current page is detected, the watermark component corresponding to the current page is called based on the binding relationship, and the watermark component is filled into the content to be shared.
As a further improvement of the present application, when detecting that a user starts an application and opens a page, calling a watermark component to fill in the corresponding page based on a binding relationship and displaying the watermark component, includes: when the page is detected to be opened, calling a watermark component corresponding to the page based on the binding relationship; judging whether the watermark component corresponding to the page is successfully called or not; if so, filling the watermark component into the page and displaying; if not, the page is directly displayed.
As a further improvement of the present application, when detecting that a user starts an application and opens a page, calling a watermark component to fill in the corresponding page based on a binding relationship and displaying the watermark component, includes: when the page is detected to be opened, calling a watermark component corresponding to the page and setting the level of the watermark component as the top layer and keeping the level all the time; and outputting and displaying the page filled with the watermark component.
As a further improvement of the present application, after calling the watermark component to fill in the corresponding page based on the binding relationship and displaying, the method further includes: when the application program is in a starting state, storing the page filled with the watermark component into a cache, and when the application program is switched to the page again, acquiring the page filled with the watermark component from the cache and displaying the page; when the application is terminated, the pages stored in the cache are released.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a watermarking system for an application, comprising: the acquisition module is used for acquiring all pages of the application program by utilizing a preset page management module; the judging module is used for judging whether each page comprises a label or not, and the label is set when a developer creates the page; the binding module is used for searching a corresponding watermark component from a preset watermark component library based on the label when the page comprises the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label; and the display module is used for calling the watermark component to be filled in the corresponding page and displaying the watermark component based on the binding relation when detecting that the user starts the application program and opens the page.
In order to solve the above technical problem, the present application adopts another technical solution that: a terminal is provided, which includes a processor, and a memory coupled to the processor, wherein the memory stores program instructions for implementing a watermark filling method of the application program; the processor is used for executing program instructions stored by the memory to insert the watermark component into the page to be opened by the application program and then show the watermark component.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a storage medium storing a program file capable of implementing the watermark padding method of the application program.
The beneficial effect of this application is: the watermark filling method of the application program searches and binds the watermark component corresponding to the page by acquiring all pages of the application program and utilizing the label inserted on the page, records the binding relationship, when the subsequent user opens the application program, based on the binding relationship, after the corresponding watermark component is found to be filled into the page, the page is output and displayed, it can automatically fill watermark components into all pages of an application program without manually adding the watermark components page by a developer, reduces the workload of the developer, moreover, the watermark component is independently arranged, and code logic for realizing the watermark does not need to be inserted into the code logic of the page, the method and the device enable the code logic of the whole page to be more simplified, bring convenience for developers to maintain, and the independently arranged watermark component does not influence the content display of the whole page due to abnormity.
Drawings
Fig. 1 is a flowchart illustrating a watermark filling method for an application according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a watermark filling method for an application according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a watermark filling method for an application according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a watermark filling method for an application according to a fourth embodiment of the present invention;
fig. 5 is a flowchart illustrating a watermarking method applied to a fifth embodiment of the present invention;
FIG. 6 is a functional block diagram of a system for watermarking in an application according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Fig. 1 is a flowchart illustrating a watermark filling method for an application according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
step S101: all pages of the application are acquired by using a pre-established page management module.
Specifically, an android application generally includes a plurality of pages, and when the application is started, the application enters a home page of the application, and when one of the function keys is clicked, the application jumps to a corresponding page, for example, a wechat App. In this embodiment, before adding watermark to the application, all pages of the application are obtained by using a preset page management module, and are used for subsequently performing watermark setting processing on all pages in a unified manner. The page management module can be implemented by an activitylifemanager management class, and is used for acquiring all pages of an application program.
Step S102: it is determined whether each page includes a tab that is set by the developer when creating the page. If yes, go to step S103. If not, the page does not need to be added with the watermark.
Specifically, after a page is obtained, the page is analyzed, that is, Activity information of the page is obtained, and then whether a preset tag is included is searched for, where it is to be noted that the tag needs to be preset, for example, when a developer creates the page, the tag may be set, and the developer may add the tag or not to add the tag in the page according to a requirement.
Step S103: and searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label.
Specifically, the watermark components are distributed with watermark information, and the watermark information distributed in different watermark components is different, so that different pages can be filled with the same or different watermark information. It should be noted that the watermark component library is pre-established and used for storing the watermark components, and when the watermark components are established, the corresponding relationship between the watermark components and the labels needs to be set. A plurality of different watermark components may exist in the watermark component library, and therefore, when setting a tag, corresponding tags need to be set for different watermark components, and the correspondence between the tag and the watermark component has uniqueness, so as to achieve the purpose of being able to confirm a target watermark component through the tag.
Further, before executing the embodiment, it is necessary to create a watermark component in advance and establish a corresponding relationship between the watermark component and the tag, and the method specifically includes the following steps:
1. at least one watermark component is created.
Further, in order to facilitate management of the watermark component and subsequent maintenance, the watermark component is implemented by a Fragment component, and specifically includes the following steps:
A. and creating a corresponding watermark layout on the Fragment component.
In particular, Fragment is a UI Fragment that can be embedded in Activity, so that a program can more reasonably and fully utilize the space of a large screen, and it is originally designed to adapt to a tablet computer with a large screen, and can be regarded as a small Activity, also called an Activity Fragment. The screen can be divided into several blocks by using Fragment, and then the blocks are grouped to perform a modular management. Fragment cannot be used alone, needs to be nested in Activity, and the life cycle of Fragment is also affected by the life cycle of host Activity. Fragments are dependent on Activity and cannot exist independently, one Activity can have a plurality of fragments, one Fragment can be reused by a plurality of activities, the fragments have own life cycle and can receive input events, and the fragments can be dynamically added or deleted when the Activity runs.
B. And acquiring watermark information input by a developer and watermark setting information.
The watermark information refers to the content of the watermark, which may be characters, numbers, pictures, etc., and is input in advance by a developer, and the watermark setting information includes the size, rotation angle, transparency, etc. of the watermark, and if the watermark is a character or digital watermark, the watermark setting information also includes information such as font, font color, font size, etc. Specifically, in this embodiment, watermark layout is performed according to the above-mentioned watermark information and watermark setting information in Fragment.
C. And filling the watermark information into the watermark layout based on the watermark setting information so as to generate the watermark component.
In this embodiment, the Fragment component is used as the carrier of the watermark component, so that the Activity of the watermark component and the Activity of the page are divided, and therefore, the corresponding code logic of the watermark component does not need to be written into the ViewGroup layer of the Activity of the page, and the maintenance difficulty of the subsequent code is reduced.
2. And inserting mark information into at least one watermark component, wherein the mark information corresponds to the label.
Specifically, when a watermark component is created, the flag information is inserted into the code logic of the watermark component, each flag information corresponds to one label, and the watermark component corresponding to the label can be queried by using the flag information.
3. Storing at least one watermark component in a pre-established watermark component library.
Further, in step S103, the step of searching for the corresponding watermark component from the watermark component library based on the label includes: and matching the label with the mark information of each watermark component to confirm the corresponding watermark component.
In this embodiment, when the watermark component is created, the flag information is inserted into the created watermark component, and the corresponding relationship between the flag information and the tag is set, so that the corresponding watermark component can be subsequently queried through the matching relationship between the tag and the flag information.
Step S104: and when detecting that the user starts the application program and opens the page, calling the watermark component to fill the corresponding page based on the binding relationship and displaying the watermark component.
Specifically, after the binding relationship between the page and the watermark component is established, when the application program is started, the currently opened page of the application program is detected, the binding relationship of the page is obtained, and then the corresponding watermark component is called based on the binding relationship to be filled into the page and displayed.
It should be understood that, if there is no corresponding binding relationship in the opened current page, it indicates that the page does not need to be filled with a watermark, and at this time, the current page may be directly displayed.
It should be noted that the watermark filling method for the application program disclosed in the present application may be applied to a mobile terminal using an operating system such as android and IOS.
The watermark filling method of the application program of the first embodiment of the invention searches and binds the watermark component corresponding to the page by acquiring all pages of the application program and utilizing the label inserted on the page, records the binding relationship, when the subsequent user opens the application program, based on the binding relationship, after the corresponding watermark component is found to be filled into the page, the page is output and displayed, it can automatically fill watermark components into all pages of an application program without manually adding the watermark components page by a developer, reduces the workload of the developer, and, the watermark component is independently set, without inserting code logic in the Activity of the page, the method and the device enable the code logic of the whole page to be more simplified, bring convenience for developers to maintain, and the independently arranged watermark component does not influence the content display of the whole page due to abnormity.
Further, in some embodiments, the page management module is further configured to: and when the application program is updated, detecting whether a new page exists. If yes, executing step S102-step S103 to establish a binding relationship between the newly added page and the watermark component. It should be noted that the updated content of the application program needs to include a corresponding relationship between the tag of the newly added page and the watermark component, and if the watermark component is updated, the updated content also needs to include the updated watermark component to cover the previous watermark component.
Fig. 2 is a flowchart illustrating a watermark filling method for an application according to a second embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 2 if the results are substantially the same. As shown in fig. 2, the method comprises the steps of:
step S201: all pages of the application are acquired by using a pre-established page management module.
In this embodiment, step S201 in fig. 2 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S202: it is determined whether each page includes a tab that is set by the developer when creating the page. If yes, go to step S203.
In this embodiment, step S202 in fig. 2 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S203: and searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label.
In this embodiment, step S203 in fig. 2 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
Step S204: and when the page is detected to be opened, judging whether a watermark display instruction input by a user is received or not. If the watermark instruction is displayed, executing step S205; if the watermark instruction is not displayed, step S206 is executed.
Specifically, in order to meet the diversified requirements of the user, in this embodiment, it may be further determined whether the page needs to be watermarked according to an instruction input by the user and then displayed. The watermark instruction can be displayed through a preset prompt box, for example, when a user opens an application program, the prompt box is popped up to remind the user whether the watermark needs to be displayed, if the user selects 'yes', the watermark instruction is displayed, and if the user selects 'no', the watermark instruction is not displayed; or when the user opens the page with the corresponding watermark component, popping up a prompt box to remind the user whether the watermark needs to be displayed, if the user selects 'yes', displaying the watermark instruction, and if the user selects 'no', not displaying the watermark instruction. In addition, a check box can be preset, the page defaults to displaying the watermark, and when the user selects not to display the watermark in the check box, a watermark non-display instruction input by the user is received.
Step S205: and calling a watermark component corresponding to the page to fill the page and display the page.
Step S206: and directly displaying the page.
Specifically, the watermark component is independently set except the Activity of the page, so that when the user inputs a command of not displaying the watermark, the watermark component corresponding to the page does not need to be called, and the content of the page is directly displayed.
Further, when the user inputs a command for not displaying the watermark, if the user needs to share the page, the information in the current page of the application program needs to be protected, so after step S206, the method further includes:
step S207: when an instruction for sharing the current page is detected, the watermark component corresponding to the current page is called based on the binding relationship, and the watermark component is filled into the content to be shared.
Specifically, when a user needs to share information in a current page, in order to protect the information in the current page, a watermark component corresponding to the current page is queried, and the watermark component is filled in content that the user needs to share to form a watermark, so that the source or the use of the shared content is marked, and malicious use by people is prevented.
It should be noted that the instruction for sharing the current page includes a screenshot, and sharing is performed through a sharing case on the page, and it should be understood that other operations performed through the sharing page executed on the application program also belong to the protection scope of the present invention, for example, when a user intercepts the current screen for sharing, a watermark component corresponding to the current page is called and inserted into the intercepted image of the current screen to form protection for ownership of information displayed by the current page.
The watermark filling method for the application program of the second embodiment of the invention is based on the first embodiment, and confirms whether to perform watermark input display or not by combining the requirements of the user, thereby fully combining the requirements of the user and avoiding the experience of the application user. Moreover, after the user selects not to display the watermark, if the user needs to share the current page, the corresponding watermark information can still be inserted into the information needing to be shared, so that the information displayed in the current page is prevented from being stolen, and the effect of protecting the ownership of the information displayed in the current page is achieved.
Fig. 3 is a flowchart illustrating a watermark filling method for an application according to a third embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 3 if the results are substantially the same. As shown in fig. 3, the method comprises the steps of:
step S301: all pages of the application are acquired by using a pre-established page management module.
In this embodiment, step S301 in fig. 3 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S302: it is determined whether each page includes a tab that is set by the developer when creating the page. If yes, go to step S303.
In this embodiment, step S302 in fig. 3 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S303: and searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label.
In this embodiment, step S303 in fig. 3 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
Step S304: and when the page is detected to be opened, calling the watermark component corresponding to the page based on the binding relationship.
Specifically, after the application program is started and the page is opened, the watermark component corresponding to the page to be opened is called according to the binding relationship between the page and the watermark component.
Step S305: and judging whether the watermark component corresponding to the page is successfully called. If yes, go to step S306; if not, go to step S307.
Specifically, whether the watermark component corresponding to the page is successfully called is detected and judged. Specifically, the step of detecting and determining whether the watermark component corresponding to the page is successfully called may be: and judging whether the watermark component corresponding to the page is successfully called within preset times, wherein the preset times can be 3 times, 5 times and the like. For example, when the watermark component is called for the first time and is not called successfully, the second calling is executed immediately, and if the second calling is not called successfully, the third calling is executed for the third time until the calling is successful or the calling times reach the preset times. The preset times are set so that the robustness of the calling program of the watermark component is stronger.
Step S306: and filling the watermark component into the page and displaying.
Step S307: and directly displaying the page.
The watermark filling method of the application program of the third embodiment of the invention detects whether the page calls the watermark component successfully or not when the page calls the watermark component on the basis of the first embodiment, if so, the watermark component is used for rendering the page, and if not, the page is directly displayed, thereby avoiding the situation that the page cannot be normally displayed because of dead circulation caused by repeatedly executing the instruction of calling the watermark component when the call fails.
Fig. 4 is a flowchart illustrating a watermark filling method for an application according to a fourth embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 4 if the results are substantially the same. As shown in fig. 4, the method includes the steps of:
step S401: all pages of the application are acquired by using a pre-established page management module.
In this embodiment, step S401 in fig. 4 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S402: it is determined whether each page includes a tab that is set by the developer when creating the page. If yes, go to step S403.
In this embodiment, step S402 in fig. 4 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S403: and searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label.
In this embodiment, step S403 in fig. 4 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
Step S404: and when the page is detected to be opened, calling the watermark component corresponding to the page, and setting the hierarchy of the watermark component as the top layer and keeping the hierarchy all the time.
Specifically, after the application program is started, when the page is detected to be opened, the watermark component corresponding to the page is called, then the watermark component is set as the top layer of the page based on the hierarchical relationship of the page, and the watermark component is maintained to be always positioned at the top layer, so that the watermark in the watermark component is filled in the whole page. When the watermark component is set as the top layer, the response of the watermark component to the external click event needs to be cancelled, and the response of other layers to the click event is prevented from being influenced.
Step S405: and outputting and displaying the page filled with the watermark component.
In the method for filling the watermark in the application program according to the fourth embodiment of the present invention, on the basis of the first embodiment, after the watermark component corresponding to the page is called, the hierarchy of the watermark component is set as the top level, and the watermark component is always kept at the top level, and the content displayed on the page is located below the watermark component, so that the watermark component is prevented from being covered by other hierarchies, and the watermark cannot be displayed.
Fig. 5 is a flowchart illustrating a watermark filling method for an application according to a fifth embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 5 if the results are substantially the same. As shown in fig. 5, the method includes the steps of:
step S501: all pages of the application are acquired by using a pre-established page management module.
In this embodiment, step S501 in fig. 5 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S502: it is determined whether each page includes a tab that is set by the developer when creating the page. If yes, go to step S503.
In this embodiment, step S502 in fig. 5 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S503: and searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording the binding relation, wherein the watermark component corresponds to the label.
In this embodiment, step S503 in fig. 5 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
Step S504: and when detecting that the user starts the application program and opens the page, calling the watermark component to fill the corresponding page based on the binding relationship and displaying the watermark component.
In this embodiment, step S504 in fig. 5 is similar to step S104 in fig. 1, and for brevity, is not described herein again.
Step S505: and when the application program is in a starting state, storing the page filled with the watermark component into a cache, and when the application program is switched to the page again, acquiring the page filled with the watermark component from the cache and displaying the page.
Specifically, after the application program is started, when a page is opened, the binding relationship between the page and the watermark component is obtained, the watermark component is filled into the page according to the binding relationship and displayed, when the user switches to the next page, the page filled with the watermark component is stored in the cache, when the user switches to the page again, the page filled with the watermark is directly obtained from the cache, and the page does not need to be filled with the watermark component again, so that the data processing amount in the running process of the application program is reduced.
Step S506: when the application is terminated, the pages stored in the cache are released.
Specifically, when the application is terminated by the user, the watermarked pages stored when the application is used are released and cached for storing the watermarked pages of the next launched application.
The watermark filling method for the application program according to the fifth embodiment of the present invention is based on the first embodiment, and stores the page filled with the watermark component into the cache when the application program is in the startup state, and directly obtains the page filled with the watermark component from the cache when the application program is switched to the page again without performing the watermark filling operation again, thereby reducing the data processing amount, and releasing the page stored in the cache after the application program is terminated, thereby avoiding the continuous occupation of resources.
Fig. 6 is a functional block diagram of a watermark filling system of an application program according to an embodiment of the present invention. As shown in fig. 6, the watermarking system 60 of the application includes an obtaining module 61, a judging module 62, a binding module 63 and a presentation module 64.
An obtaining module 61, configured to obtain all pages of the application program by using a pre-established page management module.
And a judging module 62, configured to judge whether each page includes a tag, where the tag is set when a developer creates the page.
And a binding module 63, configured to, when the page includes the tag, search for a corresponding watermark component from a preset watermark component library based on the tag, bind the watermark component with the page, and record a binding relationship, where the watermark component corresponds to the tag.
And the display module 64 is configured to call the watermark component to fill the corresponding page based on the binding relationship and display the page when detecting that the user starts the application program and opens the page.
Optionally, in this embodiment, before the binding module 63 searches for the corresponding watermark component from the preset watermark component library, it is further required to create a watermark component in advance and establish a corresponding relationship between the watermark component and the tag, which specifically includes: creating at least one watermark component; inserting mark information into at least one watermark component, wherein the mark information corresponds to the label; storing at least one watermark component in a pre-established watermark component library.
Optionally, when the presentation module 64 detects that the user starts the application and opens the page, the operation of calling the watermark component to fill the corresponding page and present based on the binding relationship may further be: when the page is detected to be opened, judging whether a watermark display instruction input by a user is received or not; if the watermark instruction is displayed, calling a watermark component corresponding to the page to fill the page and displaying the watermark component; and if the watermark instruction is not displayed, directly displaying the page.
Optionally, after the operation of directly displaying the page, the displaying module 64 is further configured to, when detecting an instruction to share the current page, call a watermark component corresponding to the current page based on the binding relationship, and fill the watermark component into the content to be shared.
Optionally, when the presentation module 64 detects that the user starts the application and opens the page, the operation of calling the watermark component to fill the corresponding page and present based on the binding relationship may further be: when the page is detected to be opened, calling a watermark component corresponding to the page based on the binding relationship; judging whether the watermark component corresponding to the page is successfully called or not; if so, filling the watermark component into the page and displaying; if not, the page is directly displayed.
Optionally, when the presentation module 64 detects that the user starts the application and opens the page, the operation of calling the watermark component to fill the corresponding page and present based on the binding relationship may further be: when the page is detected to be opened, calling a watermark component corresponding to the page and setting the level of the watermark component as the top layer and keeping the level all the time; and outputting and displaying the page filled with the watermark component.
Optionally, when the presentation module 64 detects that the user starts the application and opens the page, after the operation of calling the watermark component to fill in the corresponding page and present based on the binding relationship, the operation is further configured to: when the application program is in a starting state, storing the page filled with the watermark component into a cache, and when the application program is switched to the page again, acquiring the page filled with the watermark component from the cache and displaying the page; when the application is terminated, the pages stored in the cache are released.
For other details of the technical solution for implementing each module in the watermark filling system of the application program in the above embodiment, reference may be made to the description of the watermark filling method of the application program in the above embodiment, and details are not described here again.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system-class embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 7, the terminal 70 includes a processor 71 and a memory 72 coupled to the processor 71.
The memory 72 stores program instructions for implementing the watermarking method of the application program according to any of the embodiments described above.
The processor 71 is used to execute program instructions stored in the memory 72 to insert the watermark component into the page to be opened by the application for further presentation.
The processor 71 may also be referred to as a CPU (Central Processing Unit). The processor 71 may be an integrated circuit chip having signal processing capabilities. The processor 71 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a storage medium according to an embodiment of the invention. The storage medium of the embodiment of the present invention stores a program file 81 capable of implementing all the methods described above, where the program file 81 may be stored in the storage medium in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
In the several embodiments provided in the present application, it should be understood that the disclosed system, terminal and method can be implemented in other manners. For example, the above-described system embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A method for watermarking an application, comprising:
acquiring all pages of an application program by utilizing a preset page management module;
judging whether each page comprises a label, wherein the label is set by a developer when the page is created;
if yes, searching a corresponding watermark component from a preset watermark component library based on the label, binding the watermark component with the page, and recording a binding relation, wherein the watermark component corresponds to the label;
and when detecting that the user starts the application program and opens the page, calling the watermark component to fill the corresponding page based on the binding relationship and displaying the watermark component.
2. The method for watermarking an application according to claim 1, further comprising:
creating at least one watermark component;
inserting marker information into the at least one watermark component, the marker information corresponding to the label;
storing the at least one watermark component in a pre-established watermark component library.
3. The method for watermark filling of an application program according to claim 1, wherein the detecting that the user starts the application program and opens the page, and calling the watermark component to fill the corresponding page and display the page based on the binding relationship comprises:
when the page is detected to be opened, judging whether a watermark display instruction input by a user is received or not;
if the watermark instruction is displayed, calling the watermark component corresponding to the page to fill the page and displaying the watermark component;
and if the watermark instruction is not displayed, directly displaying the page.
4. The method for watermarking according to claim 3, wherein the step of directly displaying the page further comprises:
and when an instruction for sharing the current page is detected, calling a watermark component corresponding to the current page based on the binding relationship, and filling the watermark component into the content to be shared.
5. The method for watermark filling of an application program according to claim 1, wherein the detecting that the user starts the application program and opens the page, and calling the watermark component to fill the corresponding page and display the page based on the binding relationship comprises:
when the page is detected to be opened, calling the watermark component corresponding to the page based on the binding relationship;
judging whether the watermark component corresponding to the page is successfully called or not;
if so, filling the watermark component into the page and displaying;
if not, the page is directly displayed.
6. The method for watermark filling of an application program according to claim 1, wherein the detecting that the user starts the application program and opens the page, and calling the watermark component to fill the corresponding page and display the page based on the binding relationship comprises:
when the page is detected to be opened, calling the watermark component corresponding to the page, and setting the level of the watermark component as the top layer and keeping the level of the watermark component all the time;
and outputting and displaying the page filled with the watermark component.
7. The method for watermark filling of an application program according to claim 1, wherein after the calling the watermark component to fill the corresponding page based on the binding relationship and displaying, the method further comprises:
when the application program is in a starting state, storing the page filled with the watermark component into a cache, and when the application program is switched to the page again, acquiring and displaying the page filled with the watermark component from the cache;
releasing the page stored in the cache when the application is terminated.
8. A system for watermarking an application, comprising:
the acquisition module is used for acquiring all pages of the application program by utilizing a preset page management module;
the judging module is used for judging whether each page comprises a label or not, and the label is set by a developer when the page is created;
the binding module is used for searching a corresponding watermark component from a preset watermark component library based on the label when the page comprises the label, binding the watermark component with the page and recording the binding relation, wherein the watermark component corresponds to the label;
and the display module is used for calling the watermark component to be filled to the corresponding page and displaying the watermark component based on the binding relationship when detecting that the user starts the application program and opens the page.
9. A terminal, comprising a processor, a memory coupled to the processor, wherein,
the memory stores program instructions for implementing a watermarking method of an application according to any of claims 1-7;
the processor is configured to execute the program instructions stored by the memory to insert a watermark component into an upcoming open page of an application for display.
10. A storage medium storing a program file capable of implementing a watermark filling method of an application program according to any one of claims 1 to 7.
CN202011041509.2A 2020-09-28 2020-09-28 Watermark filling method, system, terminal and storage medium for application program Pending CN112052063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011041509.2A CN112052063A (en) 2020-09-28 2020-09-28 Watermark filling method, system, terminal and storage medium for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011041509.2A CN112052063A (en) 2020-09-28 2020-09-28 Watermark filling method, system, terminal and storage medium for application program

Publications (1)

Publication Number Publication Date
CN112052063A true CN112052063A (en) 2020-12-08

Family

ID=73605389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011041509.2A Pending CN112052063A (en) 2020-09-28 2020-09-28 Watermark filling method, system, terminal and storage medium for application program

Country Status (1)

Country Link
CN (1) CN112052063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741844A (en) * 2021-09-02 2021-12-03 杭州车厘子智能科技有限公司 Interaction system and interaction method based on intelligent mobile terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020018233A1 (en) * 2000-03-03 2002-02-14 Brother Kogyo Kabushiki Kaisha Data generating device capable of appending different watermarks to corresponding pages
JP2003208300A (en) * 2002-01-15 2003-07-25 Minolta Co Ltd File managing program, recording medium with its program recorded, and file managing method
CN1555021A (en) * 2003-12-26 2004-12-15 中国人民解放军总参谋部第六十一研究 Method for managing water print relation database
CN102073826A (en) * 2009-08-26 2011-05-25 奥多比公司 System and method for digital copyright management using lightweight digital watermark adding component
JP2013089154A (en) * 2011-10-21 2013-05-13 Kyocera Document Solutions Inc Watermark generation program
US20160156994A1 (en) * 2013-07-19 2016-06-02 Civolution B.V. Method and system for watermarking content prior to fragmenting
CN109544437A (en) * 2018-11-06 2019-03-29 北京指掌易科技有限公司 A kind of method of IOS application addition watermark
CN110120003A (en) * 2018-02-07 2019-08-13 上海诺亚投资管理有限公司 A kind of method and system of the acquisition with watermark webpage
CN110851801A (en) * 2019-09-24 2020-02-28 云深互联(北京)科技有限公司 Resource data page identification method and device based on uniform resource locator
CN110990800A (en) * 2019-11-26 2020-04-10 合肥高维数据技术有限公司 Watermark processing method and system based on application program

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020018233A1 (en) * 2000-03-03 2002-02-14 Brother Kogyo Kabushiki Kaisha Data generating device capable of appending different watermarks to corresponding pages
JP2003208300A (en) * 2002-01-15 2003-07-25 Minolta Co Ltd File managing program, recording medium with its program recorded, and file managing method
CN1555021A (en) * 2003-12-26 2004-12-15 中国人民解放军总参谋部第六十一研究 Method for managing water print relation database
CN102073826A (en) * 2009-08-26 2011-05-25 奥多比公司 System and method for digital copyright management using lightweight digital watermark adding component
JP2013089154A (en) * 2011-10-21 2013-05-13 Kyocera Document Solutions Inc Watermark generation program
US20160156994A1 (en) * 2013-07-19 2016-06-02 Civolution B.V. Method and system for watermarking content prior to fragmenting
CN110120003A (en) * 2018-02-07 2019-08-13 上海诺亚投资管理有限公司 A kind of method and system of the acquisition with watermark webpage
CN109544437A (en) * 2018-11-06 2019-03-29 北京指掌易科技有限公司 A kind of method of IOS application addition watermark
CN110851801A (en) * 2019-09-24 2020-02-28 云深互联(北京)科技有限公司 Resource data page identification method and device based on uniform resource locator
CN110990800A (en) * 2019-11-26 2020-04-10 合肥高维数据技术有限公司 Watermark processing method and system based on application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋翠玲 等: "基于PDF417二维条码的顽健数字水印方法", 网络与信息安全学报, no. 09, pages 76 - 82 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741844A (en) * 2021-09-02 2021-12-03 杭州车厘子智能科技有限公司 Interaction system and interaction method based on intelligent mobile terminal
CN113741844B (en) * 2021-09-02 2024-02-27 杭州车厘子智能科技有限公司 Interactive system and interactive method based on intelligent mobile terminal

Similar Documents

Publication Publication Date Title
US11778430B2 (en) Layers in messaging applications
CN106598655B (en) Application page processing method and device
WO2019114828A1 (en) User interface display method and apparatus, device, and storage medium
US20210358192A1 (en) Rendering method and apparatus
WO2020038163A1 (en) Icon display method and apparatus, and terminal and storage medium
CN107832099B (en) Method and device for client version compatibility and storage medium
EP3384398A1 (en) Running applications using pre-generated components
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN110765379B (en) Method, device, computer equipment and storage medium for loading resource file
US20220269400A1 (en) Rule-based user interface layout rearrangement
CN109656445B (en) Content processing method, device, terminal and storage medium
CN111324398B (en) Method, device, terminal and storage medium for processing latest content
CN108241515B (en) Application shortcut establishing method and terminal
CN112052063A (en) Watermark filling method, system, terminal and storage medium for application program
CN111158777B (en) Component calling method, device and computer readable storage medium
CN117555459A (en) Application group processing method and device, storage medium and electronic equipment
CN108021567B (en) Method and device for self-adaptively customizing fonts of browser
CN113098859B (en) Webpage page rollback method, device, terminal and storage medium
CN111198735A (en) Layer information acquisition method, layer information acquisition device and terminal equipment
CN111274507B (en) Method, device and equipment for browsing webpage content and storage medium
CN111198830B (en) Identification method and device of mobile storage equipment, electronic equipment and storage medium
KR20190035244A (en) Screen leak prevention program and screen leak prevention service providing method for injecting watermark into captured data
CN109151557B (en) Video creation method and related device
CN112612633A (en) Inter-process communication method, device, storage medium and terminal
CN107066254B (en) Method and device for calling animation data

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