WO2021017763A1 - 事件处理方法、终端设备及计算机可读存储介质 - Google Patents
事件处理方法、终端设备及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2021017763A1 WO2021017763A1 PCT/CN2020/100435 CN2020100435W WO2021017763A1 WO 2021017763 A1 WO2021017763 A1 WO 2021017763A1 CN 2020100435 W CN2020100435 W CN 2020100435W WO 2021017763 A1 WO2021017763 A1 WO 2021017763A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- foreground
- input
- terminal device
- running
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Definitions
- the present disclosure relates to the field of computer technology, and in particular to an event processing method, terminal equipment, and computer-readable storage medium.
- terminal equipment With the rapid development of computer technology, terminal equipment is becoming more and more powerful, and various applications are emerging in an endless stream, which can provide various services.
- game applications can be downloaded through terminal devices, users can play games through game applications, can download navigation applications, and navigate through navigation applications.
- the terminal device can also be provided with an input method application, and information can be input through the input method application. Communication and data transmission can also be carried out through the application, which provides convenience for people's life and work.
- the first method is to switch the application to the background and respond to the emergency normally.
- One way is to directly intercept emergencies and keep the application running in the foreground.
- the application is switched to the background, which will cause the operation of the application to be interrupted, and the application cannot run normally.
- the emergency cannot be handled in time, that is, the emergency handling effect is poor, and it is easy to miss some important things, such as emergency calls and memo reminders. .
- the application running in the foreground is interrupted and cannot continue to run or the processing effect of the emergency event is poor, that is, the application running in the foreground continues to run and ensure the processing of the emergency event The effect cannot be satisfied at the same time.
- the embodiments of the present disclosure provide an event processing method, a terminal device, and a computer-readable storage medium to solve the problem that when the related technology terminal device detects an event, the application running in the foreground continues to run and ensures that the processing effect of the event cannot be satisfied at the same time .
- embodiments of the present disclosure provide an event processing method, the method includes:
- the target event is monitored and a virtual display is created
- the first application is moved to the virtual display to run, and the first interface associated with the target event is displayed in the foreground.
- the embodiments of the present disclosure also provide a terminal device, including:
- the creation module is used to monitor the target event and create a virtual display when the first application is running in the foreground;
- the processing module is configured to move the first application to the virtual display to run, and display the first interface associated with the target event in the foreground.
- embodiments of the present disclosure also provide a terminal device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps in the above event processing method when the computer program is executed.
- the embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above event processing method are implemented.
- the first application since the first application is running in the foreground, if the target event is detected, a virtual display will be created, and then the first application will be moved to the virtual display to continue running. The application continues to run. Moreover, the target event can be processed in time, and the first interface associated with the target event can be displayed in the foreground, thereby ensuring the processing effect of the target event.
- the first application running in the foreground can ensure the processing effect of the target event while the virtual display continues to run.
- FIG. 1 is one of the flowcharts of an event processing method provided by an embodiment of the present disclosure
- FIG. 3 is one of the application scenario diagrams of the event processing method provided by the embodiment of the present disclosure.
- Figure 4 is one of the interface diagrams of the terminal device provided by an embodiment of the present disclosure.
- Figure 5 is the second interface diagram of the terminal device provided by the embodiment of the present disclosure.
- FIG. 6 is the third flowchart of the event processing method provided by the embodiment of the present disclosure.
- FIG. 7 is the third interface diagram of the terminal device provided by an embodiment of the present disclosure.
- FIG. 8 is one of schematic diagrams of a terminal device provided by an embodiment of the present disclosure.
- FIG. 9 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present disclosure.
- an event processing method which can be applied to a terminal device, and the method includes:
- Step 101 When the first application is running in the foreground, the target event is monitored and a virtual display is created.
- Various applications can be installed in the terminal device. If the first application is currently running in the foreground, the user can perform corresponding operations in the first application to implement corresponding functions. For example, the terminal device runs an instant messaging application in the foreground, and the user can perform operations, data transmission, and message sending in the first instant messaging application. If the terminal device listens to the target event when the first application is running in the foreground, it means that there is an emergency when the first application is running in the foreground. At this time, the terminal device can create a virtual display (ie Virtual Display), and the terminal device It can support multiple screens: main display, external display and virtual display. The main display is built-in, for example, it can be the terminal device screen by default.
- a virtual display ie Virtual Display
- the external display is a screen connected to HDMI (High Definition Multimedia Interface), MHL (Mobile High-Definition Link, mobile terminal high-definition video and audio standard interface). Virtual display, even the above virtual display.
- the display is managed through the Display Manager, and the Virtual Display can be created through the Display Manager.
- Step 102 Move the first application to run on the virtual display, and display the first interface associated with the target event in the foreground.
- the target event may include, but is not limited to, an operation event on the terminal device (for example, it may be a user's touch event on the terminal device, or a key touch event, etc.), a trigger event (for example, a memo reminder event) , Alarm clock reminder events, calendar reminder events, etc.) and events received by the terminal device (for example, incoming call events, video request events, voice request events, etc.).
- an operation event on the terminal device for example, it may be a user's touch event on the terminal device, or a key touch event, etc.
- a trigger event for example, a memo reminder event
- Alarm clock reminder events for example, incoming call events, video request events, voice request events, etc.
- the first application running in the foreground can be moved to the virtual display to continue running, and can respond to the target event, execute the target event in the foreground, and then display the first interface associated with the target event in the foreground .
- the incoming call event can be executed in the foreground, and the incoming call interface corresponding to the incoming call event can be displayed in the foreground (understandably, the first interface associated with the target event can be displayed on the display screen of the terminal device).
- the incoming call interface includes the caller’s Identification (for example, name, etc.) and caller number, etc. The user can view the caller's identification and caller number on this interface.
- the alarm clock reminder event can be executed at the front desk, and the alarm clock reminder interface corresponding to the alarm clock reminder event can be displayed in the front desk, and the time and reminder content of the alarm clock can be viewed in this interface.
- the first application since the first application is running in the foreground, if the target event is detected, a virtual display will be created, and then the first application will be moved to the virtual display to continue running. The application continues to run. Moreover, the target event can be processed in the foreground in time, and the first interface associated with the target event is displayed in the foreground to ensure the processing effect of the target event.
- the first application running in the foreground can ensure the processing effect of the target event while the virtual display continues to run.
- the foregoing terminal devices may include, but are not limited to, mobile phones, tablet computers (Tablet Personal Computer), laptop computers (Laptop Computer), personal digital assistants (personal digital assistant, PDA), and mobile Internet terminal devices (Mobile Internet Device (MID) or Wearable Device (Wearable Device), etc.
- creating a virtual display includes: when the first application is running in the foreground, monitoring the target event, if the first application belongs to a preset application At least one preset application in the list creates a virtual display. That is, in this embodiment, as shown in Figure 2, the event processing method of an embodiment is provided, including:
- Step 201 When the first application is running in the foreground, the target event is monitored, and if the first application belongs to at least one preset application in the preset application list, a virtual display is created.
- Step 202 Move the first application to the virtual display to run, and display the first interface associated with the target event in the foreground.
- Step 202 corresponds to step 102 and will not be repeated here.
- the preset application list includes at least one preset application, which can be set and stored in the terminal device in advance, where the preset application refers to the preset application that needs to be moved to the virtual display to run when an emergency is detected in the foreground operation , Which is the application that needs emergency treatment.
- the first application running in the foreground needs to be judged, that is, whether it belongs to at least one preset application in the preset application list, that is, it is judged whether at least one preset application in the preset application list includes the first application.
- An application if the first application belongs to at least one preset application in the preset application list, that is, at least one preset application in the preset application list includes the first application, it means that the first application running in the foreground needs to be moved to the virtual
- the application running on the display can create a virtual display, and then move the first application to the virtual display to run, and in response to the target event, the first interface associated with the target event can be displayed in the foreground.
- game application A is included in the preset application list.
- Game application B and input method applications, etc. are listening to the target event.
- a virtual display can be created, and the first application running in the foreground can be moved to the virtual display to run, and the target event In response, the first interface is displayed in the foreground.
- the target event is monitored, it is no longer an emergency response to any application running in the foreground, and only the first application belonging to at least one preset application in the preset application list can be emergency processed. It can avoid the interruption of the first application that belongs to the preset application list. On the other hand, it can reduce emergency handling and improve the efficiency of processing the target event.
- the first application running in the foreground belongs to the preset application list, it means that the first application needs emergency treatment. You can add a tag to the first application to indicate the application that needs emergency treatment, then When the target event is monitored, a virtual display can be created and moved to the virtual display to run.
- creating a virtual display also includes: when the first application is running in the foreground, monitoring the target event, if the first application does not belong to At least one preset application in the preset application list is identified, and the current interface scene of the first application is identified; if the current interface scene is the preset interface scene, a virtual display is created.
- the first application running in the foreground does not belong to at least one preset application in the preset first application list, that is, at least one preset application in the preset application list does not include the first application, it means that the first application is unnecessary It is an emergency handling application, but it can perform scene recognition on the current interface of the running first application.
- the current interface scene is a preset interface scene, it means that the first application still needs to be switched to the virtual display to run to ensure that it is in The first application of the preset interface scene can still run normally without interruption. In this way, the accuracy of the switching operation of the first application can be further ensured, and omissions can be avoided.
- the preset interface scene includes any one of the following: a scene during information input, a scene during data transmission, a scene in progress of a game, a scene in progress of navigation, and an interface scene with preset information.
- the preset information may include but is not limited to input information such as verification code, password, email address, mobile phone number, and ID card.
- the first application to the virtual display to run after moving the first application to the virtual display to run, it further includes: displaying a notification message in the foreground, where the notification message is used to notify the first application to run on the virtual display. It can be understood that a notification message is displayed on the display screen of the terminal device to remind the user that the first application has been successfully switched to the virtual display to run.
- the method further includes: adding a notification message to the notification bar of the terminal device, where the notification message is used to notify the first application to run on the virtual display.
- a notification message can be added to the notification bar of the terminal device to indicate that the first application is successfully switched to run on the virtual display. The user can view the notification message in the notification bar to remind the user that the first application has been switched to run.
- the first application after moving the first application to the virtual display to run, it further includes: receiving a first input to the notification bar, and in response to the first input, displaying a notification window in the foreground, the notification window including the current status of the first application Run the interface.
- the user can make a first input to the notification bar, and the terminal device can display the notification window in the foreground in response to the first input (it can be understood that the notification window is displayed on the display screen of the terminal device ), the current running interface of the first application is displayed in the notification window, which is convenient for the user to view the current running interface of the first application.
- the terminal device displays a notification window in the foreground in response to the first input. If the data has been transmitted at this time, the current running interface is the interface after the data has been transmitted.
- the above-mentioned first input may be a sliding input, that is, sliding input can be performed in the notification bar, and the notification window is displayed in the foreground.
- the above sliding input may also be a sliding input along a first preset direction. If the notification bar is located at the top of the display screen of the terminal device, the first preset direction may be a direction from the top of the terminal device to the bottom of the terminal device opposite to the top. . In this way, it is convenient for users to operate.
- the method further includes: receiving a second input in the notification window; and in response to the second input, restoring the first application to the foreground running.
- the notification window After the notification window is displayed, not only can you view the current running interface, you can also choose to restore the first application to the foreground.
- the user can perform a second input in the notification window, and the terminal device can switch the first application to the foreground again in response to the second input.
- the second input can be a click input
- the display window also includes an exit button.
- the click input can be a click input to the exit button.
- the first application can be exited from the virtual display and restored Run to the foreground.
- the method further includes: receiving a third input in the notification window; in response to the third input, switching the first application to run in the background.
- the notification window After the notification window is displayed, not only the current running interface can be viewed, but also the running of the first application on the virtual display can be stopped.
- the user can perform a third input in the notification window, and the terminal device can switch the first application to the background of the terminal device system in response to the third input. In this way, not only can the user need to switch the application to the background, but also the user operation is simple , Easy for users to operate.
- the third input may be a click input
- the display window also includes a stop button.
- the click input may be a click input to the stop button.
- the first application In response to the click input, the first application can be switched to the background of the terminal device system run.
- the notification window may also include a duration, that is, the duration of the first application moving to the virtual display to run, which is convenient for the user to view.
- the user currently uses the terminal device to monitor incoming call events during information input, data transmission, game progress, or navigation. If the above scenario is interrupted, that is, information input interruption, data transmission interruption, game interruption Or navigation is interrupted, affecting user experience.
- the scene of information input that is, the input method application is running, and the application receiving the information input is also running.
- the user name and password have been entered, and the verification code is being entered.
- the input may be interrupted, and the input information will be cleared. The next time you return to the front desk to execute it, you need to re-enter it. That is, the entered username and password will be cleared after the interruption, and you need to re-enter it next time.
- the transmission process may be interrupted, and the transmitted part will be cleared. The untransmitted part will not continue to be transmitted.
- this embodiment provides an event processing method that can monitor incoming call events when the first application is running in the foreground, and can ensure that the first application continues to run without interruption and can respond to incoming call events. That is, for the above process of inputting information, the user name and password have been entered. If the incoming call event is monitored, the information input scene will not be interrupted, and it will be moved to the virtual display to run. The entered user name and password will not be lost, and it will be restored again. After the front desk is running, the username and password still exist, just enter the verification code. For the above-mentioned data transmission process, once the incoming call event is monitored and the data transmission application is switched to run in the virtual display, the data transmission will continue without interruption, ensuring the normal transmission of data.
- the terminal device is running application X in the foreground and monitoring incoming call events, then it is determined whether application X needs emergency treatment, that is, whether application X belongs to at least one preset application in the preset application list
- application X needs emergency treatment, that is, whether application X belongs to at least one preset application in the preset application list
- One type if yes, create a background virtual display directly, if not, identify the current interface scene of application X, and judge whether the current interface scene is a preset interface scene, for example, judge whether the current interface scene is the scene in information input, Any one of data transmission scenes, game scenes, navigation scenes, and interface scenes with preset information. If it is one of them, a background virtual display can also be created, and the virtual display shields everything except the terminal device screen. Touch events do not respond to any key events.
- a notification message may be displayed on the display screen of the terminal device to notify that the application X has successfully switched to the virtual display to run.
- the user can also pull down the notification bar to display a notification window including the current running interface of the application X in the foreground, as shown in Figure 7.
- the notification window also includes stop and exit buttons.
- the application X will be resumed to run in the foreground and can continue to monitor incoming call events. If the user selects the stop button, the application X can be switched to run in the background of the terminal device system, that is, the current running scene of the application X may be interrupted. If the current interface scene is not the preset interface scene, the application X can be switched to the terminal device system to run in the background.
- the event processing method of this embodiment automatically recognizes the current interface scene of the foreground application when a common emergency event or a user's screen accidental touch event is triggered. If it is in a special scene such as input, data transmission, game or navigation, temporarily construct a virtual display, and continue to run by moving the application X running in the foreground to the virtual display, which not only ensures the normal operation and data interaction of application X, but also The emergency can be handled in time. That is to say, it is mainly to use the Virture Display method to switch the application from the foreground to the virtual display. It can ensure that the application running in the foreground will not be interrupted or stopped, and it can also ensure that the system responds to emergencies or user mistouch events in a timely manner. Improve the experience effect and avoid problems that affect the user experience, such as the cumbersome and complex interface of data transmission being reloaded, or the game being temporarily disconnected from the network and logging out.
- the present disclosure also provides a terminal device 800 of an embodiment, including:
- the creation module 801 is used to monitor the target event and create a virtual display when the first application is running in the foreground;
- the processing module 802 is configured to move the first application to the virtual display to run, and display the first interface associated with the target event in the foreground.
- creating a module includes:
- the first creation module is configured to monitor the target event when the first application is running in the foreground, and create a virtual display if the first application belongs to at least one preset application in the preset application list.
- creating the module further includes:
- the identification module is configured to monitor the target event when the first application is running in the foreground, and if the first application does not belong to at least one preset application in the preset application list, identify the current interface scene of the first application;
- the second creation module creates a virtual display when the current interface scene is a preset interface scene.
- the preset interface scene includes any one of the following: a scene during information input, a scene during data transmission, a scene in progress of a game, a scene in progress of navigation, and an interface scene with preset information.
- the terminal device further includes:
- the display module is used to display a notification message in the foreground, and the notification message is used to notify the first application to run on the virtual display.
- the terminal device further includes:
- the adding module is used to add a notification message to the notification bar of the terminal device, and the notification message is used to notify the first application to run on the virtual display.
- the terminal device further includes:
- the notification window display module is configured to receive the first input to the notification bar, and in response to the first input, display a notification window in the foreground, the notification window including the current running interface of the first application.
- the terminal device further includes:
- the second input receiving module is used to receive the second input in the notification window
- the restoration module is used to restore the first application to the foreground running in response to the second input.
- the terminal device further includes:
- the third input receiving module is used to receive the third input in the notification window
- the switching module is used to switch the first application to run in the background in response to the third input.
- the technical features in the terminal device provided by the embodiments of the present disclosure correspond to the technical features in the above event processing method.
- Each process of the above event processing method is realized by the terminal device, and the same effect can be obtained. To avoid repetition, it will not be repeated here. Repeat.
- the terminal device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, and a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911 and other components.
- a radio frequency unit 901 for example, a radio frequency unit
- the terminal device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
- terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted mobile terminals, wearable devices, and pedometers.
- the processor 910 is configured to monitor the target event and create a virtual display when the first application is running in the foreground; move the first application to the virtual display to run, and display the first interface associated with the target event in the foreground.
- the first application Since the first application is running in the foreground, if the target event is detected, a virtual display will be created, and then the first application will be moved to the virtual display to continue running, so as to ensure that the first application continues to run. Moreover, the target event can be processed in time, and the first interface associated with the target time is displayed in the foreground to ensure the processing effect of the target event.
- the radio frequency unit 901 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 910; Uplink data is sent to the base station.
- the radio frequency unit 901 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 901 can also communicate with the network and other devices through a wireless communication system.
- the terminal device provides users with wireless broadband Internet access through the network module 902, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 903 can convert the audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output it as sound. Moreover, the audio output unit 903 may also provide audio output related to a specific function performed by the terminal device 500 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 904 is used to receive audio or video signals.
- the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042.
- the graphics processor 9041 is used to capture still pictures or videos obtained by an image capture terminal device (such as a camera) in a video capture mode or an image capture mode. Image data is processed.
- the processed image frame may be displayed on the display unit 906.
- the image frames processed by the graphics processor 9041 may be stored in the memory 909 (or other storage medium) or sent via the radio frequency unit 901 or the network module 902.
- the microphone 9042 can receive sound, and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 901 for output in the case of a telephone call mode.
- the terminal device 900 further includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 9091 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 9091 and the display panel 9091 when the terminal device 900 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 905 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 906 is used to display information input by the user or information provided to the user.
- the display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 907 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the terminal device.
- the user input unit 907 includes a touch panel 9071 and other input devices 9072.
- the touch panel 9071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 9071 or near the touch panel 9071. operating).
- the touch panel 9071 may include two parts, a touch detection terminal device and a touch controller.
- the touch detection terminal device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection terminal device and converts it into contact coordinates , And then sent to the processor 910 to receive and execute the command sent by the processor 910.
- the touch panel 9071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 907 may also include other input devices 9072.
- other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 9071 can cover the display panel 9061.
- the touch panel 9071 detects a touch operation on or near it, it transmits it to the processor 910 to determine the type of the touch event, and then the processor 910 responds to the touch The type of event provides corresponding visual output on the display panel 9061.
- the touch panel 9071 and the display panel 9061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 9071 and the display panel 9061 can be integrated
- the implementation of the input and output functions of the terminal device is not specifically limited here.
- the interface unit 908 is an interface for connecting an external terminal device and the terminal device 500.
- the external terminal device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a terminal device with an identification module, and an audio input / Output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 908 can be used to receive input from an external terminal device (for example, data information, power, etc.) and transmit the received input to one or more elements in the terminal device 500 or can be used to connect to the terminal device 500 Transfer data between external terminal devices.
- the memory 909 can be used to store software programs and various data.
- the memory 909 may mainly include a storage program area and a storage data area.
- the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
- the memory 909 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the processor 910 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 909, and calls data stored in the memory 909 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
- the processor 910 may include one or more processing units; optionally, the processor 910 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
- the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 910.
- the terminal device 500 may also include a power source 911 (such as a battery) for supplying power to various components.
- a power source 911 such as a battery
- the power source 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- the terminal device 500 includes some functional modules not shown, which will not be repeated here.
- the embodiments of the present disclosure also provide a terminal device, including a processor 910 and a memory 909.
- the memory 909 stores a computer program that can run on the processor 910.
- the above-mentioned event processing method embodiment is implemented.
- Each process in the process can achieve the same technical effect. To avoid repetition, I will not repeat it here.
- the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
- a computer program When the computer program is executed by a processor, each process of the above-mentioned event processing method embodiment is realized, and the same technology can be achieved The effect, in order to avoid repetition, will not be repeated here.
- the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
- the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods of the various embodiments of the present disclosure.
- a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种事件处理方法、终端设备及计算机可读存储介质,涉及计算机技术领域。该方法包括:该方法包括:在前台运行第一应用的情况下,监听到目标事件,则创建虚拟显示器(101);将第一应用移动至虚拟显示器运行,以及在前台显示目标事件关联的第一界面(102)。
Description
相关申请的交叉引用
本申请主张在2019年7月30日在中国提交的中国专利申请No.201910693803.2的优先权,其全部内容通过引用包含于此。
本公开涉及计算机技术领域,尤其涉及一种事件处理方法、终端设备及计算机可读存储介质。
随着计算机技术的快速发展,终端设备的功能越来越强大,各种应用也层出不穷,可以提供各方面的服务。例如,可通过终端设备下载游戏应用,用户可通过游戏应用进行游戏,可下载导航应用,通过导航应用进行导航。另外,终端设备还可设置输入法应用,通过输入法应用可进行信息输入。也可通过应用进行交流以及数据传输等等,为人们生活和工作等提供了便利。
在终端设备前台运行某个应用的情况下,若监测到有突发事件,一般采用的处理方式有两种,第一种方式是将该应用切换至后台,正常响应该突发事件,第二种方式是直接拦截突发事件,保持该应用的前台运行。然而,通过上述第一种方法,应用被切换到后台,会导致该应用的操作被中断,使应用无法正常运行。通过上述第二种方式,直接拦截掉突发事件,则无法及时对突发事件进行处理,即对突发事件的处理效果差,容易导致错过一些重要的事情,例如,紧急电话以及备忘录提醒等。在监测到有突发事件,通过上述处理方式进行处理时,前台运行的应用被中断无法继续运行或者对突发事件的处理效果差,即前台运行的应用继续运行和确保对突发事件的处理效果无法同时满足。
发明内容
本公开实施例提供一种事件处理方法、终端设备及计算机可读存储介质, 以解决相关技术终端设备在监测到事件时,前台运行的应用继续运行和确保对事件的处理效果无法同时满足的问题。
为了解决上述技术问题,本公开是这样实现的:
第一方面,本公开实施例提供了一种事件处理方法,方法包括:
在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器;
将所述第一应用移动至所述虚拟显示器运行,以及在前台显示所述目标事件关联的第一界面。
第二方面,本公开实施例还提供一种终端设备,包括:
创建模块,用于在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器;
处理模块,用于将所述第一应用移动至所述虚拟显示器运行,以及在前台显示所述目标事件关联的第一界面。
第三方面,本公开实施例还提供一种终端设备,包括:存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现如上的事件处理方法中的步骤。
第四方面,本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现如上的事件处理方法中的步骤。
本申请实施例的事件处理方法中,由于在前台有运行第一应用的情况下,若监测到目标事件,会创建虚拟显示器,然后将第一应用移动至虚拟显示器继续运行,即可确保第一应用继续运行。而且能及时对目标事件进行处理,可在前台显示目标事件关联的第一界面,从而可确保对目标事件的处理效果。通过上述事件处理方法,在监测到目标事件时,可确保前台运行的第一应用在虚拟显示器继续运行的同时能确保对目标事件的处理效果。
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳 动性的前提下,还可以根据这些附图获得其他的附图。
图1是本公开实施例提供的事件处理方法的流程图之一;
图2是本公开实施例提供的事件处理方法的流程图之二;
图3是本公开实施例提供的事件处理方法的应用场景图之一;
图4是本公开实施例提供的终端设备的界面图之一;
图5是本公开实施例提供的终端设备的界面图之二;
图6是本公开实施例提供的事件处理方法的流程图之三;
图7是本公开实施例提供的终端设备的界面图之三;
图8是本公开实施例提供的终端设备的示意图之一;
图9是本公开实施例提供的终端设备的硬件结构示意图。
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参照图1,提供一种实施例的事件处理方法,可应用于终端设备,方法包括:
步骤101:在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器。
终端设备中可安装各种应用,若当前在前台运行第一应用,则用户可在第一应用中进行相应操作,实现对应的功能。例如,终端设备前台运行即时通信应用,用户可在即时通讯第一应用中进行操作、进行数据传输以及消息发送等。若终端设备在前台运行第一应用的情况下监听到目标事件,则表示在前台运行第一应用的情况下有突发事件,此时,终端设备可创建虚拟显示器(即Virtual Display),终端设备可支持多个屏幕:主显、外显和虚显,主显是内置的,例如,默认可以是终端设备屏幕。外显就是HDMI(High Definition Multimedia Interface,高清多媒体接口)、MHL(Mobile High-Definition Link,移动终端高清影音标准接口)等连接的屏幕。虚显,即使上述虚拟显示器。 在终端设备中,通过Display Manager(显示管理器)管理显示,可通过Display Manager创建Virtual Display。
步骤102:将第一应用移动至虚拟显示器运行,以及在前台显示目标事件关联的第一界面。
例如,目标事件可包括但不限于是在终端设备上的操作事件(例如,可以是用户在终端设备上的触控事件,也可以是按键误触事件等)、触发事件(比如,备忘录提醒事件、闹钟提醒事件、日历提醒事件等)以及终端设备接收的事件(比如,来电事件、视频请求事件、语音请求事件等)。
在创建虚拟显示器之后,即可将上述前台运行的第一应用移动至虚拟显示器中继续运行,并可对目标事件进行响应,在前台执行目标事件,即可在前台显示目标事件关联的第一界面。例如,对于来电事件,可前台执行来电事件,在前台显示来电事件对应的来电界面(可以理解,在可在终端设备的显示屏显示目标事件关联的第一界面),来电界面中包括来电方的标识(例如,名称等)以及来电号码等,用户可在该界面查看到来电方的标识和来电号码等。对于闹钟提醒事件,可前台执行闹钟提醒事件,可在前台显示闹钟提醒事件对应的闹钟提醒界面,可在该界面中查看到闹钟的时间以及提醒内容等。
本申请实施例的事件处理方法中,由于在前台有运行第一应用的情况下,若监测到目标事件,会创建虚拟显示器,然后将第一应用移动至虚拟显示器继续运行,即可确保第一应用继续运行。而且即能在前台及时对目标事件进行处理,在前台显示目标事件关联的第一界面,确保对目标事件的处理效果。通过上述事件处理方法,在监测到目标事件时,可确保前台运行的第一应用在虚拟显示器继续运行的同时能确保对目标事件的处理效果。
本公开实施例中,上述终端设备可以包括但不限于手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网终端设备(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
在一个实施例中,在前台运行第一应用的情况下监听到目标事件,则创建虚拟显示器,包括:在前台运行第一应用的情况下,监听到目标事件,若第一应用属于预设应用列表中的至少一个预设应用,则创建虚拟显示器。即 在本实施例中,如图2所示,提供一个实施例的事件处理方法,包括:
步骤201:在前台运行第一应用的情况下,监听到目标事件,若第一应用属于预设应用列表中的至少一个预设应用,则创建虚拟显示器。
步骤202:将第一应用移动至虚拟显示器运行,以及在前台显示目标事件关联的第一界面。
步骤202与步骤102对应,在此不再赘述。
预设应用列表中包括至少一个预设应用,可预先在终端设备中设置并存储,其中,预设应用表示为预先设置的在前台运行中监听到突发事件时需要移动至虚拟显示器运行的应用,即为需要应急处理的应用。在本实施例中,需对前台运行的第一应用进行判断,即判断其是否属于预设应用列表中的至少一个预设应用,即判断预设应用列表中至少一个预设应用中是否包括第一应用,若第一应用属于预设应用列表中的至少一个预设应用,即预设应用列表中的至少一个预设应用包括第一应用,表示前台正在运行的第一应用为需要移动到虚拟显示器运行的应用,即可创建虚拟显示器,然后将第一应用移动至虚拟显示器运行,而且可响应于该目标事件,即可在前台显示目标事件关联的第一界面。
例如,若预设应用列表中包括游戏应用A。游戏应用B以及输入法应用等,在监听到目标事件,一旦前台运行的第一应用为其中的一个,则可创建虚拟显示器,将前台运行的第一应用移动到虚拟显示器运行,而且对目标事件进行响应,在前台显示第一界面。如此,可在监听到目标事件时,不再是对任何正在前台运行的应用进行应急处理,只需对属于预设应用列表中至少一个预设应用的第一应用进行应急处理即可,一方面可避免对属于预设应用列表中的第一应用的中断,另一方面可减少应急处理的情况,提高对目标事件处理的效率。
另外,在一个示例中,若上述前台运行的第一应用属于预设应用列表,表示该第一应用需要应急处理,可为该第一应用添加标签,以表示其需要进行应急处理的应用,则在监听到目标事件的情况下,可创建虚拟显示器,将其移动至虚拟显示器运行。
在一个实施例中,在前台运行第一应用的情况下,监听到目标事件,则 创建虚拟显示器,还包括:在前台运行第一应用的情况下,监听到目标事件,若第一应用不属于预设应用列表中的至少一个预设应用,则识别第一应用的当前界面场景;在当前界面场景为预设界面场景的情况下,创建虚拟显示器。
若前台运行的第一应用不属于上述预设第一应用列表中的至少一个预设应用,即预设应用列表中的至少一个预设应用不包括第一应用,表示该第一应用为不需要应急处理的应用,但可对正在运行的第一应用的当前界面进行场景识别,若当前界面场景为预设界面场景,则表示仍需将该第一应用切换到虚拟显示器运行,以确保处在预设界面场景的第一应用仍能正常运行不中断。如此,可进一步确保第一应用切换运行的准确性,避免遗漏。
在一个实施例中,预设界面场景包括以下任意一项:信息输入中场景、数据传输中场景、游戏进行中场景、导航进行中场景中以及具有预设信息的界面场景。
即即使前台运行的第一应用不属于预设应用列表中的至少一个预设应用,但只要第一应用的当前界面场景为信息输入中场景、数据传输中场景、游戏进行中场景、导航进行中场景中以及具有预设信息的界面场景中的任意一种场景,即可将其切换至虚拟显示器继续运行,不中断第一应用的运行,避免第一应用中断后需用户重新进行相关操作才能恢复中断前的状态,便于用户操作,可提高用户使用体验。在一个示例中,预设信息可包括但不限于验证码、密码、邮箱、手机号码以及身份证等输入信息。
在一个实施例中,将第一应用移动至虚拟显示器运行之后,还包括:在前台显示通知消息,通知消息用于通知第一应用在虚拟显示器运行。可以理解,在终端设备的显示屏显示通知消息,以提醒用户第一应用已成功切换至虚拟显示器运行。
在一个实施例中,将第一应用移动至虚拟显示器运行之后,还包括:在终端设备的通知栏添加通知消息,通知消息用于通知第一应用在虚拟显示器运行。可在终端设备的通知栏添加通知消息,表示第一应用成功切换至虚拟显示器运行,用户可在通知栏中查看通知消息,以便提醒用户第一应用已切换运行。
在一个实施例中,将第一应用移动至虚拟显示器运行之后,还包括:接 收对通知栏的第一输入,响应于第一输入,在前台显示通知窗口,通知窗口中包括第一应用的当前运行界面。
将第一应用移动至虚拟显示器运行之后,用户可对通知栏进行第一输入,终端设备响应于该第一输入,即可在前台显示通知窗口(可以理解在终端设备的显示屏中显示通知窗口),在通知窗口中显示有第一应用的当前运行界面,便于用户查看第一应用的当前运行界面。例如,在监听到目标事件,对第一应用进行切换前,用户正通过第一应用进行数据传输中,此时,第一应用的当前界面场景为数据传输中场景,将第一应用切换至虚拟显示器运行。后续用户在通知栏可进行第一输入,终端设备响应于第一输入在前台显示通知窗口,若此时数据已传输完毕,则当前运行界面则为数据已传输完毕后的界面。
在一个示例中,上述第一输入可以为滑动输入,即可在通知栏中进行滑动输入,在前台显示通知窗口。上述滑动输入也可以是沿第一预设方向的滑动输入,若通知栏位于终端设备的显示屏的顶部,则第一预设方向可以为终端设备顶部向终端设备的与顶部相对的底部的方向。如此,可便于用户操作。
在一个实施例中,在前台显示通知窗口之后,还包括:接收在通知窗口的第二输入;响应于第二输入,将第一应用恢复至前台运行。
在显示通知窗口后,不但可查看到当前运行界面,还可选择将第一应用恢复至前台运行。用户可在通知窗口进行第二输入,终端设备响应于该第二输入即可将第一应用重新切换至前台运行,如此,用户操作简单,便于用户操作。在一个示例中,第二输入可以为点击输入,在显示窗口中还包括退出按钮,点击输入可以为对退出按钮的点击输入,响应该点击输入,即可将第一应用从虚拟显示器退出,恢复至前台运行。
在另一个实施例中,在前台显示通知窗口之后,还包括:接收在通知窗口的第三输入;响应于第三输入,将第一应用切换至后台运行。
在显示通知窗口后,不但可查看到当前运行界面,还可停止第一应用在虚拟显示器的运行。用户可在通知窗口进行第三输入,终端设备响应于该第三输入即可将第一应用切换至终端设备***后台运行,如此,不但可满足用户将应用切换至后台的需求,而且用户操作简单,便于用户操作。在一个示例中,第三输入可以为点击输入,在显示窗口中还包括停止按钮,点击输入 可以为对停止按钮的点击输入,响应该点击输入,即可将第一应用切换至终端设备***后台运行。
在一个示例中,通知窗口中还可包括时长,即第一应用移动至虚拟显示器运行的时长,便于用户查看。
下面以一个具体实施例对上述事件处理方法的过程加以说明。以前台运行应用X,目标事件为来电事件为例进行说明。
如图3所示,用户当前利用终端设备在信息输入中、数据传输中、游戏进行中或导航进行中,如监测到来电事件,若中断上述场景,即信息输入中断、数据传输中断、游戏中断或导航中断,影响用户体验。
例如,如图4所示,为信息输入中场景,即输入法应用是正在运行,其中接收信息输入的应用也在运行中,目前已输入用户名以及密码,正在进行验证码的输入,在输入信息过程中,若监测到来电显示,可能中断输入,输入的信息被清除,下次回到前台执行时需要再次重新输入,即中断后已输入的用户名和密码会清除,下次需重新输入。如图5所示,在数据传输中,若监测到来电显示,传输过程可能被中断,则已传输的部分则会被清楚,未传输的部分不再继续传输,下次需要重新传输,不便于用户操作,影响用户体验。因此,本实施例提供一种事件处理方法,可在前台运行第一应用时监测到来电事件时,可确保第一应用继续运行不中断,且可响应来电事件。即对于上述输入信息过程中,已输入了用户名和密码,若监测到来电事件,信息输入场景不会被中断,会移动至虚拟显示器中运行,已输入的用户名和密码不会丢失,再次恢复至前台运行后,用户名和密码仍然存在,只需输入验证码即可。对于上述数据传输过程,一旦监测到来电事件,进行数据传输的应用切换到虚拟显示器中运行后,数据传输仍然继续不会中断,确保数据的正常传输。
具体地,如图6所示,首先,终端设备前台正运行应用X,监听到来电事件,则判断应用X是否需要应急处理,即判断应用X是否属于预设应用列表中至少一个预设应用中的一种,若是,则直接创建后台虚拟显示器,若否,则识别应用X的当前界面场景,并判断当前界面场景是否为预设界面场景,例如,判断当前界面场景是否为信息输入中场景、数据传输中场景、游戏进 行中场景、导航进行中场景中以及具有预设信息的界面场景中任意一种,若是其中一种,也可创建后台虚拟显示器,放置终端设备屏幕以外,虚拟显示器屏蔽所有触摸事件,不响应任何按键事件。然后将应用X移动至虚拟显示器中运行,确保应用X在虚拟显示器中继续运作,并响应来电事件,在前台显示来电事件关联的来电界面,在该来电界面中可显示来电方的名称以及来电号码等。在将应用X成功移动至虚拟显示器运行之后,可在终端设备显示屏中显示通知消息,以通知应用X已成功切换至虚拟显示器运行。用户还可下拉通知栏,即可在前台显示包括应用X的当前运行界面的通知窗口,如图7所示。在通知窗口中还包括停止和退出按钮,若用户选择退出按钮,则将应用X重新恢复到前台运行,并可继续监听来电事件等。若用户选择停止按钮,则可将应用X切换至终端设备***后台运行,即可能中断应用X的当前运行场景。若当前界面场景不为预设界面场景,则可将将应用X切换至终端设备***后台运行。
本实施例的事件处理方法,针对常见的突发事件或是用户屏幕误触事件被触发时,自动进行前台的应用的当前界面场景的识别。若是正在输入、正在数据传输、正在游戏或导航等特殊场景中,则临时构建一个虚拟显示器,通过将前台运行的应用X移动至该虚拟显示器继续运行,既保证应用X正常运行和数据交互,又可以及时处理该次突发事件。即主要是利用Virture Display方式实现应用从前台切换至虚拟显示器运行,既可保证前台运行的应用不会被中断停止,又可保证***及时响应突发事件或用户误触控事件等,可以极大提升体验效果,避免诸如数据传输较为繁琐复杂的界面被重新加载,亦或是游戏临时被断网退出登录等影响用户体验的问题。
如图8所示,本公开还提供一个实施例的终端设备800,包括:
创建模块801,用于在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器;
处理模块802,用于将第一应用移动至虚拟显示器运行,以及在前台显示目标事件关联的第一界面。
在一个实施例中,创建模块,包括:
第一创建模块,用于在前台运行第一应用的情况下,监听到目标事件, 若第一应用属于预设应用列表中的至少一个预设应用,则创建虚拟显示器。
在一个实施例中,创建模块,还包括:
识别模块,用于在前台运行第一应用的情况下,监听到目标事件,若第一应用不属于预设应用列表中的至少一个预设应用,则识别第一应用的当前界面场景;
第二创建模块,在当前界面场景为预设界面场景的情况下,创建虚拟显示器。
在一个实施例中,预设界面场景包括以下任意一项:信息输入中场景、数据传输中场景、游戏进行中场景、导航进行中场景中以及具有预设信息的界面场景。
在一个实施例中,终端设备,还包括:
显示模块,用于在前台显示通知消息,通知消息用于通知第一应用在虚拟显示器运行。
在一个实施例中,终端设备,还包括:
添加模块,用于在终端设备的通知栏添加通知消息,通知消息用于通知第一应用在虚拟显示器运行。
在一个实施例中,终端设备还包括:
通知窗口显示模块,用于接收对通知栏的第一输入,响应于第一输入,在前台显示通知窗口,通知窗口中包括第一应用的当前运行界面。
在一个实施例中,终端设备,还包括:
第二输入接收模块,用于接收在通知窗口的第二输入;
恢复模块,用于响应于第二输入,将第一应用恢复至前台运行。
在一个实施例中,终端设备,还包括:
第三输入接收模块,用于接收在通知窗口的第三输入;
切换模块,用于响应于第三输入,将第一应用切换至后台运行。
本公开实施例提供的终端设备中的技术特征与上述事件处理方法中的技术特征对应,通过终端设备实现上述事件处理方法的各个过程,并能得到相同的效果,为避免重复,在此不再赘述。
图9为实现本公开各个实施例的一种终端设备的硬件结构示意图,该终 端设备900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910、以及电源911等部件。本领域技术人员可以理解,图5中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载移动终端、可穿戴设备、以及计步器等。
其中,处理器910,用于在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器;将第一应用移动至虚拟显示器运行,以及在前台显示目标事件关联的第一界面。
由于在前台运行第一应用的情况下,若监测到目标事件,会创建虚拟显示器,然后将第一应用移动至虚拟显示器继续运行,即可确保第一应用继续运行。而且能及时对目标事件进行处理,在前台显示目标时间关联的第一界面,确保对目标事件的处理效果。通过上述事件处理方法,在监测到目标事件时,可确保前台运行的第一应用在虚拟显示器继续运行的同时能确保对目标事件的处理效果。
应理解的是,本公开实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发送,具体地,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发送给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元901还可以通过无线通信***与网络和其他设备通信。
终端设备通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与终端设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。
输入单元904用于接收音频或视频信号。输入单元904可以包括图形处 理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获终端设备(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发送。麦克风9042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发送到移动通信基站的格式输出。
终端设备900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9091的亮度,接近传感器可在终端设备900移动到耳边时,关闭显示面板9091和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。
用户输入单元907可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸检测终端设备和触摸控制器两个部分。其中,触摸检测终端设备检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸 控制器;触摸控制器从触摸检测终端设备上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步地,触控面板9071可覆盖在显示面板9061上,当触控面板9071检测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图5中,触控面板9071与显示面板9061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板9071与显示面板9061集成而实现终端设备的输入和输出功能,具体此处不做限定。
接口单元908为外部终端设备与终端设备500连接的接口。例如,外部终端设备可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的终端设备的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部终端设备的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备500内的一个或多个元件或者可以用于在终端设备500和外部终端设备之间传输数据。
存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器910是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行终端设备的各种功能和处理数据, 从而对终端设备进行整体监控。处理器910可包括一个或多个处理单元;可选地处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。
终端设备500还可以包括给各个部件供电的电源911(比如电池),可选地,电源911可以通过电源管理***与处理器910逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
另外,终端设备500包括一些未示出的功能模块,在此不再赘述。
本公开实施例还提供一种终端设备,包括处理器910和存储器909,存储器909存储有可在处理器910上运行的计算机程序,该计算机程序被处理器910执行时实现上述事件处理方法实施例中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述事件处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务 器,空调器,或者网络设备等)执行本公开各个实施例的方法。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。
Claims (12)
- 一种事件处理方法,包括:在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器;将所述第一应用移动至所述虚拟显示器运行,以及在前台显示所述目标事件关联的第一界面。
- 根据权利要求1所述的方法,其中,所述在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器,包括:在前台运行第一应用的情况下,监听到目标事件,若所述第一应用属于预设应用列表中的至少一个预设应用,则创建所述虚拟显示器。
- 根据权利要求2所述的方法,其中,所述在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器,还包括:在前台运行第一应用的情况下,监听到目标事件,若所述第一应用不属于所述预设应用列表中的至少一个预设应用,则识别所述第一应用的当前界面场景;在所述当前界面场景为预设界面场景的情况下,创建所述虚拟显示器。
- 根据权利要求1所述的方法,其中,所述将所述第一应用移动至所述虚拟显示器运行之后,还包括:接收对通知栏的第一输入,响应于所述第一输入,在前台显示通知窗口,所述通知窗口中包括所述第一应用的当前运行界面。
- 根据权利要求4所述的方法,其中,所述在前台显示通知窗口之后,还包括:接收在所述通知窗口的第二输入;响应于所述第二输入,将所述第一应用恢复至前台运行;或者接收在所述通知窗口的第三输入;响应于所述第三输入,将所述第一应用切换至后台运行。
- 一种终端设备,包括:创建模块,用于在前台运行第一应用的情况下,监听到目标事件,创建虚拟显示器;处理模块,用于将所述第一应用移动至所述虚拟显示器运行,以及在前台显示所述目标事件关联的第一界面。
- 根据权利要求6所述的终端设备,其中,所述创建模块包括:第一创建模块,用于在前台运行第一应用的情况下,监听到目标事件,若所述第一应用属于预设应用列表中的至少一个预设应用,则创建所述虚拟显示器。
- 根据权利要求7所述的终端设备,其中,所述创建模块还包括:识别模块,用于在前台运行第一应用的情况下,监听到目标事件,若所述第一应用不属于所述预设应用列表中的至少一个预设应用,则识别所述第一应用的当前界面场景;第二创建模块,在所述当前界面场景为预设界面场景的情况下,创建所述虚拟显示器。
- 根据权利要求6所述的终端设备,还包括:通知窗口显示模块,用于接收对通知栏的第一输入,响应于所述第一输入,在前台显示通知窗口,所述通知窗口中包括所述第一应用的当前运行界面。
- 根据权利要求9所述的终端设备,还包括:第二输入接收模块,用于接收在所述通知窗口的第二输入;恢复模块,用于响应于所述第二输入,将所述第一应用恢复至前台运行;或者第三输入接收模块,用于接收在所述通知窗口的第三输入;切换模块,用于响应于所述第三输入,将所述第一应用切换至后台运行。
- 一种终端设备,包括:存储器和处理器,其中,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如上权利要求1-5中任意一项所述事件处理方法中的步骤。
- 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上权利要求1-5中任意一项所述事件处理方法中的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910693803.2A CN110427239A (zh) | 2019-07-30 | 2019-07-30 | 一种事件处理方法、终端设备及计算机可读存储介质 |
CN201910693803.2 | 2019-07-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021017763A1 true WO2021017763A1 (zh) | 2021-02-04 |
Family
ID=68413127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/100435 WO2021017763A1 (zh) | 2019-07-30 | 2020-07-06 | 事件处理方法、终端设备及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110427239A (zh) |
WO (1) | WO2021017763A1 (zh) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427239A (zh) * | 2019-07-30 | 2019-11-08 | 维沃移动通信有限公司 | 一种事件处理方法、终端设备及计算机可读存储介质 |
CN111045772A (zh) * | 2019-12-02 | 2020-04-21 | 维沃移动通信有限公司 | 一种应用分享方法、电子设备及计算机可读存储介质 |
CN111026484A (zh) * | 2019-12-02 | 2020-04-17 | 维沃移动通信有限公司 | 一种应用分享方法、第一电子设备及计算机可读存储介质 |
CN111182138A (zh) * | 2019-12-24 | 2020-05-19 | 腾讯科技(深圳)有限公司 | 一种通话控制方法及装置 |
CN112799759B (zh) * | 2021-01-21 | 2024-05-24 | 惠州Tcl移动通信有限公司 | 一种参数调节方法、智能终端及计算机可读存储介质 |
CN113138675B (zh) * | 2021-03-23 | 2023-07-04 | 维沃移动通信有限公司 | 信息显示方法、装置和电子设备 |
CN113781740B (zh) * | 2021-09-07 | 2023-03-24 | 北京石油化工学院 | 事件触发响应的方法和设备 |
CN114327750A (zh) * | 2021-12-07 | 2022-04-12 | 成都鲁易科技有限公司 | 安卓模拟器的显示方法及安卓模拟器、存储介质 |
CN115002274B (zh) * | 2022-05-07 | 2024-02-20 | Oppo广东移动通信有限公司 | 控制方法及装置、电子设备及计算机可读存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104049883A (zh) * | 2013-03-15 | 2014-09-17 | 广州三星通信技术研究有限公司 | 显示子屏幕和在子屏幕中进行操作的方法和*** |
CN104834553A (zh) * | 2014-02-12 | 2015-08-12 | 中兴通讯股份有限公司 | 一种用户终端的业务并发处理方法及用户终端 |
CN105468239A (zh) * | 2015-12-07 | 2016-04-06 | 联想(北京)有限公司 | 控制方法、控制装置及移动终端 |
US20170169594A1 (en) * | 2015-12-15 | 2017-06-15 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for implementing video recommendation |
CN110427239A (zh) * | 2019-07-30 | 2019-11-08 | 维沃移动通信有限公司 | 一种事件处理方法、终端设备及计算机可读存储介质 |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100917687B1 (ko) * | 2007-06-26 | 2009-09-21 | 문창선 | 가상 인터페이스를 제공하기 위한 시스템 및 방법 |
CN101609401B (zh) * | 2009-07-02 | 2012-05-02 | 深圳市万兴软件有限公司 | 一种无干扰屏幕录制方法和*** |
US9058759B2 (en) * | 2012-06-14 | 2015-06-16 | Avatron Software, Inc. | Virtual display device drivers compatible with windows display driver model |
US9250700B2 (en) * | 2013-02-28 | 2016-02-02 | Apple Inc. | System and method for virtual displays |
EP3207450B1 (en) * | 2014-10-14 | 2020-11-18 | Barco N.V. | Display system with a virtual display |
CN104391581B (zh) * | 2014-12-15 | 2017-11-21 | 华勤通讯技术有限公司 | 移动终端及其应用程序的操作界面的投影方法 |
CN104915171A (zh) * | 2015-06-16 | 2015-09-16 | 广州视睿电子科技有限公司 | 一种计算机桌面的显示方法与装置 |
CN106502490A (zh) * | 2016-09-19 | 2017-03-15 | 深圳市金立通信设备有限公司 | 一种来电提醒方法及终端 |
CN106598529A (zh) * | 2017-01-25 | 2017-04-26 | 北京奇虎科技有限公司 | 一种移动终端的分屏显示方法和装置、移动终端 |
CN107168513A (zh) * | 2017-03-22 | 2017-09-15 | 联想(北京)有限公司 | 信息处理方法及电子设备 |
CN107277242A (zh) * | 2017-06-14 | 2017-10-20 | 黄之 | 一种屏幕显示信息的处理方法、显示方法和显示*** |
CN107704294B (zh) * | 2017-10-27 | 2021-01-15 | 北京小米移动软件有限公司 | 处理预约事件的方法和装置 |
CN108874342B (zh) * | 2018-06-13 | 2021-08-03 | 深圳市东向同人科技有限公司 | 投影视图切换方法及终端设备 |
CN109271121B (zh) * | 2018-08-31 | 2021-11-23 | 维沃移动通信有限公司 | 一种应用显示方法和移动终端 |
CN109240791B (zh) * | 2018-09-25 | 2022-03-11 | Oppo广东移动通信有限公司 | 一种应用程序显示方法、应用程序显示装置及移动终端 |
CN109165076B (zh) * | 2018-10-17 | 2022-03-29 | Oppo广东移动通信有限公司 | 游戏应用程序的显示方法、装置、终端及存储介质 |
CN109634487B (zh) * | 2018-12-21 | 2021-02-26 | 惠州Tcl移动通信有限公司 | 信息显示方法、装置及存储介质 |
-
2019
- 2019-07-30 CN CN201910693803.2A patent/CN110427239A/zh active Pending
-
2020
- 2020-07-06 WO PCT/CN2020/100435 patent/WO2021017763A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104049883A (zh) * | 2013-03-15 | 2014-09-17 | 广州三星通信技术研究有限公司 | 显示子屏幕和在子屏幕中进行操作的方法和*** |
CN104834553A (zh) * | 2014-02-12 | 2015-08-12 | 中兴通讯股份有限公司 | 一种用户终端的业务并发处理方法及用户终端 |
CN105468239A (zh) * | 2015-12-07 | 2016-04-06 | 联想(北京)有限公司 | 控制方法、控制装置及移动终端 |
US20170169594A1 (en) * | 2015-12-15 | 2017-06-15 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for implementing video recommendation |
CN110427239A (zh) * | 2019-07-30 | 2019-11-08 | 维沃移动通信有限公司 | 一种事件处理方法、终端设备及计算机可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN110427239A (zh) | 2019-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017763A1 (zh) | 事件处理方法、终端设备及计算机可读存储介质 | |
WO2021098678A1 (zh) | 投屏控制方法及电子设备 | |
WO2019154181A1 (zh) | 显示控制方法及移动终端 | |
WO2021109907A1 (zh) | 应用分享方法、第一电子设备及计算机可读存储介质 | |
WO2020238449A1 (zh) | 通知消息的处理方法及终端 | |
WO2021017776A1 (zh) | 信息处理方法及终端 | |
WO2020186945A1 (zh) | 界面显示方法及终端设备 | |
WO2021129762A1 (zh) | 应用分享方法、电子设备及计算机可读存储介质 | |
WO2021083087A1 (zh) | 截屏方法及终端设备 | |
WO2020156120A1 (zh) | 通知消息显示方法及移动终端 | |
WO2020186964A1 (zh) | 音频信号的输出方法及终端设备 | |
US20210200398A1 (en) | Information processing method and terminal | |
WO2020215932A1 (zh) | 显示未读消息的方法及终端设备 | |
WO2019196691A1 (zh) | 一种键盘界面显示方法和移动终端 | |
WO2020151525A1 (zh) | 消息发送方法及终端设备 | |
WO2021109925A1 (zh) | 应用分享方法、电子设备及计算机可读存储介质 | |
WO2019080775A1 (zh) | 通知消息的提示方法及移动终端 | |
WO2020238463A1 (zh) | 消息处理方法及终端 | |
WO2021121099A1 (zh) | 消息通知方法及电子设备 | |
US20220278950A1 (en) | Information display method, information sending method, and electronic device | |
WO2020192324A1 (zh) | 界面显示方法及终端设备 | |
WO2021109959A1 (zh) | 应用程序分享方法及电子设备 | |
WO2021197265A1 (zh) | 信息展示方法、电子设备及存储介质 | |
WO2019228296A1 (zh) | 显示处理方法及终端设备 | |
WO2021057290A1 (zh) | 信息控制方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20845948 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20845948 Country of ref document: EP Kind code of ref document: A1 |