CN111026479A - Interface switching method, terminal and computer readable storage medium - Google Patents

Interface switching method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN111026479A
CN111026479A CN201911179940.0A CN201911179940A CN111026479A CN 111026479 A CN111026479 A CN 111026479A CN 201911179940 A CN201911179940 A CN 201911179940A CN 111026479 A CN111026479 A CN 111026479A
Authority
CN
China
Prior art keywords
interface
information
started
starting
application
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
CN201911179940.0A
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.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN201911179940.0A priority Critical patent/CN111026479A/en
Publication of CN111026479A publication Critical patent/CN111026479A/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
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for switching interfaces, which comprises the following steps: acquiring background application information after detecting that a background application starts an interface to be started; and when the background application information is not matched with the foreground application information, intercepting the operation of starting the interface to be started by the background application according to a preset rule. The method for switching the interface directly intercepts the operation of starting the interface to be started by the background application when the background application information is not matched with the foreground application information, avoids directly switching to foreground display when the background application starts the interface to be started, and effectively intercepts the interference operation generated by switching the interface to be started to the foreground display when the background application starts the interface to be started.

Description

Interface switching method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method for switching an interface, a terminal, and a computer-readable storage medium.
Background
With the continuous development of terminal technology, the functions of the terminal are increasing, the content on the terminal is also increasing, and the diversification of the functions of the terminal is realized by installing installation packages of different application programs on the terminal. At present, when a user interacts with an application display interface running in a foreground, when a background program is started, the display interface mode of directly popping up a popup window or opening the background program is frequently switched to the foreground, or the popup window is frequently displayed to the foreground to prevent the user from interacting with the application display interface running in the foreground, so that the user is required to manually close the popup window, and the interaction between the user and the running application interface is interfered.
Disclosure of Invention
The invention mainly aims to provide an interface switching method, a terminal and a computer readable storage medium, aiming at avoiding the situation that when a background application starts a to-be-started interface, the interface is directly switched to a foreground display, so that the interference operation generated by switching the background application to start the to-be-started interface to the foreground display is effectively intercepted.
In order to achieve the above object, the present invention provides a method for switching an interface, including:
s10: acquiring background application information after detecting that a background application starts an interface to be started;
s20: and when the background application information is not matched with the foreground application information, intercepting the operation of starting the interface to be started by the background application according to a preset rule.
Optionally, before step S20, the method further includes:
acquiring a foreground application information set, wherein whether the foreground application information set contains application information matched with the background application information or not is judged, and if not, the background application information is determined not to be matched with the foreground application information.
Optionally, the preset rule includes at least one of:
acquiring the starting authority of the interface to be started: when the starting authority is a first preset authority, executing operation of intercepting the background application to start an interface to be started, and/or when the starting authority is a second preset authority, displaying the interface to be started on a foreground;
acquiring the priority of the interface to be started, and intercepting the operation of starting the interface to be started by the background application when the priority of the interface to be started is lower than the priority of the current display interface of the foreground application;
and acquiring the characteristic information of the interface to be started, and intercepting the operation of starting the interface to be started by the background application when the characteristic information is matched with preset interception characteristic information.
Optionally, the step of obtaining the starting authority of the interface to be started includes:
and outputting a starting authority selection interface according to the interface to be started, and receiving a selection instruction to acquire the starting authority of the interface to be started.
Optionally, after the step of receiving a selection instruction to obtain the start permission of the interface to be started, the method further includes:
and when the starting authority is a third preset authority, intercepting the operation of starting the interface to be started by the background application, and shielding the operation of starting the interface to be started by the background application.
Optionally, after the step of S20, the method further includes:
if the operation of starting the interface to be started by the background application is intercepted, outputting prompt information; and/or the presence of a gas in the gas,
if the number of times of interception of the operation of starting the interface to be started by the background application reaches a preset number, closing or shielding the background application, and/or outputting prompt information.
In order to achieve the above object, the present invention further provides an interface switching method, where the interface switching method includes:
acquiring current interface information and application information;
detecting whether the current interface information is matched with the application information;
and processing the current interface according to the matching result.
Optionally, the application information includes foreground application information and/or background application information.
Optionally, step S22 includes at least one of:
acquiring the starting permission of the current interface: when the starting authority is a first preset authority, judging that the current interface information is not matched with the application information, and/or when the starting authority is a second preset authority, judging that the current interface information is matched with the application information;
acquiring the priority of the current interface, and judging that the current interface information is not matched with the application information when the priority of the current interface is lower than that of a current display interface of foreground application;
and acquiring the characteristic information of the current interface, and judging that the current interface information is not matched with the application information when the characteristic information is matched with preset interception characteristic information.
Optionally, step S23 includes at least one of:
if so, continuing to display the current interface;
if not, closing or hiding the current interface and/or outputting prompt information.
In addition, to achieve the above object, the present invention further provides a terminal, including: the interface switching method comprises a memory, a processor and a program for switching the interface, wherein the program for switching the interface is stored in the memory and can run on the processor, and the steps of the interface switching method are realized when the program for switching the interface is executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, on which a program for switching an interface is stored, and the program for switching an interface implements the steps of the method for switching an interface when being executed by a processor.
According to the interface switching method, after the operation of the background process starting interface is detected, when the process information of the background process is not matched with the application information of the application program running in the foreground, the operation of starting the interface to be started by the background application is directly intercepted, the situation that the interface to be started is directly switched to the foreground for display when the background application starts the interface to be started is avoided, and the interference operation generated when the interface to be started is switched to the foreground for display when the background application starts the interface to be started is effectively intercepted. The invention also provides a method for switching the interface, which processes the current interface according to the matching result by detecting whether the current interface information is matched with the application information, for example, when the current interface information is not matched with the application information, the current interface is closed or hidden, thereby reducing the interaction interference between the user and the application display interface operated by the foreground.
Drawings
Fig. 1 is a block diagram of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for switching an interface according to the present invention;
FIG. 3 is a flowchart illustrating a method for switching interfaces according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for switching interfaces according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fifth embodiment of a method for switching an interface according to the present invention;
FIG. 6 is a flowchart illustrating a method for switching interfaces according to a sixth embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for switching interfaces according to a seventh embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for switching interfaces according to an eighth embodiment of the present invention;
FIG. 9 is a flowchart illustrating a ninth embodiment of a method for switching an interface according to the present invention;
FIG. 10 is a schematic diagram of a display interface of a method for switching interfaces according to the present invention;
fig. 11 is a schematic diagram illustrating a method for switching an interface according to the present invention after the display interface is hidden.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal device may be implemented in various forms. For example, the terminal devices described in the present invention may include terminal devices such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like.
Referring to fig. 1, a block diagram of a terminal device according to an embodiment of the present invention, where the terminal device 100 includes: memory 101, processor 102, display unit 103, and the like. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 101 stores a central control system and a switching interface program. The processor 102 is a control center of the terminal device 100, and the processor 102 executes the switching interface program stored in the memory 101 to implement the steps of the method of switching the interface of the present invention.
The Display unit 103 includes a Display panel, which may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), and the like, and displays an interface for starting an application process through the Display panel.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for switching an interface according to a first embodiment of the present invention. In this embodiment, the method for switching the interface includes the following steps:
step S10, acquiring background application information after detecting the operation of starting the interface to be started by the background application;
and step S20, intercepting the operation of starting the interface to be started by the background application according to a preset rule when the background application information is not matched with the foreground application information.
It should be noted that the application information includes an application program name, a process information set, and storage path information, and there are various ways for starting the interface to be started, for example, a user clicks a desktop icon of the terminal device to generate a start request, or the terminal device receives some operation trigger to automatically generate a start request, such as an alarm clock, a music reminder, a sports reminder, and the like, and may also generate a start request through some background application programs.
In the actual application process, the application currently running in the foreground may be one application, or may be multiple applications, for example, the terminal device is split to run multiple applications simultaneously. After detecting that the background application starts the operation of the interface to be started, acquiring background application information, judging whether the background application information is matched with foreground application information or not, judging whether application information matched with the background application information exists in the foreground application information set or not by acquiring a foreground application information set, if not, the background application information is not matched with the foreground application information, and in the same way, if so, the background application information is matched with the foreground application information; or judging whether the process information of the background process exists in a process information set in the application information of the application program currently running in the foreground of the terminal equipment or exists in a plurality of process information sets corresponding to the application information of a plurality of application programs currently running in the foreground of the terminal equipment, wherein the process information comprises a process number and a packet name, namely, the specific step of judging whether the process information of the background process is matched with the application information of the application program currently running in the foreground comprises the following steps:
acquiring a process information set in application information of an application program running in a foreground;
judging whether process information matched with the process information of the background process exists in the process information set or not;
if the process information of the background process is matched with the application information of the application program running in the foreground, determining whether the process information of the background process is matched with the application information of the application program running in the foreground;
and if the information does not exist, determining that the process information of the background process is not matched with the application information of the application program running in the foreground.
In the actual application process, when the operation of intercepting the starting of the interface to be started by the background application is executed, the user can be prompted to know through modes of status bar notification, message prompt boxes, voice and the like, and in addition, the user can be prompted to have abnormal application programs in the background and the like. Optionally, after the step of intercepting the operation of starting the interface to be started by the background application is executed, the operation of closing or shielding the background application may be executed at the same time, so as to reduce occupation of system resources. It can be understood that, when the process identifier matches with the foreground process identifier, the interface to be started can be directly displayed on the foreground; and a selection prompt interface can also be output to prompt whether the interface to be started is output to a foreground for display, and the like.
In the actual application process, there are various preset rules for intercepting the operation of the background application for starting the interface to be started according to the preset rules, and the operation of the background application for starting the interface to be started can be intercepted by acquiring the starting authority of the interface to be started when the starting authority meets the preset authority, for example, the operation of the background application for starting the interface to be started is intercepted when the starting authority is the first preset authority; the priority of the interface to be started can also be obtained, and when the priority of the interface to be started is lower than that of the current display interface of the foreground application, the operation of starting the interface to be started by the background application is intercepted; the method and the device for intercepting the interface to be started can further acquire the feature information of the interface to be started, and when the feature information is matched with preset interception feature information, the background application is intercepted to start the operation of the interface to be started.
In the technical scheme disclosed in this embodiment, after the operation of starting the interface to be started by the background application is detected, when the process identifier corresponding to the interface to be started is not matched with the process identifier of the foreground process, the operation of starting the interface to be started by the background application is directly intercepted, so that the situation that the interface to be started is directly switched to the foreground for display when the interface to be started is started by the background application is avoided, and the interference operation generated when the interface to be started is switched to the foreground for display when the background application is started is effectively intercepted.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the method for switching an interface according to the present invention, in which step S20 includes:
step S21, when the background application information is not matched with the foreground application information, acquiring the starting authority of the interface to be started;
step S22, when the starting authority is a first preset authority, executing the step of intercepting the operation of starting the interface to be started by the background application;
in the actual application process, the starting authority of the interface to be started is set in various ways, and the starting authority of the interface to be started can be directly set in the background through a user; the starting authority of the interface to be started can be set according to the starting authority selection interface output by the interface to be started; the starting authority of the interface to be started can be associated with the starting authority of the application program corresponding to the interface to be started, and the starting authority of the interface to be started is indirectly set by presetting the starting authority of the application program by a user.
Further, after the step of acquiring the start of the interface to be started in step S21, when the start authority is a second preset authority, the interface to be started is displayed in a foreground.
It should be noted that there is an association relationship between the preset authority and the execution operation corresponding to the preset authority, and the association relationship can be set by default according to the system; the method can also be set by the user, for example, the user can set a corresponding relationship between a first preset permission and the operation of intercepting the background application to start the interface to be started in advance, the user can set a corresponding relationship between a second preset permission and the foreground to display the interface to be started in advance, of course, the user can also set various processing permissions, for example, the preset processing permission can be temporarily unprocessed or can be processed, and when the processing permission is temporarily unprocessed, the operation of intercepting the background application to start the interface to be started can be executed, and the background process can be closed, so that the occupation of system resources can be reduced; or outputting notification prompt information according to the interface to be started, wherein the prompt information comprises at least one of an interface type, an interface title and an interface process package name. When the processing authority is processable, the interface to be started can be directly displayed on a foreground; or, outputting a display selection interface according to the interface to be started, and displaying or intercepting the interface to be started according to a selection operation triggered on the display selection interface, so as to respond to the operation of the interface to be started according to different preset permissions, which is not limited in the embodiment of the invention.
In the technical scheme disclosed in this embodiment, when the process identifier is not matched with the foreground process identifier and the start permission of the interface to be started is a first preset permission, executing an operation of intercepting the start of the interface to be started by the background application; or when the process identifier is not matched with the foreground process identifier and the starting authority of the interface to be started is the second preset authority, displaying the interface to be started on the foreground, and thus, setting the execution operation corresponding to the preset authority according to different preset authorities through presetting the authority by a user, and directly executing the execution operation corresponding to the preset authority when the starting authority of the interface to be started is the preset authority, so that the user can control the background application to start the interface to be started, and the interface to be started by the background application has more flexibility.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a method for switching an interface according to the present invention, in which the step of obtaining the start permission of the interface to be started in step S21 includes:
step S211, outputting a starting authority selection interface according to the interface to be started;
step S212, receiving a selection instruction to obtain the starting authority of the interface to be started.
It should be noted that the specific setting of the start permission selection interface may be in a button selection form, that is, the start permission selection interface at least includes a button control, for example, a processing button and a non-processing button may be set on the start permission selection interface, and a button selection that may be processed, temporarily not processed, and never processed may also be set, and it may be understood that a selection instruction is received to obtain the start permission of the interface to be started, and the start permission of the interface to be started may be obtained according to a selection operation triggered by the start permission selection interface, that is, the start permission of the interface to be started is obtained according to a button operation detected on the start selection interface; the starting authority of the interface to be started can be obtained by obtaining the voice of the user to trigger and select the starting authority selection interface; the preset indication selection operation can also be displayed on the start permission selection interface, and it can be understood that the selection operation triggered by the start permission interface can be a touch operation gesture detected on the start interface, where the selection operation in the preset indication selection operation corresponds to the start permission and the touch operation one to one, and the touch operation gesture includes a sliding gesture, a dragging gesture, a pressing gesture, a rotating gesture or other various user-defined gestures, which is not limited in the embodiment of the present invention. Optionally, after the step of obtaining the start permission of the interface to be started according to the selection operation triggered by the start permission selection interface, the process identifier and the start permission of the interface to be started may be stored, and when a subsequent background process starts the same interface, the start permission corresponding to the interface process may be directly obtained.
In the technical scheme disclosed in this embodiment, the start permission of the interface to be started is obtained according to the selection operation triggered by the start permission selection interface, and when it is detected that the background application starts the operation of the interface to be started, the start permission of the interface to be started is set through the start permission selection interface, so that the user further controls the operation of starting the interface to be started by the background application.
Based on the third embodiment, a fourth embodiment of the method for switching an interface according to the present invention is provided, in this embodiment, after step S212, the method for switching an interface further includes:
and when the starting authority is a third preset authority, executing the step of intercepting the operation of starting the interface to be started by the background application, and shielding the operation of starting the interface to be started by the background application.
It should be noted that there is an association relationship between the preset authority and the execution operation corresponding to the preset authority, and the association relationship can be set by default according to the system; the third preset authority can also be set by the user, for example, the user can set the third preset authority in advance and execute the step of intercepting the operation of starting the interface to be started by the background application, and the corresponding relation of the operation of starting the interface to be started by the background application is shielded.
In the technical scheme disclosed in this embodiment, the user sets the third preset authority, and when the start authority of the interface to be started is the third preset authority, the operation of intercepting the operation of starting the interface to be started by the background application and simultaneously directly shielding the operation of starting the interface to be started by the background application is executed, so that the subsequent operation on the same interface started by the background application is directly shielded, and the resource occupation is saved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fifth embodiment of a method for switching an interface according to the present invention, in the present embodiment, step S20 includes:
step S23, when the background application information is not matched with the foreground application information, acquiring the priority of the interface to be started;
and step S24, when the priority of the interface to be started is lower than that of the current display interface of the foreground application, executing the operation of intercepting the background application to start the interface to be started.
It should be noted that, the priority of the interface to be started is set in various ways, and the priority of the interface to be started can be preset according to the user requirement, for example, the interface process started by the application program which automatically generates the start request by setting the trigger condition in advance can be set to the highest priority, such as an alarm clock, a music reminder, a sports reminder, and the like; the priority of the interface to be started can be indirectly set through the priority of the application program preset by the user by associating the priority of the interface to be started with the priority of the application program corresponding to the interface to be started; the setting may also be performed according to attribute information of the interface process, for example, the attribute information may be used as evaluation frequency of interaction between the user and the interface, and the higher the interaction frequency is, the higher the priority is, where the attribute information includes at least one of the number of times the interface is started and the display duration of the interface, which is not limited in this embodiment.
It can be understood that, when the priority of the interface to be started is higher than that of the current display interface of the foreground application, the interface to be started can be directly displayed on the foreground; and a selection prompt interface can also be output to prompt whether the interface to be started is output to a foreground for display, and the like.
In the technical scheme disclosed in this embodiment, when the foreground displays the interface, the operation of intercepting and starting the interface to be started is realized according to the comparison result of the priorities by comparing the priority of the interface to be started with the priority of the current display interface of the foreground application, that is, the interface to be started with the lower priority is intercepted, so that the display interface which the user needs to interact with can be preferentially displayed, and the realization is simple.
Referring to fig. 6, fig. 6 is a flowchart illustrating a sixth embodiment of a method for switching an interface according to the present invention, in the present embodiment, step S20 includes:
step S25, when the background application information is not matched with the foreground application information, acquiring the interface characteristic information of the interface to be started;
and step S26, intercepting the operation of starting the interface to be started by the background application when the interface characteristic information is matched with preset interception characteristic information.
It should be noted that the interface feature information of the interface to be started may include at least one of an interface process number, an interface title, an interface type, an interface link, and interface attribute information. The interface attribute information includes at least one of interface starting times, interface display duration, interface height and interface width. The preset interception feature information can be obtained locally by a user through custom setting or a cloud server, for example, the cloud server performs statistical analysis according to the interface starting times or the interface display duration in the interface attribute information to generate the interception feature information. The interception feature information comprises at least one of the modes of keyword interception, data interception, link information interception and the like.
In the practical application process, there are various ways, one implementation way, for obtaining the interface feature information of the interface to be started based on the interface feature information including at least one of the interface process number, the interface title, the interface type, the interface link and the interface attribute information, when the interface characteristic information is an interface title or an interface type, the keyword mode can be extracted as the interface characteristic information of the interface to be started, for example, the target keyword matched with the preset keyword can be directly extracted from the interface title or the interface type, the target keyword is used as the interface characteristic information of the interface to be started, for example, the predetermined keywords may be advertisement, push, like, favorite, system update, wireless connection establishment, etc., and thus, when the target keyword is matched with preset keyword interception feature information, executing the step of intercepting the operation of starting the interface to be started by the background application; in the second embodiment, when the interface characteristic information is the interface link, the interface link can be directly acquired and used as the interface characteristic information of the interface to be started, so that the step of intercepting the operation of starting the interface to be started by the background application is executed when the interface link is matched with the preset link interception information; in the third embodiment, when the interface feature information is the interface attribute information, the interface feature information of the interface to be started may be obtained by acquiring data such as the interface start times or the interface start duration in the interface attribute information, and it can be understood that, when the interface characteristic information is matched with the preset data interception information, executing a step of intercepting the operation of the background application starting interface, for example, when the starting times of the interface to be started in unit time are more than the preset interception times, and/or, when the starting duration of the interface to be started is less than the preset interception duration, executing the operation of intercepting the starting of the interface to be started by the background application, optionally, after the operation of intercepting the background application to start the interface to be started is executed, the operation of closing or shielding the background application may be executed at the same time, or the application program corresponding to the background application may be uninstalled.
In the technical scheme disclosed in this embodiment, the interface to be started is intercepted and started when the interface feature information of the interface to be started is matched with the preset interception feature information through the preset interception feature information, so that the interface feature information of the interface to be started is used as an interception condition for intercepting and starting the interface to be started, the interface to be started can be effectively and accurately filtered, and the safety of the background application for starting the interface to be started is enhanced.
Referring to fig. 7, fig. 7 is a flowchart illustrating a seventh embodiment of a method for switching an interface according to the present invention, in this embodiment, after step S20, the method for switching an interface further includes:
step S30, updating the operation frequency of the background application triggering starting interface;
step S40, when the times reach the preset times, closing or shielding the background application and/or outputting prompt information; and/or the presence of a gas in the gas,
and step S50, intercepting the operation of starting the interface to be started in the background application, and outputting prompt information.
It should be noted that the number of times of the operation of the background application triggering and starting the interface to be started may be recorded by the mark parameter, and when the background application triggering and starting the same interface to be started, the mark parameter may be increased by 1 to update the number of times of the operation of the background application triggering and starting the interface to be started, so that when the number of times reaches the preset number of times, the background application is closed or shielded, and/or prompt information is output. Or when the operation of starting the interface to be started by the background application is intercepted, the prompt information is directly output, wherein the prompt information comprises one of voice prompt, output selection interface prompt or vibration prompt.
In the technical scheme disclosed in this embodiment, a user sets a preset number of times, the number of times of operations for starting the interface to be started in the background application reaches the preset number of times, and the background process is directly closed to prevent the background process from continuously starting the interface; or shielding the background process, directly shielding the subsequent operation on the same interface started by the background process, and saving the occupation of system resources.
Referring to fig. 8, fig. 8 is a schematic flowchart illustrating an eighth embodiment of a method for switching an interface according to the present invention. In this embodiment, the method for switching the interface includes the steps of:
step S60, acquiring current interface information and application information;
step S70, detecting whether the current interface information is matched with the application information;
and step S80, processing the current interface according to the matching result.
The current interface information includes interface process information and an application program name to which the interface belongs, wherein the interface process information includes an interface process number and a package name, the current interface may be displayed on one display interface of the foreground, or may be multiple display interfaces, for example, a terminal device is split-screen operated to simultaneously display multiple display interfaces, and the current interface may be a display interface started by an application program running on the foreground, or may be a popup interface. The application information comprises an application program name set, a process information set and storage path information, and the application information comprises foreground application information and/or background application information, so that the application program name set comprises a foreground application program name and/or a background application program name.
It should be noted that, whether the current interface information is matched with the application information is detected, whether the application program name to which the interface of the obtained current interface information belongs exists in the application program name set or not is judged by comparing the obtained application program name set of the current interface information with the obtained application program name set of the application information, if so, the current interface information is matched with the application information, otherwise, the current interface information is not matched with the application information; the interface process information of the obtained current interface information and the process information set of the obtained application information may also be compared, that is, whether the interface process information exists in the process information set is determined, if so, the current interface information is matched with the application information, otherwise, the current interface information is not matched with the application information, and the specific implementation of the comparison step in this embodiment is not limited. It can be understood that when the current interface information is matched with the application information, the current interface is continuously displayed; and when the current interface information is not matched with the application information, closing or hiding the current interface and/or outputting prompt information. Wherein, the prompt message comprises one of voice prompt, output selection interface prompt or vibration prompt.
In the technical scheme disclosed in this embodiment, the current interface is processed according to the matching result by detecting whether the current interface information is matched with the application information, for example, when the current interface information is not matched with the application information, the current interface is closed or hidden, so that the interaction interference between the user and the application display interface running in the foreground is reduced. For example, as shown in fig. 10, a display interface B is displayed on the foreground window a, when the user interacts with the display interface B, the display interface C is displayed, and when the display interface C does not match with the foreground application information or the background application information does not match, the display interface C is closed or hidden, as shown in fig. 11.
Referring to fig. 9, fig. 9 is a flowchart illustrating a ninth embodiment of the method for switching an interface according to the present invention, wherein in the present embodiment, step S70 includes at least one of the following steps:
step S71, acquiring the start authority of the current interface: when the starting authority is a first preset authority, judging that the current interface information is not matched with the application information, and/or when the starting authority is a second preset authority, judging that the current interface information is matched with the application information;
it should be noted that, the starting authority of the current interface is set in various ways, and the starting authority of the current interface can be directly set in the background by a user; the starting authority of the current interface can be set according to the starting authority selection interface output by the current interface; the starting authority of the current interface can be associated with the starting authority of the application program corresponding to the current interface, and the starting authority of the current interface is indirectly set by setting the starting authority of the application program in advance by a user.
It should be noted that there is an association relationship between the preset authority and the execution operation corresponding to the preset authority, and the association relationship can be set by default according to the system; the user can also set the corresponding relationship of the operation of the first preset authority, the current interface information and the application information, the current interface is closed or hidden, and/or the prompt information is output, and the user can set the second preset authority, the current interface information and the application information, and the corresponding relationship of the operation of the current interface is continuously displayed. Of course, the user may also preset multiple processing permissions, for example, the preset processing permission may be temporary non-processing or may be processing, and when the processing permission is temporary non-processing, it is determined that the current interface information is not matched with the application information, and the current interface is closed or hidden.
By acquiring the starting authority of the current interface, setting the execution operation corresponding to the preset authority according to different preset authorities, when the starting authority of the current interface is the preset authority, directly executing the execution operation corresponding to the preset authority, and if the starting authority is the first preset authority, judging that the current interface information is not matched with the application information, executing the operation of closing or hiding the current interface and/or outputting prompt information, so that a user can control the current interface to perform display operation, and the method has more flexibility.
Step S72, acquiring the priority of the current interface, and when the priority of the current interface is lower than that of the current display interface of foreground application, judging that the current interface information is not matched with the application information;
it should be noted that, the priority of the current interface is set in various ways, and the priority of the current interface can be preset according to the user requirement, for example, the interface process started by the application program which automatically generates the start request by setting the trigger condition in advance can be set to the highest priority, such as an alarm clock, a music reminder, a sports reminder, and the like; the priority of the current interface can also be set by the user in advance setting the priority of the application program by correlating the priority of the current interface with the priority of the application program corresponding to the current interface; for example, the attribute information may be used as an evaluation user interaction frequency with the interface, and the higher the interaction frequency is, the higher the priority is, where the attribute information includes at least one of the number of times the interface is started and the display duration of the interface, which is not limited in this embodiment.
It can be understood that, when the priority of the current interface is lower than that of the current display interface of the foreground application, the current interface is closed or hidden and/or prompt information is output by judging that the current interface is not matched with the application information; and similarly, when the priority of the current interface is higher than that of the current display interface of the foreground application, the current interface is continuously displayed by judging the matching of the current interface and the application information.
By comparing the priority of the current interface with the priority of the foreground application current display interface, whether the current interface continues to be displayed or not is achieved according to the comparison result of the priorities, namely, the current interface with lower priority is closed or hidden, and the interaction interference between a user and the application display interface running in the foreground is reduced.
Step S73, acquiring the characteristic information of the current interface, and when the characteristic information is matched with the preset interception characteristic information, judging that the current interface information is not matched with the application information.
It should be noted that the feature information of the current interface may include at least one of an interface process number, an interface title, an interface type, an interface link, and interface attribute information. The interface attribute information includes at least one of interface starting times, interface display duration, interface height and interface width. The preset interception feature information can be obtained locally by a user through custom setting or a cloud server, for example, the cloud server performs statistical analysis according to the interface starting times or the interface display duration in the interface attribute information to generate the interception feature information. The interception feature information comprises at least one of the modes of keyword interception, data interception, link information interception and the like.
In the practical application process, there are multiple ways to obtain the interface feature information of the current interface based on at least one of the interface feature information including the interface process number, the interface title, the interface type, the interface link and the interface attribute information, and the first implementation way is that when the interface feature information is the interface title or the interface type, the keyword way can be extracted as the interface feature information of the current interface, for example, the target keyword matched with the preset keyword can be directly extracted from the interface title or the interface type, the target keyword is used as the interface feature information of the current interface, for example, the preset keyword can be advertisement, push, like, collection, system update, wireless connection establishment, etc., so when the target keyword is matched with the preset keyword interception feature information, it is determined that the current interface is not matched with the application information, the current interface is closed or hidden, and/or outputting a prompt message. In the second embodiment, when the interface characteristic information is the interface link, the interface link can be directly acquired and used as the interface characteristic information of the current interface, so that when the interface link is matched with the preset link interception information, it is determined that the current interface is not matched with the application information, the current interface is closed or hidden, and/or prompt information is output. In the third embodiment, when the interface feature information is the interface attribute information, data such as the interface start times or the interface start durations in the interface attribute information may be acquired as the interface feature information of the current interface, and it may be understood that when the interface feature information matches the preset data interception information, it is determined that the current interface does not match the application information, the current interface is closed or hidden, and/or prompt information is output.
By presetting the interception characteristic information, when the interface characteristic information of the current interface is matched with the preset interception characteristic information, judging that the current interface is not matched with the application information, closing or hiding the current interface, and/or outputting prompt information, thus, taking the interface characteristic information of the current interface as an interception condition for intercepting and starting the operation of the interface to be started, effectively and accurately filtering the current interface, and reducing the interaction interference between a user and an application display interface operated by a foreground.
The present invention also provides a terminal, comprising: the switching interface program is stored in the memory and can be run on the processor, and when being executed by the processor, the switching interface program realizes the steps of the method for switching the interface in any embodiment.
The present invention further provides a computer-readable storage medium, in which a switching interface program is stored, and when the switching interface program is executed by a processor, the steps of the method for switching the interface in any of the above embodiments are implemented.
In the embodiments of the terminal device and the computer-readable storage medium provided by the present invention, all technical features of the embodiments of the method for switching an interface are included, and the contents of the expansion and the explanation of the specification are basically the same as those of the embodiments of the method for switching an interface, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. A method for switching interfaces is characterized by comprising the following steps:
s10: acquiring background application information after detecting that a background application starts an interface to be started;
s20: and when the background application information is not matched with the foreground application information, intercepting the operation of starting the interface to be started by the background application according to a preset rule.
2. The method of claim 1, wherein the step of S20 is preceded by the step of:
acquiring a foreground application information set, judging whether application information matched with the background application information exists in the foreground application information set, and if the application information does not exist in the foreground application information set, determining that the background application information is not matched with the foreground application information.
3. The method of claim 1, wherein the preset rules include at least one of:
acquiring the starting authority of the interface to be started: when the starting authority is a first preset authority, executing operation of intercepting the background application to start an interface to be started, and/or when the starting authority is a second preset authority, displaying the interface to be started on a foreground;
acquiring the priority of the interface to be started, and intercepting the operation of starting the interface to be started by the background application when the priority of the interface to be started is lower than the priority of the current display interface of the foreground application;
and acquiring the characteristic information of the interface to be started, and intercepting the operation of starting the interface to be started by the background application when the characteristic information is matched with preset interception characteristic information.
4. The method of claim 3, wherein the step of obtaining the launch right of the interface to be launched comprises:
and outputting a starting authority selection interface according to the interface to be started, and receiving a selection instruction to acquire the starting authority of the interface to be started.
5. The method of claim 4, wherein after the step of receiving a selection instruction to obtain the launch right of the interface to be launched, the method further comprises:
and when the starting authority is a third preset authority, intercepting the operation of starting the interface to be started by the background application, and shielding the operation of starting the interface to be started by the background application.
6. The method of claim 1, wherein after the step of S20, further comprising:
if the operation of starting the interface to be started by the background application is intercepted, outputting prompt information; and/or the presence of a gas in the gas,
if the number of times of interception of the operation of starting the interface to be started by the background application reaches a preset number, closing or shielding the background application, and/or outputting prompt information.
7. A method for switching interfaces is characterized by comprising the following steps:
s21: acquiring current interface information and application information;
s22: detecting whether the current interface information is matched with the application information;
s23: and processing the current interface according to the matching result.
8. The method of claim 7, wherein the application information comprises foreground application information and/or background application information.
9. The method of claim 7, wherein the step of S22 includes at least one of:
acquiring the starting permission of the current interface: when the starting authority is a first preset authority, judging that the current interface information is not matched with the application information, and/or when the starting authority is a second preset authority, judging that the current interface information is matched with the application information;
acquiring the priority of the current interface, and judging that the current interface information is not matched with the application information when the priority of the current interface is lower than that of a current display interface of foreground application;
and acquiring the characteristic information of the current interface, and judging that the current interface information is not matched with the application information when the characteristic information is matched with preset interception characteristic information.
10. The method according to any one of claims 7 to 9, wherein the step S23 includes at least one of:
if so, continuing to display the current interface;
if not, closing or hiding the current interface and/or outputting prompt information.
11. A terminal, characterized in that the terminal comprises: memory, processor and a switching interface program stored in the memory and executable on the processor, the switching interface program when executed by the processor implementing the steps of the method of switching the interface according to any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a switching interface program which, when executed by a processor, implements the steps of the method of switching the interface according to any one of claims 1 to 10.
CN201911179940.0A 2019-11-25 2019-11-25 Interface switching method, terminal and computer readable storage medium Pending CN111026479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911179940.0A CN111026479A (en) 2019-11-25 2019-11-25 Interface switching method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911179940.0A CN111026479A (en) 2019-11-25 2019-11-25 Interface switching method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111026479A true CN111026479A (en) 2020-04-17

Family

ID=70202522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911179940.0A Pending CN111026479A (en) 2019-11-25 2019-11-25 Interface switching method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111026479A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032067A (en) * 2021-03-23 2021-06-25 深圳市沃特沃德信息有限公司 Hidden interface calling method and device, computer equipment and storage medium
CN113177759A (en) * 2021-04-29 2021-07-27 深圳市火乐科技发展有限公司 Logistics information display method and device and projection equipment
CN116089930A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Application management and control method, device and storage medium
CN116662990A (en) * 2022-11-23 2023-08-29 荣耀终端有限公司 Malicious application identification method, electronic device, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127030A (en) * 2016-06-22 2016-11-16 广东欧珀移动通信有限公司 A kind of interface control method and device
CN107256147A (en) * 2017-05-22 2017-10-17 努比亚技术有限公司 Pop-up control method, terminal and the computer-readable recording medium of application widget
CN107944258A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN108683806A (en) * 2018-04-28 2018-10-19 努比亚技术有限公司 A kind of anti-method, mobile terminal and computer readable storage medium bothered

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127030A (en) * 2016-06-22 2016-11-16 广东欧珀移动通信有限公司 A kind of interface control method and device
CN107256147A (en) * 2017-05-22 2017-10-17 努比亚技术有限公司 Pop-up control method, terminal and the computer-readable recording medium of application widget
CN107944258A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN108683806A (en) * 2018-04-28 2018-10-19 努比亚技术有限公司 A kind of anti-method, mobile terminal and computer readable storage medium bothered

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032067A (en) * 2021-03-23 2021-06-25 深圳市沃特沃德信息有限公司 Hidden interface calling method and device, computer equipment and storage medium
CN113177759A (en) * 2021-04-29 2021-07-27 深圳市火乐科技发展有限公司 Logistics information display method and device and projection equipment
CN116089930A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Application management and control method, device and storage medium
CN116662990A (en) * 2022-11-23 2023-08-29 荣耀终端有限公司 Malicious application identification method, electronic device, storage medium and program product
CN116662990B (en) * 2022-11-23 2024-05-31 荣耀终端有限公司 Malicious application identification method, electronic device, storage medium and program product

Similar Documents

Publication Publication Date Title
CN111026479A (en) Interface switching method, terminal and computer readable storage medium
CN105335048B (en) Electronic equipment with hidden application icon and method for hiding application icon
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN106528015B (en) A kind of method and apparatus realizing component content and showing
CN113301209B (en) Message reminding method, mobile terminal and computer readable storage medium
TWI709070B (en) Data processing method and device, terminal equipment, server
CN103294335A (en) Apparatus and method for creating a shortcut menu
US20150113525A1 (en) Method for a Reader to Provide Service, Reader and Computer-Readable Storage Medium
CN113194200B (en) Message display method and device and electronic equipment
CN111090866A (en) Application authority management method, mobile terminal and computer readable storage medium
CN108304107A (en) A kind of display application drawing calibration method, terminal and computer readable storage medium
EP3021250B1 (en) Electronic device and method for suggesting response manual in occurrence of denial
CN111095211B (en) Control method for application starting and user terminal
EP2869229B1 (en) Method, device and equipment for installing an application
CN106599257B (en) Method for realizing page shortcut and electronic equipment
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN108491125B (en) Operation control method of application store and mobile terminal
CN113867585A (en) Interface display method and device, electronic equipment and storage medium
CN112016080A (en) Application authority management method and device and electronic equipment
US9684688B2 (en) System and methods for matching identifiable patterns and enabling associated actions
CN112286616A (en) Dynamic wallpaper setting method and device and electronic equipment
CN109840113B (en) Application data processing method and equipment, storage medium and terminal thereof
CN106933666B (en) Method for calling information input program and electronic equipment
CN111752631B (en) Parameter setting method and device for application program, electronic equipment and storage medium
WO2021022434A1 (en) Application monitoring method and apparatus, storage medium, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200417