CN112306313A - Interface display method, device, terminal and storage medium - Google Patents
Interface display method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN112306313A CN112306313A CN201910694634.4A CN201910694634A CN112306313A CN 112306313 A CN112306313 A CN 112306313A CN 201910694634 A CN201910694634 A CN 201910694634A CN 112306313 A CN112306313 A CN 112306313A
- Authority
- CN
- China
- Prior art keywords
- calling
- state attribute
- terminal
- displaying
- interface
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses a method, a device, a terminal and a storage medium for displaying an interface, which belong to the technical field of computers. According to the method and the terminal, after the calling instruction is received, the terminal can judge whether the target interface is displayed according to the relation between the running condition of the calling object in the terminal and the preset condition, the calling object calling target interface with the running condition not conforming to the preset condition is avoided, and the capability of the terminal for safely displaying the target page is improved.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, a terminal and a storage medium for displaying an interface.
Background
With the wide use of the mobile terminal in daily life, the mobile terminal can simultaneously start a plurality of applications, and realize corresponding functions through different applications.
In some possible scenes, when the application runs in the background, the user can trigger the application running in the background through touch operation, so that the application running in the background is directly switched to the foreground to run.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for displaying an interface. The technical scheme is as follows:
according to an aspect of the present application, there is provided a method of displaying an interface, the method including:
receiving a calling instruction sent by a calling object, wherein the calling instruction is used for calling a target interface;
acquiring the running state attribute of the calling object, wherein the running state attribute is used for indicating the running condition of the calling object in a terminal;
and when the running state attribute meets a preset condition, displaying the target interface.
According to another aspect of the present application, there is provided an apparatus for displaying an interface, the apparatus including:
the receiving module is used for receiving a calling instruction sent by a calling object, and the calling instruction is used for calling a target interface;
the obtaining module is used for obtaining the running state attribute of the calling object, and the running state attribute is used for indicating the running condition of the calling object in the terminal;
and the display module is used for displaying the target interface when the running state attribute meets the preset condition.
According to another aspect of the present application, there is provided a terminal comprising a processor and a memory, the memory having stored therein at least one instruction, the instruction being loaded and executed by the processor to implement the method of displaying an interface as provided in the implementations of the present application.
According to another aspect of the present application, there is provided a computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to implement a method of displaying an interface as provided in the practice of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application can include:
according to the method and the device, the calling instruction sent by the calling object can be received, the running state attribute of the calling object is obtained, and when the running state attribute meets the preset condition, the target interface used for calling by the calling instruction is displayed. Therefore, after the calling instruction is received, whether the target interface is displayed or not can be judged according to the relation between the running condition of the calling object in the terminal for indicating and the preset condition, the calling object calling target interface with the running condition not conforming to the preset condition is avoided, and the capability of safely displaying the target page by the terminal is improved.
Drawings
In order to more clearly describe the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block diagram of a terminal according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method of displaying an interface provided by an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for displaying an interface provided by another exemplary embodiment of the present application;
FIG. 4 is a schematic process diagram of a display interface provided according to the embodiment shown in FIG. 3;
FIG. 5 is a schematic process diagram of another target interface provided based on the embodiment shown in FIG. 3;
FIG. 6 is a schematic process diagram of another display interface provided based on the embodiment shown in FIG. 3;
FIG. 7 is a schematic diagram of a user interface displayed when a terminal rejects a call according to the embodiment shown in FIG. 3;
fig. 8 is a block diagram illustrating an apparatus for displaying an interface according to an exemplary embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In some possible modes, when the terminal receives a call instruction sent by a call object, the terminal can directly display a target interface according to the call instruction. For example, when the terminal receives a call instruction for the target interface a, the target interface a is displayed in the screen according to the call instruction. However, when the call instruction is initiated by a malicious application or a malicious process in the terminal, the terminal directly displays a corresponding target interface, which causes disturbance to the user and affects the security of the user using the terminal.
In a possible mode of the application, the terminal can obtain the running state attribute of the calling object after receiving the calling instruction sent by the calling object, and display the target interface when the running state attribute meets the condition. The running state attribute is an attribute for indicating the running condition of the calling object in the terminal.
In order to make the solution shown in the embodiments of the present application easy to understand, several terms appearing in the embodiments of the present application will be described below.
Calling an object: refers to a logical entity with calling capability in the mobile terminal. In one possible approach, the invocation object may be at least one of a system application, a system service, a third party application, a process, or a thread. In the embodiment of the present application, the invocation object may be a logical entity that is currently running.
In one possible implementation, the calling object is different from the object corresponding to the target interface. For example, the calling object is application a1, application a1 displays a floating window in the screen, the floating window comprises a link, and when the link is triggered, a calling instruction is generated. The call instruction is used to call a target interface in application a 2. That is, the object corresponding to the target interface is application a 2. In this call scenario, the running state attribute is used to indicate the running condition of the application a1 in the terminal. Due to the fact that the method and the device for obtaining the running state attribute of the calling object can obtain the running state attribute of the calling object when the calling object and the target interface object correspond to different objects. Therefore, when the target interface is called by other applications, whether calling is safe can be determined by detecting the running condition of the calling object, and whether the target interface is displayed is further determined.
A target interface: is a specified user interface. When the target interface is displayed, the target interface belongs to the designated application. If the appointed application is not started, the terminal can start the appointed application first and then display the target interface; and if the specified application is started and runs in the background, the terminal transfers the application to the foreground to run and displays the target interface.
Calling an instruction: for indicating the invocation of the target interface. Optionally, the target interface is a designated user interface. When the target interface is successfully invoked, it may be displayed in the screen.
In the method for processing the call instruction, when the target interface has no active task (english: task), the call object can transmit the call instruction to the system end through startActivity. In the system side, the AMS (english: activitymanagervervice) receives the call instruction and transmits it to the ActivityStarter, the ActivityStarter transmits the call instruction to the background start module, and the background start module determines whether to respond to the call instruction. And when the starting module judges that the running state attribute of the calling object meets the preset condition, the terminal newly starts the target object and displays a target interface corresponding to the target object in the screen.
In another way of processing a call instruction, which is shown in the present application, when a target interface corresponds to an active task (english: task), a call object can transmit the call instruction to a system end through movetasktorfront. In the system side, the AMS (english: activitymanagervervice) receives the call instruction and transmits it to the ActivityStarter, the ActivityStarter transmits the call instruction to the background start module, and the background start module determines whether to respond to the call instruction. And when the starting module judges that the running state attribute of the calling object meets the preset condition, the terminal sets the task with activity corresponding to the target interface as a foreground task and displays the target interface.
The running state attribute is as follows: the method is used for indicating the running condition of the calling object in the terminal. There may be various attributes that can indicate the operation state of the terminal during the operation of the terminal. In one scenario, the run state attribute includes a resident state attribute and/or a display state attribute. In the present application, the resident state attribute is used to indicate the condition that the calling object is resident in the memory.
Alternatively, the resident state property may be a persistence property that can determine, by a logical value, whether the property is in effect. When the resident state attribute is true, or 1, the call object is an in-memory resident application, that is, the call object is a persistent application. When the resident state attribute is false, or 0, the calling object is not a memory resident application.
In the embodiment of the present application, the application resident in the memory is started to run when the operating system is started. The resident memory application is restarted by the operating system after being forcibly closed.
Optionally, the resident state attribute is further used to indicate a resident priority of the call object in the terminal memory. For example, the operating system of the terminal may classify the residence priority into four levels, level 1, level 2, level 3, and level 4. The priority levels are 1 st level, 2 nd level, 3 rd level and 4 th level in sequence from high to low. The operating system may determine whether the running state attribute meets a preset condition according to the level of the priority. For example, the preset condition is that the priority of the call object is level 1, or the preset condition is that the priority of the call object is level 1 and level 2, or the preset condition is that the priority of the call object is level 1, level 2 and level 3. The embodiments of the present application do not limit this.
In the present application, the display status attribute is used to indicate a display mode of the call object in the screen. It should be noted that the display mode of the call object in the screen may include a portion of the call object displayed in the screen, or a system interface of the call object displayed in the terminal. Alternatively, the portion of the invocation object displayed in the screen may be at least one of a dialog box, a float, a floating window, or a control bar. Optionally, the system interface displayed by the calling object in the terminal may be at least one of a multitasking interface, a setting interface, a negative screen or a notification bar interface.
It should be noted that, the solution provided in the present application determines whether the call instruction is safe according to the operation condition of the call object in the terminal. The method and the device have the advantages that the operation state attribute of the calling object changes in real time along with the operation state of the calling object in the terminal, so that the method and the device can provide corresponding display interfaces for the same calling object in different operation states. For example, when the running state attribute of the calling object meets the preset condition, it indicates that the running condition of the calling object is safe, and the terminal allows the calling object to call the target interface and display the target interface. When the running state attribute of the calling object does not meet the preset condition, the current running condition of the calling object is unsafe, the terminal does not allow the calling object to call the target interface, and the target interface is forbidden to be displayed, so that the safety of the terminal is protected. Therefore, the scheme provided by the application can determine whether the call instruction sent by the current call object is safe or not according to the real-time operation behavior of the call object, so that the scheme provided by the embodiment of the application can dynamically protect the terminal in real time.
In addition, in another possible mode, the scheme provided by the application does not need to know the identification of the calling object, does not need to perform static matching according to the identification of the calling object, and when the calling object is a preset object, the calling instruction is allowed or prohibited. Compared with a static matching scheme, the scheme for determining whether the target interface is displayed or not according to the running condition of the calling object in the terminal has a wider application range, and can always play a good role in protecting the terminal in the explosive growth environment of the current application.
For example, the method for displaying an interface shown in the embodiment of the present application may be applied to a terminal, where the terminal has a display screen and a function of displaying an interface. In one possible implementation, the terminal may be a mobile terminal. The terminal may include a mobile terminal such as a mobile phone, a tablet computer, a laptop computer, a set-top box, smart glasses, a smart watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-and-read machine, an electronic paper book or an electronic dictionary.
Referring to fig. 1, fig. 1 is a block diagram of a terminal according to an exemplary embodiment of the present application, and as shown in fig. 1, the terminal includes a processor 120, a memory 140, and a display component 160, where the memory 140 stores at least one instruction, and the instruction is loaded and executed by the processor 120 to implement a method for displaying an interface according to various method embodiments of the present application. Display component 160 is used to display images formed by processing by processor 120.
In the present application, the terminal 100 is an electronic device having a function of displaying a target interface. When the terminal 100 receives a call instruction sent by a call object, the terminal 100 can obtain an operation state attribute of the call object, the operation state attribute is used for indicating the operation condition of the call object in the terminal, and when the operation state attribute meets a preset condition, a target interface is displayed.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 140 includes a non-transitory computer-readable medium. The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
A display component 160 for displaying an image, the data supporting the display of the image may be data in the memory 140, which is processed by the processor 120 and displayed in the display component 160. The embodiment of the present application does not limit the specific physical structure of the display assembly 160, and any display assembly that can form a visual sense can be used to realize the functions of the display assembly 160.
Referring to fig. 2, fig. 2 is a flowchart of a method for displaying an interface according to an exemplary embodiment of the present disclosure. The method for displaying the interface can be applied to the terminal shown in fig. 1. In fig. 2, taking the terminal as a mobile terminal as an example for explanation, the method for displaying the interface includes:
In the embodiment of the present application, the invocation object may have different implementation forms, and the invocation object is exemplified by a third-party application. In the process of starting up and running the terminal, the third-party application installed in the terminal can have three states, 1, not starting; 2. running in a background; 3. and foreground operation.
In actual application, when the third-party application is in an un-started state, the third-party application cannot send out a call instruction. When the third-party application is in a background running state or a foreground running state, the third-party application can send out a calling instruction. In this embodiment of the application, the third-party application may issue a call instruction when receiving an operation specified by a user. For example, the third-party application may be a background application, the background application displays a link in the floating window, and when the link is triggered, the third-party application sends a call instruction, and the target interface is called through the call instruction.
In another possible implementation manner, when the invocation object does not have a visualized user interface, the invocation object may be in a running state, where the running state refers to a state that occupies a certain memory space and processor resources.
In the embodiment of the application, the terminal can acquire the running state attribute of the calling object according to the calling instruction. In different application scenarios, the running state attribute may be embodied as different parameter values. For details, reference may be made to the foregoing explanation on the attribute of the running state of the noun, which is not limited in this embodiment.
In a possible obtaining mode, the terminal can determine a calling object which sends the calling instruction according to the calling instruction, and then determine the running state attribute of the calling object according to the identification of the calling object.
And step 230, displaying a target interface when the running state attribute meets the preset condition.
In the embodiment of the application, the terminal can determine whether the running state attribute meets the preset condition, when the running state attribute meets the preset condition, the running condition of the calling object is shown to meet the preset running condition of the terminal, the calling behavior is safe calling behavior, and the terminal displays the target interface.
In one possible implementation, the target interface is a full screen displayed interface. In another possible implementation, the target interface is an interface displayed through a pop-up window. The pop-up window occupies a portion of the display area in the screen.
In summary, the method for displaying an interface provided in this embodiment can obtain the running state attribute of the call object by receiving the call instruction sent by the call object, and display the target interface used by the call instruction for calling when the running state attribute meets the preset condition. Therefore, after the calling instruction is received, whether the target interface is displayed or not can be judged according to the relation between the running condition of the calling object in the terminal for indicating and the preset condition, the calling object calling target interface with the running condition not conforming to the preset condition is avoided, and the capability of safely displaying the target page by the terminal is improved.
Based on the solution disclosed in the previous embodiment, the terminal can also determine whether to display the target interface according to the residence status attribute and/or the display status attribute, please refer to the following embodiment.
Referring to fig. 3, fig. 3 is a flowchart of a method for displaying an interface according to another exemplary embodiment of the present application. The method for displaying the interface can be applied to the terminal shown above. In fig. 3, the method of displaying an interface includes:
In the embodiment of the present application, the execution process of step 310 is the same as the execution process of step 210, and is not described herein again.
In the embodiment of the present application, the terminal can obtain the User Identification UID (english: User Identification) of the call target. In one acquisition mode, the terminal determines the user identification UID of the call object that issued the call instruction according to the call instruction.
In another possible implementation manner, as an alternative step of obtaining the user identification UID of the invocation object, if the invocation object is a third-party application, the terminal may further obtain an installation package name of the invocation object.
And 322, acquiring the running state attribute of the calling object according to the UID.
In the embodiment of the application, the terminal acquires the running state attribute of the calling object according to the UID. In a specific execution scenario, the terminal may implement associating and storing the UID and the running state attribute. In a possible scenario, after the terminal acquires the UID, the terminal may acquire the running state attribute stored in association with the UID.
Please refer to table one, which shows the correspondence between the user identification UID and the running state attribute.
Watch 1
UID | UID1 | UID2 | UID3 | UID4 |
Running state attributes | Attribute group 1 | Attribute group 2 | Attribute group 3 | Attribute group 4 |
In the embodiment shown in table one, the user identification UIDs of different calling objects correspond to different running state attributes. For example, when the terminal determines that the UID of the call object is the UID4, the terminal determines the corresponding attribute group 4 as the running state attribute, and performs the subsequent operation.
Please refer to table two, which shows the corresponding relationship between the package name (english: packages) and the running status attribute.
Watch two
Name of bag | com.xx.A | com.yy.C | com.xx.B | com.zz.D |
Running state attributes | Attribute group 1 | Attribute group 2 | Attribute group 3 | Attribute group 4 |
In the embodiment shown in table two, different installation package names of the calling object correspond to different running state attributes. Xx.a call object with package name com.yy.c corresponds to the run state attribute of attribute group 1, com.yy.c corresponds to the run state attribute of attribute group 2, com.xx.b corresponds to the run state attribute of attribute group 3, and com.zz.d corresponds to the run state attribute of attribute group 4.
It should be noted that the UID and the package name are identifiers of the call object at different levels, and both functions are to uniquely identify the call object in the terminal. After the terminal determines the call object, the running state attribute of the call object itself can also be determined on the basis of the call object. For example, based on the data shown in the first and second tables, the terminal may specify the call object corresponding to the attribute group 1 by the UID1 or by the package name com.xx.a. Therefore, in the specific implementation process of the scheme shown in the application, the running state attribute of the specified calling object can be determined in different ways.
In this embodiment, after the terminal performs step 322, step 331 and step 332 may be performed, step 341 and step 342 may be performed, step 350 may be performed, and step 360 may be performed.
In the embodiment of the application, when the resident state attribute is the persistence attribute persistence, the terminal detects whether the persistence attribute of the calling object is valid. In one possible approach, the persistence property of the invocation object is valid when the logical assignment is one of 1, true, or true.
In an embodiment of the present application, the run state attribute includes a resident state attribute.
In the embodiment of the application, when the persistence attribute persistence of the calling object is valid, the terminal can enable the calling object to successfully call the target interface and display the target interface in the screen.
Referring to fig. 4, fig. 4 is a schematic process diagram of a display interface provided based on the embodiment shown in fig. 3. In fig. 4, the calling object is a call application 410, and the target interface called by the call instruction is an incoming call interface 420. When the terminal receives an external incoming call request, the call application 410 issues a call instruction, and the call instruction is used for calling the incoming call interface 420. The processor of the terminal acquires the identifier UID8 of the call application 410 according to the call instruction, and acquires the corresponding persistence attribute persistence according to the identifier UID 8. Since the persistence attribute persistence of the call application 410 is valid, that is, the call application 410 is a persistence application, at this time, the processor of the terminal will respond to the call instruction and display the incoming call interface of the user interface 420.
In the embodiment of the application, the display state attribute of the calling object can also be used for indicating whether the calling object has a visual control in the screen. Wherein the visual control is a visualization window other than the user interface of the target object. In an embodiment of the application, the run state attribute includes a display state attribute.
Alternatively, the visual control may be any graphically displayable control other than a user interface and a launch icon.
For example, the visual control may be a floating window, such as a picture-in-picture when the call object is a video application, and the floating window may float on the top layer of the screen to display the content played by the video application.
For example, the visual control may be a float that may float at the uppermost layer of the screen, which may reside at the edge of the screen, visually appearing to be attached to the edge of the screen. For example, when the user drags the buoy to the middle of the screen to be released, the buoy can automatically adsorb on the edge closest to the screen.
For example, the visual control may be a dialog box, which may be a picture-in-picture suspended in the screen. For example, the invocation object is an instant social application, and the dialog box may be a picture-in-picture suspended in the screen. The dialog box can receive text entered by the user and display information received by the instant social application.
In step 342, if the calling instruction is generated when the visual control is triggered, the target interface is displayed.
In the embodiment of the application, the calling instruction is generated when the visual control is triggered, and the terminal can respond to the calling instruction of the calling object. After the terminal responds to the calling instruction, the terminal can display the target interface.
Referring to fig. 5, fig. 5 is a schematic process diagram of another target interface provided based on the embodiment shown in fig. 3. In fig. 5, taking the example that the calling object is the application a5 as an example, a floating window 520 of the application a5 is displayed in the user interface 510, a jump link 521 is displayed in the floating window 520, and when the jump link 521 is clicked and triggered, the application a5 issues a call instruction for calling a target interface 530 in the application a 6. The processor in the terminal determines, by means of the judgment, that the call instruction is generated when the visual control (i.e., the floating window 520) is triggered, and the terminal displays the target interface 530 on the screen.
And step 350, when the display state attribute is used for indicating the calling object to display the multitasking interface in the screen, displaying the target interface.
In the embodiment of the application, the terminal can also display a target interface when the display state attribute is used for indicating the calling object to display the multitasking interface in the screen. It should be noted that the display state attribute includes an identifier for indicating an interface where the call object is located, and when the user interface where the call object is located is a multitask interface, the terminal can respond to the call instruction and display the target interface. In an embodiment of the application, the run state attribute includes a display state attribute.
Referring to fig. 6, fig. 6 is a schematic process diagram of another display interface provided based on the embodiment shown in fig. 3. In fig. 6, when the terminal receives a touch operation on a card 621 in the multitasking interface 610, the calling object is a process for running the multitasking interface 610. The process sends a call instruction to the target interface 630 corresponding to the card 621, and when detecting that the call object displays the multitask interface 610 in the screen, the processor of the terminal responds to the call instruction and displays the target interface 630 in the screen.
And step 360, when the running state attribute does not meet the preset condition, displaying a call failure prompt, wherein the call failure prompt is used for indicating that the call instruction has been rejected to respond.
In the embodiment of the application, the terminal can display the call failure prompt when the running state attribute does not meet the preset condition, wherein the call failure prompt is used for indicating that the call operation of the call object and the target interface fails, namely the call failure prompt is used for indicating that the call instruction is rejected to respond.
Referring to fig. 7, fig. 7 is a schematic view of a user interface displayed when a terminal rejects a call according to the embodiment shown in fig. 3. In fig. 7, the calling object is a malicious application a44, and when the malicious application a44 issues a call instruction, the processor of the terminal acquires the identity of the malicious application a 44. In one possible approach, the processor of the terminal obtains the UID of the malicious application a44, and in another possible approach, the processor of the terminal obtains the packet name of the malicious application a 44. After the identification of the malicious application A44 is obtained, the terminal obtains the running state attribute corresponding to the identification, when the persistence attribute persistence in the running state attribute is invalid, and the calling instruction is not generated when the visual control of the malicious application A44 is triggered, and the malicious application A44 is not a multitask interface displayed in the screen, the processor of the terminal refuses to respond to the calling instruction, and displays a calling failure prompt 710 in the screen, wherein the calling failure prompt can display 'illegal calling behavior of intercepted application A44'. Optionally, a delete control 721 and an ignore control 722 may also be displayed in the screen. When the delete control 721 is triggered, the terminal will delete the malicious application a 44. When the ignore control 722 is triggered, the terminal will no longer display the call failure prompt 710.
Optionally, in another possible implementation manner of the present application, the terminal can further directly determine whether to respond to the call instruction according to the identifier of the call object based on the method shown in fig. 3. For example, a table of UIDs is prestored in the terminal, and when the UID of the call target is the same as the UID in the table, the call instruction is responded.
In one possible approach, the UIDs in the table may include a UID of a system-provided call object, a UID of a call object having Root rights, and a UID of a call object having an NFC (Near Field Communication) function.
In another possible mode, when the calling object comprises a focus window, namely the calling object is a foreground application, the terminal responds to the calling instruction.
In summary, in this embodiment, whether to respond to the call of the call object to the target interface is determined according to whether the resident state attribute of the call object is the persistent attribute persistence, and when the resident state attribute of the call object is valid, the terminal will respond to the call instruction and display the target interface. The terminal can ensure that the object with the persistent attribute valid can be successfully called and the target interface is displayed, and when the running state attribute of the calling object does not accord with the preset condition, the calling instruction is refused and the calling failure prompt is displayed, so that the capability of the object with the persistent attribute valid can be normally called on the premise that the safety of the terminal in displaying the target interface is improved.
The method for displaying the interface provided by the embodiment can also display the target interface when the running state attribute is in accordance with the operation state attribute used for indicating that the calling object displays the visual control in the screen and the calling instruction is generated when the visual control is triggered under the condition that the target interface belongs to the target object and the target object is different from the calling object. According to the method and the device for displaying the target interface, the calling instruction can be responded and the target interface is displayed under the condition that the calling object and the target object to which the target interface belongs are not the same object and the calling instruction is generated when the visual control in the screen of the calling object is triggered, so that the terminal guarantees the capability of calling other target interfaces from the small desktop suspended control initiated by a user actively on the premise that the safety of the terminal in displaying the target interface is improved.
The method for displaying the interface provided by the embodiment can also display the target interface when the running state attribute is used for indicating the calling object to display the multitask interface in the screen. The terminal can ensure that the calling instruction can be successfully responded when receiving the target interface called by touch operation in the multitask interface, so that the terminal ensures the capability of responding to the calling target interface from the multitask interface on the premise of improving the safety when the target interface is displayed.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 8, fig. 8 is a block diagram illustrating an apparatus for displaying an interface according to an exemplary embodiment of the present disclosure. The means for displaying the interface may be implemented as all or part of the terminal in software, hardware, or a combination of both. The device includes:
the receiving module 810 is configured to receive a call instruction sent by a call object, where the call instruction is used to call a target interface.
An obtaining module 820, configured to obtain an operation state attribute of the call object, where the operation state attribute is used to indicate an operation condition of the call object in the terminal.
And a display module 830, configured to display the target interface when the running state attribute meets a preset condition.
In an alternative embodiment, the operating state attributes involved in the apparatus include: the resident state attribute is used for indicating the condition that the calling object is resident in the memory; and/or displaying a state attribute, wherein the state attribute is used for indicating the display mode of the calling object in the screen.
In an optional embodiment, the obtaining module 820 is configured to obtain a user identification UID of the invocation object; and acquiring the running state attribute of the calling object according to the UID.
In an alternative embodiment, the display module 830 is configured to detect whether the persistence property of the invocation object is valid when the resident state property is the persistence property; and when the persistence attribute persistence of the calling object is effective, displaying the target interface, wherein the running state attribute comprises the resident state attribute.
In an optional embodiment, the running state attribute includes the display state attribute, the target interface belongs to a target object, the target object and the calling object are different objects, and the display module 830 is configured to detect whether the calling instruction is generated when the visual control is triggered when the display state attribute is used to indicate that the calling object displays a visual control in a screen, where the visual control is a visual window other than a user interface of the target object; and if the calling instruction is generated when the visual control is triggered, displaying the target interface.
In an optional embodiment, the display module 830 is configured to display the target interface when the display status attribute is used to indicate that the invocation object displays a multitasking interface in the screen, where the operation status attribute includes the display status attribute.
In an optional embodiment, the apparatus further includes a prompt module, where the prompt module is configured to display a call failure prompt when the running state attribute does not meet the preset condition, where the call failure prompt is used to indicate that the call instruction has been rejected for response.
The embodiment of the present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the method for displaying an interface according to the above embodiments.
It should be noted that: in the method for displaying an interface according to the embodiment, when the device for displaying an interface is used to execute the method for displaying an interface, only the division of the functional modules is used as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for displaying an interface and the method for displaying an interface provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the implementation of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A method of displaying an interface, the method comprising:
receiving a calling instruction sent by a calling object, wherein the calling instruction is used for calling a target interface;
acquiring the running state attribute of the calling object, wherein the running state attribute is used for indicating the running condition of the calling object in a terminal;
and when the running state attribute meets a preset condition, displaying the target interface.
2. The method of claim 1, wherein the run state attribute comprises:
the resident state attribute is used for indicating the condition that the calling object is resident in the memory;
and/or the presence of a gas in the gas,
and displaying a state attribute, wherein the state attribute is used for indicating the display mode of the calling object in the screen.
3. The method of claim 2, wherein obtaining the run state attribute of the calling object comprises:
acquiring a user identity certificate UID of the calling object;
and acquiring the running state attribute of the calling object according to the UID.
4. The method according to claim 3, wherein the running state attribute comprises the resident state attribute, and the displaying the target interface when the running state attribute meets a preset condition comprises:
when the resident state attribute is a persistence attribute persistence, detecting whether the persistence attribute of the calling object is valid;
and when the persistence attribute persistence of the calling object is effective, displaying the target interface.
5. The method according to claim 3, wherein the target interface belongs to a target object, the target object and the calling object are different objects, the run state attribute includes the display state attribute, and when the run state attribute meets a preset condition, displaying the target interface includes:
when the display state attribute is used for indicating that the calling object displays a visual control in a screen, detecting whether the calling instruction is generated when the visual control is triggered;
and if the calling instruction is generated when the visual control is triggered, displaying the target interface.
6. The method according to claim 3, wherein the running state attribute comprises the display state attribute, and the displaying the target interface when the running state attribute meets a preset condition comprises:
and when the display state attribute is used for indicating the calling object to display a multi-task interface in the screen, displaying the target interface.
7. The method of any of claims 1 to 6, further comprising:
and when the running state attribute does not meet the preset condition, displaying a call failure prompt, wherein the call failure prompt is used for indicating that the call instruction is refused to respond.
8. An apparatus for displaying an interface, the apparatus comprising:
the receiving module is used for receiving a calling instruction sent by a calling object, and the calling instruction is used for calling a target interface;
the obtaining module is used for obtaining the running state attribute of the calling object, and the running state attribute is used for indicating the running condition of the calling object in the terminal;
and the display module is used for displaying the target interface when the running state attribute meets the preset condition.
9. A terminal, characterized in that it comprises a processor, a memory connected to said processor, and program instructions stored on said memory, said processor implementing the method of displaying an interface according to any one of claims 1 to 7 when executing said program instructions.
10. A computer-readable storage medium, in which program instructions are stored, which program instructions, when executed by a processor, implement a method of displaying an interface as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910694634.4A CN112306313B (en) | 2019-07-30 | 2019-07-30 | Interface display method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910694634.4A CN112306313B (en) | 2019-07-30 | 2019-07-30 | Interface display method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112306313A true CN112306313A (en) | 2021-02-02 |
CN112306313B CN112306313B (en) | 2022-08-02 |
Family
ID=74330224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910694634.4A Active CN112306313B (en) | 2019-07-30 | 2019-07-30 | Interface display method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306313B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105306727A (en) * | 2015-11-10 | 2016-02-03 | Tcl集团股份有限公司 | Method and system for mobile terminal to answer call |
KR20160014126A (en) * | 2014-07-28 | 2016-02-11 | 주식회사 엘지유플러스 | Communication apparatus, control method thereof, and recording medium for recording program for executing the control method |
CN106126232A (en) * | 2016-06-22 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of interface starts method and device |
CN106127030A (en) * | 2016-06-22 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of interface control method and device |
CN108595665A (en) * | 2018-04-28 | 2018-09-28 | 北京小米移动软件有限公司 | The display methods and device of web page contents |
CN108810275A (en) * | 2018-06-08 | 2018-11-13 | 麒麟合盛网络技术股份有限公司 | A kind of information displaying method and device |
CN109725947A (en) * | 2017-10-30 | 2019-05-07 | 华为技术有限公司 | A kind of processing method and terminal of unread message |
-
2019
- 2019-07-30 CN CN201910694634.4A patent/CN112306313B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20160014126A (en) * | 2014-07-28 | 2016-02-11 | 주식회사 엘지유플러스 | Communication apparatus, control method thereof, and recording medium for recording program for executing the control method |
CN105306727A (en) * | 2015-11-10 | 2016-02-03 | Tcl集团股份有限公司 | Method and system for mobile terminal to answer call |
CN106126232A (en) * | 2016-06-22 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of interface starts method and device |
CN106127030A (en) * | 2016-06-22 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of interface control method and device |
CN109725947A (en) * | 2017-10-30 | 2019-05-07 | 华为技术有限公司 | A kind of processing method and terminal of unread message |
CN108595665A (en) * | 2018-04-28 | 2018-09-28 | 北京小米移动软件有限公司 | The display methods and device of web page contents |
CN108810275A (en) * | 2018-06-08 | 2018-11-13 | 麒麟合盛网络技术股份有限公司 | A kind of information displaying method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112306313B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11467855B2 (en) | Application preloading method and device, storage medium and terminal | |
US9477527B2 (en) | Resource optimization method and apparatus | |
CN108920240B (en) | User interface display method, device, terminal and storage medium | |
US9489505B2 (en) | Method for displaying information on a display device of a terminal | |
CN106201574B (en) | Application interface starting method and device | |
US7873915B2 (en) | Suppressing dialog boxes | |
US20160350525A1 (en) | Application Program Management Method, Device, Terminal, and Computer Storage Medium | |
EP2985695A1 (en) | Method and device for setting application program state | |
US11409669B2 (en) | Memory space protection | |
CN106412858B (en) | A kind of method and terminal for robbing red packet | |
US10691390B2 (en) | Method and device for video rendering | |
US9727351B2 (en) | Method and device for setting status of application | |
CN114341784A (en) | Touch event processing method and device, mobile terminal and storage medium | |
US20240231892A1 (en) | Method, apparatus, device and storage medium for searching and killing a front-end process | |
CN106155870B (en) | Terminal optimization processing method and device and terminal | |
CN112306313B (en) | Interface display method, device, terminal and storage medium | |
CN101617322B (en) | Information processing device, information processing method, and program | |
CN111901318A (en) | Method, system and equipment for detecting command injection attack | |
CN108985098B (en) | Data processor | |
CN109840113B (en) | Application data processing method and equipment, storage medium and terminal thereof | |
US20120246723A1 (en) | Windows kernel alteration searching method | |
CN106933666B (en) | Method for calling information input program and electronic equipment | |
CN106022105B (en) | A kind of command processing method and device | |
CN110515736B (en) | Method, device, terminal and storage medium for limiting background object | |
US9904783B2 (en) | Information processing method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |