WO2021000807A1 - 一种应用程序中等待场景的处理方法和装置 - Google Patents

一种应用程序中等待场景的处理方法和装置 Download PDF

Info

Publication number
WO2021000807A1
WO2021000807A1 PCT/CN2020/098673 CN2020098673W WO2021000807A1 WO 2021000807 A1 WO2021000807 A1 WO 2021000807A1 CN 2020098673 W CN2020098673 W CN 2020098673W WO 2021000807 A1 WO2021000807 A1 WO 2021000807A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
electronic device
interface
running
information
Prior art date
Application number
PCT/CN2020/098673
Other languages
English (en)
French (fr)
Inventor
李卫
韦行海
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20834899.5A priority Critical patent/EP3964954A4/en
Priority to US17/623,425 priority patent/US11921977B2/en
Publication of WO2021000807A1 publication Critical patent/WO2021000807A1/zh

Links

Images

Classifications

    • 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
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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
    • G06F3/04817Interaction 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 using icons
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • 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

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular, to a method and device for processing a waiting scene in an application program.
  • the embodiment of the present application provides a method and device for processing a waiting scene in an application program, which can improve the utilization rate of time in the waiting scene and improve user experience.
  • a method for processing a waiting scene in an application includes: an electronic device runs a first application; the electronic device displays a first interface of the first application, and the first interface includes waiting Information; the electronic device responds to the first application, according to the first instruction of the waiting information, the electronic device displays the information of the second application; the electronic device continues to run the first application in the background; wherein the first application is in the background
  • the running state is consistent with the running state of the foreground.
  • the information of the second application can be displayed according to the first instruction of the waiting information, that is, the electronic device can directly switch from the interface of the first application to the interface of the second application, without the need to switch to the interface of the second application.
  • the interface of the first application is switched to the main interface, and then from the main interface to the interface of the second application. Therefore, the number of interface switching is less, the user operation is convenient, and the user experience is improved.
  • the electronic device runs the first application in the background, the running state of the first application is consistent with its running state in the foreground.
  • the first application runs in the background, its remaining waiting time will not be suspended, so While the second application is running in the foreground, the remaining waiting time of the first application can be continued in the background, so the waiting time of the first application can be effectively used and the user time utilization rate can be improved.
  • the above-mentioned state of the first application running in the background being consistent with the state of running in the foreground means that when the first application is running in the background, the remaining waiting time of the first application will not be suspended, but can be like it is in the foreground.
  • the running state is the same, the remaining waiting time continues to count down in the background.
  • the remaining waiting time in the countdown icon of the first application is 20 seconds
  • the electronic device runs the second application in the foreground, and the first application is switched to run in the background.
  • the remaining waiting time in the countdown icon of the first application is 10 seconds. That is, when the first application is running in the background, the remaining waiting time in the countdown icon of the first application will not stop, but can continue to count down in the background.
  • the electronic device continues to run the first application in the background, including: the electronic device intercepts the PAUSE command transmitted to the first application; or, the electronic device sends the The first application transmits a second instruction, and the second instruction is used to instruct the first application to continue to run in the foreground running state.
  • the PAUSE command can be intercepted or the second command can be transmitted to the first application, so that the status of the first application running in the background is consistent with the status of the first application running in the foreground.
  • the information of the second application is the second interface of the second application. Based on this solution, the electronic device can directly switch the first application to the second application and display the second interface of the second application.
  • the information of the second application is an icon of the second application
  • the method further includes: the electronic device receives the user A selection operation on the icon of the second application; in response to the user's selection operation, the electronic device displays the second interface of the second application. Based on this solution, the electronic device can display the icon of the second application in the first application, and after receiving the user's click operation on the second application, display the second interface of the second application. It is understandable that when the solution switches from the interface of the first application to the interface of the second application, there is no need to switch from the first interface of the first application to the main interface, and then switch from the main interface to the interface of the second application. Therefore, the interface There are fewer handovers and a better user experience.
  • the second interface further includes the waiting information. Based on this solution, when the electronic device is running the second application in the foreground, the interface of the second application can display waiting information, so that the user knows the current remaining waiting time of the first application.
  • the above method further includes: when the remaining waiting time of the electronic device ends, the electronic device displays the information of the first application information. Based on this solution, after the waiting time of the first application ends, the electronic device can switch the second application to the first application.
  • the information of the first application is the information of the first application after the remaining waiting time of the first interface ends.
  • UI the electronic device displays the display interface of the first application after the remaining waiting time of the first application ends, and the second application is switched to run in the background.
  • the information of the first application is an icon of the first application
  • the method further includes: the electronic device receives the user A click operation on the icon of the first application; in response to a user click operation on the icon of the first application, the electronic device displays the display interface of the first application after the remaining waiting time for displaying the first interface ends. Based on this solution, after the remaining waiting time of the first application ends, the electronic device displays the icon of the first application, and after receiving the user's click operation on the icon of the first application, the electronic device displays the first application after the remaining waiting time ends. The display interface of the application.
  • the above first instruction includes the remaining waiting time; or, the above method further includes: the above electronic device recognizes the above first The above waiting information on the interface determines the remaining waiting time. Based on this solution, the remaining waiting time can be obtained by identifying the waiting information on the first interface.
  • the above-mentioned second application is an application that the above-mentioned electronic device runs in the background; or, the above-mentioned second application is the above-mentioned electronic device An application whose running times or running duration is greater than a preset threshold within a preset time; or, the above-mentioned second application is an application pre-configured in the above-mentioned electronic device.
  • the second application may be an application that runs in the background, or an application that has a longer running number or duration, or an application preset by the user, which is not limited in this application.
  • the electronic device when the first application is running in the background, the electronic device does not check and kill the process corresponding to the first application. Based on this solution, when the first application is running in the background, the first application will not be checked and killed by the system and can be kept alive in the background.
  • the method when the first application is running in the background, the method further includes: the electronic device plays the audio of the first application information. Based on this solution, the first application runs in the background, and the electronic device can play audio information of the first application. Optionally, the electronic device may also play audio information of the second application.
  • the above-mentioned waiting information includes: a countdown icon, a waiting time text message, or a pause message.
  • the form of waiting information can include multiple, which is not limited in this application.
  • a second aspect of the embodiments of the present application provides a method for processing a waiting scene in an application.
  • the above method includes: an electronic device runs a first application; the electronic device displays a first interface of the first application, and the first interface includes waiting Information; the electronic device receives a user's first operation, the first operation is used to enable the background continue running function; the background continue running function means that the state of the first application running in the background is consistent with the state running in the foreground; In the first operation, the electronic device displays the information of the second application; the electronic device continues to run the above-mentioned first application in the background; wherein, the state of the first application running in the background is consistent with the state running in the foreground.
  • the electronic device can directly switch from the interface of the first application to the interface of the second application without first changing the interface of the first application as in the prior art.
  • the interface is switched to the main interface, and then from the main interface to the interface of the second application. Therefore, the number of interface switching is less, the user operation is convenient, and the user experience is improved.
  • the running state of the first application is consistent with its running state in the foreground, and the remaining waiting time of the first application will not be suspended, so the second application is running in the foreground
  • the remaining waiting time of the first application can be continued in the background, so the waiting time of the first application can be effectively used, and the user time utilization rate can be improved.
  • the electronic device continues to run the first application in the background, including: the electronic device intercepts the PAUSE command transmitted to the first application; or, the electronic device sends the The first application transmits a first instruction, and the first instruction is used to instruct the first application to continue running according to the state of the foreground running.
  • the state of the first application running in the background can be made consistent with the state of the first application running in the foreground.
  • the information of the second application is the second interface of the second application. Based on this solution, the electronic device can directly switch the first application to the second application and display the second interface of the second application.
  • the information of the second application is an icon of the second application
  • the method further includes: the electronic device receives the user A selection operation on the icon of the aforementioned second application; in response to the user's selection operation, the electronic device displays the second interface of the aforementioned second application. Based on this solution, the electronic device can display the icon of the second application in the first application, and after receiving the user's click operation on the second application, display the second interface of the second application.
  • the second interface further includes the waiting information. Based on this solution, when the electronic device is running the second application in the foreground, the interface of the second application can display waiting information, so that the user knows the current remaining waiting time of the first application.
  • the above method further includes: when the remaining waiting time ends, the electronic device displays the information of the first application . Based on this solution, after the waiting time of the first application ends, the electronic device can switch the second application to the first application.
  • the information of the first application is the information of the first application after the remaining waiting time of the first interface ends.
  • UI the electronic device displays the display interface of the first application after the remaining waiting time of the first application ends, and the second application is switched to run in the background.
  • the information of the first application is an icon of the first application
  • the method further includes: the electronic device receives the user A click operation on the icon of the first application; in response to a user click operation on the icon of the first application, the electronic device displays the display interface of the first application after the remaining waiting time for displaying the first interface ends. Based on this solution, after the remaining waiting time of the first application ends, the electronic device displays the icon of the first application, and after receiving the user's click operation on the icon of the first application, the electronic device displays the first application after the remaining waiting time ends. The display interface of the application.
  • the above method further includes: the electronic device recognizes the above waiting information of the above first interface, and determines the remaining waiting time. Based on this solution, the remaining waiting time can be obtained by identifying the waiting information on the first interface.
  • the above-mentioned second application is an application that the above-mentioned electronic device runs in the background; or, the above-mentioned second application is the above-mentioned electronic device An application whose running times or running duration is greater than a preset threshold within a preset time; or, the above-mentioned second application is an application pre-configured in the above-mentioned electronic device.
  • the second application may be an application that runs in the background, or an application that has a longer running number or duration, or an application preset by the user, which is not limited in this application.
  • the electronic device when the first application is running in the background, the electronic device does not check and kill the process corresponding to the first application. Based on this solution, when the first application is running in the background, the first application will not be checked and killed by the system and can be kept alive in the background.
  • the method when the first application is running in the background, the method further includes: the electronic device plays the audio of the first application information. Based on this solution, the first application runs in the background, and the electronic device can play audio information of the first application. Optionally, the electronic device may also play audio information of the second application.
  • the above waiting information includes: a countdown icon, a waiting time text message, or a pause message.
  • the form of waiting information can include multiple, which is not limited in this application.
  • the embodiments of the present application provide an electronic device that can implement the method for processing a waiting scene in the application program described in the first aspect, which can be executed by software, hardware, or hardware
  • the corresponding software implements the above method.
  • the electronic device may include a processor and a memory.
  • the processor is configured to support the electronic device to perform corresponding functions in the above-mentioned first aspect or second aspect method.
  • the memory is used for coupling with the processor, and it stores the necessary program instructions and data of the electronic device.
  • the embodiments of the present application provide a computer storage medium.
  • the computer storage medium includes computer instructions.
  • the computer instructions run on an electronic device, the electronic device executes any of the above aspects and The possible design method of the waiting scene processing method in the application.
  • the embodiments of the present application provide a computer program product that, when the computer program product runs on a computer, causes the computer to execute as described in any of the foregoing aspects and possible design methods.
  • the processing method of the waiting scene in the application is described in any of the foregoing aspects and possible design methods.
  • FIG. 1A is a schematic diagram 1 of a scenario example of a method for processing a waiting scenario in an application provided by an embodiment of the application;
  • FIG. 1B is a second schematic diagram of a scenario example of a method for processing a waiting scenario in an application provided by an embodiment of the application;
  • FIG. 1C is a schematic diagram 3 of a scenario example of a method for processing a waiting scenario in an application provided by an embodiment of the application;
  • FIG. 1D is a fourth schematic diagram of a scenario example of a method for processing a waiting scenario in an application provided by an embodiment of the application;
  • 1E is a schematic diagram five of a scenario example of a processing method of a waiting scenario in an application provided by an embodiment of the application;
  • FIG. 2 is a schematic diagram of the composition of a hardware structure of an electronic device provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the application.
  • FIG. 4 is a first flowchart of a method for processing a waiting scene in an application provided by an embodiment of the application;
  • 5A is a first schematic diagram of an example of a display interface of an electronic device provided by an embodiment of the application.
  • 5B is a second schematic diagram of an example of a display interface of an electronic device provided by an embodiment of the application.
  • 5C is a third schematic diagram of an example of a display interface of an electronic device provided by an embodiment of the application.
  • 5D is a fourth schematic diagram of an example of a display interface of an electronic device provided by an embodiment of this application.
  • 5E is a schematic diagram five of an example of a display interface of an electronic device provided by an embodiment of this application.
  • 5F is a sixth schematic diagram of an example of a display interface of an electronic device provided by an embodiment of this application.
  • 5G is a schematic diagram 7 of an example of a display interface of an electronic device provided by an embodiment of the application.
  • 5H is a schematic diagram eighth of an example of a display interface of an electronic device provided by an embodiment of the application.
  • FIG. 5I is a schematic diagram 9 of an example of a display interface of an electronic device provided by an embodiment of this application.
  • FIG. 6 is a second flowchart of a method for processing a waiting scene in an application provided by an embodiment of the application;
  • FIG. 7A is a tenth schematic diagram of an example of a display interface of an electronic device provided by an embodiment of this application.
  • FIG. 7B is an eleventh schematic diagram of an example of a display interface of an electronic device provided by an embodiment of this application.
  • FIG. 7C is a twelfth schematic diagram of an example of a display interface of an electronic device provided by an embodiment of this application.
  • FIG. 8 is a schematic diagram of the structural composition of an electronic device provided by an embodiment of the application.
  • At least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or, a and b and c, where a, b and c c can be single or multiple.
  • words such as “first” and “second” are used to distinguish the same items or similar items that have substantially the same function and effect. Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order.
  • the "first” in the first application and the "second” in the second application in the embodiments of the present application are only used to distinguish different applications.
  • the descriptions of the first, second, etc. appearing in the embodiments of this application are only used for illustration and distinguishing the description objects. There is no order, and it does not mean that the number of devices in the embodiments of this application is particularly limited, and cannot constitute a reference to this application. Any limitations of the embodiment.
  • the embodiment of the present application provides a method for processing a waiting scene in an application.
  • the waiting scene refers to that the interface of the application running on an electronic device includes waiting information, and the waiting information may be a countdown icon.
  • scenes such as game matchmaking, parachuting after following, and the death of the protagonist.
  • the electronic device displays the game application interface including a countdown icon.
  • the countdown icon includes the waiting time. After all players have joined the match, you can enter.
  • the user wants to process other interesting operations (for example, chatting on WeChat) while waiting for the scene.
  • the user can input a touch instruction in the interface of FIG. 1A, and the touch instruction is used to switch the display interface of the electronic device to the main interface (home interface).
  • the electronic device displays the main interface of FIG. 1C and switches the application of FIG. 1A to run in the background.
  • the user clicks the WeChat icon the electronic device receives the user's click operation on the WeChat icon, and in response to the click operation, the electronic device displays the interface of FIG. 1D.
  • the electronic device may display the interface of the game application in FIG. 1E.
  • the above solution cannot stop the countdown of the game application while the electronic device runs other services that are of interest to the user in the foreground, resulting in a low utilization rate of the waiting time in the game application and poor user experience.
  • the above solution is switched from one application to another, it is necessary to switch back from the interface of one application to the main interface, and then switch from the main interface to the interface of another application.
  • the number of interface switching times is large, resulting in poor user experience.
  • the game application is full-screen, if there is an anti-mistouch algorithm, it will be troublesome to switch from the full-screen game application interface to the main interface. It may cause the user to perform multiple operations when switching from the full-screen interface to the main interface. The problem of poor experience.
  • an existing solution is to monitor the video content played by the video application while the video application is running, and detect the user input when the video content is an advertisement.
  • Switching instructions for switching the video application to run in the background If the switching instruction is detected, the video application is controlled to switch to running in the background, and the service program performing the killing operation is notified to skip the target process corresponding to the video application.
  • the user can input a switching instruction (for example, the home button), and the electronic device receives the user's switching instruction.
  • the electronic device runs the above-mentioned video application in the background and does not respond to the video.
  • the Android system When an electronic device is running an application, the Android system will keep the application process as long as possible. When the process exits, it will not be killed by the system immediately, but when the Android system memory is insufficient, in order to create a new process Or the system runs more important processes to ensure the fluency of the system, and the system will kill some processes according to priority to reclaim memory.
  • the Android system may decide which process to kill according to the relative importance of the processes of different applications to the user. Background keep-alive means that the process can live in the background without being killed. For example: When the WeChat application is running in the background, it can still receive messages sent by other electronic devices.
  • the WeChat application when the WeChat application is running in the background, if the system memory is insufficient, other processes in the WeChat application can be killed, and only the processes that receive messages can be kept alive. It is understandable that the method to keep the process alive is that the system does not detect and kill the process, that is, the system notifies the service program that performs the killing operation to skip the target process.
  • the system keeps the process of the application alive, which does not mean that the application can continue to run in the background. For example, taking a video application as an example, when the video application is played for 30 minutes, the electronic device runs other applications in the foreground, and the video application is switched to run in the background. If the system memory is insufficient, the system may scan and kill the video application. When the video application is running in the foreground again, the electronic device displays the main interface of the video application. If the user needs to continue watching the aforementioned video, he needs to search for the video application again. Click to play the video.
  • the system keeps the video application alive in the background, and the electronic device runs other applications in the foreground for a period of time, when the video application is switched to the foreground again, the video application will continue to play from 30 minutes. Therefore, when an application is running in the background, the system keeps the process of the application alive, which can only guarantee that the process of the application will not be killed, but cannot guarantee that the application continues to run in the background.
  • the electronic device when the electronic device switches the video application to run in the background, it does not detect and kill the target process corresponding to the video application, and can only ensure that the video application is kept alive in the background, but does not guarantee that the electronic device runs in the background.
  • the advertisement of the video application continues to play, so the above solution cannot improve the time utilization of the advertisement in the video.
  • the embodiment of the present application provides a method for processing a waiting scene in an application.
  • the method can run a second application in the foreground and the first application in the background when the first application needs to wait for a countdown.
  • the countdown of the first application will not stop when running in the background, so the waiting time of the first application can be fully utilized and the user time utilization rate can be improved.
  • the interface of the first application can be quickly switched to the interface of the second application, which reduces the number of interface switching and improves user experience.
  • the method provided in the embodiments of the present application can be applied to a waiting interface of a game application, for example, an interface including a countdown icon, such as a game match, a parachuting after a follow-up, and the death of a protagonist. It can also be applied to a waiting interface during the playback of a video application, for example, an interface that includes a countdown icon such as advertisement playback. It can also be applied to other applications including a waiting interface, and the embodiment of the present application does not limit the specific scene of the waiting interface. In the following embodiments, only the waiting interface during the match-up match in the game application is taken as an example to describe the solution provided in this application.
  • the electronic devices in the embodiments of this application can be mobile phones, tablet computers, desktops, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, and cellular phones, personal digital Personal digital assistant (PDA), augmented reality (AR) ⁇ virtual reality (VR) devices, etc. including the above-mentioned folding screen devices, the embodiment of the present application does not impose special restrictions on the specific form of the electronic device.
  • PDA personal digital Personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • FIG. 2 is a schematic structural diagram of an electronic device 100 provided by an embodiment of this application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , The display screen 194, and the subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and the environment Light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in this embodiment is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs sound signals through audio equipment (not limited to speakers 170A, receiver 170B, etc.), or displays images or videos through display 194.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 may be used to display the interface of the electronic device. As shown in FIG. 1A-1E, the display screen 194 may be used to display the desktop of the electronic device and the interface of application programs. The desktop of the electronic device includes icons of multiple application programs. Both the icon of the application program and the interface of the application program can be displayed on the display screen 194.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the light-sensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the NPU may recognize the first interface of the first application through a picture recognition algorithm, and determine the countdown duration of the countdown icon in the first interface of the first application.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the processor 110 may execute instructions stored in the internal memory 121 to display corresponding display content on the display screen 184 in response to a user's click operation or selection operation on the display screen 194.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 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, a universal flash storage (UFS), etc.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a "speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece”, is used to convert audio electrical signals into sound signals.
  • the electronic device 100 When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
  • FIG. 3 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, phone, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application package may include an application program corresponding to the application icon in FIG. 1A.
  • an application program corresponding to the application icon in FIG. 1A.
  • mail settings, application market, photos, WeChat, camera, reading, sports health, Huawei Mall, video, speakers, music, Douyin, etc.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the data file describing the interface layout may be stored in the database.
  • the view system constructs an interface (for example, a desktop including an application icon)
  • the stored data file can be obtained through the content provider, and the interface can be displayed according to the obtained data file.
  • the data file stored in the content provider can also be modified.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the processing method of the waiting scene in the application may include steps S401-S405:
  • the electronic device runs the first application.
  • the first application is an application in the electronic device.
  • the first application may be an application in the whitelist, which may include one or more applications, and one or more applications in the whitelist may be user-set or factory-configured. This application is implemented The example does not limit this.
  • step S401 that the electronic device runs the first application in step S401 means that the electronic device runs the first application in the foreground.
  • the electronic device displays the interface of the first application.
  • the electronic device displays a first interface of the first application, where the first interface includes waiting information.
  • the first interface including the waiting information can only continue to run after the waiting time period ends. It is understandable that the first interface containing the waiting information can be regarded as the current scene of the first application as the waiting scene, and the user needs to wait for a preset period of time before continuing to run.
  • the waiting information may include: countdown icon, waiting time text information, or pause information, etc.
  • the embodiment of the present application does not limit the specific form of the waiting information, and is only an exemplary description here. The following embodiments only use the waiting information as the countdown icon for description.
  • the countdown icon may include the remaining waiting time.
  • the first interface including the waiting information may be referred to as the waiting interface.
  • the first interface of the first application includes a countdown icon, and the countdown icon includes a remaining waiting time of 20 seconds.
  • the electronic device displays the game start interface as shown in FIG. 5B.
  • the electronic device In response to the first application, the electronic device displays the information of the second application according to the first instruction of waiting for information.
  • the software development kit (SDK) of the first application can be used through the application
  • An interface Application Program Interface, API
  • An interface transmits a first instruction to the electronic device, where the first instruction is used to indicate that the first interface of the first application is a waiting interface.
  • the embodiment of the present application may provide an API interface for the first application, the first application calls the API interface when the waiting time of the waiting scene starts, and actively informs the electronic device of the waiting start of the first application through the first instruction, and the electronic device responds The first instruction displays the information of the second application.
  • the first instruction of the waiting information may include the remaining waiting time.
  • the information of the second application is the second interface of the second application.
  • the electronic device responds to the SDK of the first application, and according to the first instruction of waiting for information, the electronic device displays the second interface of the second application. That is, when the first interface of the first application is the waiting interface, the electronic device directly switches the first application to the second application, and displays the second interface of the second application.
  • the first interface displayed by the electronic device is a matchmaking interface in a game application, and the first interface includes a countdown icon.
  • the electronic device responds to the SDK of the first application and can wait for information according to the first interface.
  • An instruction is to switch the first interface of FIG. 5A to the interface of the second application in FIG. 5E. That is, when the first application is the waiting scene, the electronic device can directly switch the first application to run in the background, and run the second application in the foreground.
  • the information of the second application is an icon of the second application.
  • the electronic device displays the icon of the second application.
  • the icon of the second application may be displayed in the form of prompt information.
  • the electronic device may display first prompt information, and the first prompt information includes an icon of the second application.
  • the first prompt information is used to prompt the user to select applications.
  • the first prompt information may include an icon of at least one application, and the icon of the at least one application includes an icon of a second application.
  • the SDK of the first application transmits the first instruction to the electronic device through the API interface.
  • the electronic device displays first prompt information, and the first prompt information includes at least one application icon. That is, in the embodiment of the present application, when the first application starts to count down, the electronic device may display first prompt information to prompt the user to select an application that can be switched to the foreground to run.
  • the above-mentioned at least one application may include one or more applications that the electronic device runs in the background; or, the at least one application is one or more applications that the electronic device runs within a preset time or the running time is greater than a preset threshold Application; or, the at least one application is one or more applications pre-configured in the electronic device.
  • the embodiment of the present application does not limit the specific form of the at least one application.
  • the electronic device may display the first prompt information on the first interface of the first application in a pop-up manner.
  • applications running in the background of electronic devices include “WeChat”, “Tik Tok”, “Taobao”, and “Weibo”.
  • FIG. 5C when the first interface of the first application is a waiting interface, in response to the SDK, according to the first instruction of waiting for information, the electronic device displays the first prompt information in a pop-up box on the first interface of the first application.
  • the first prompt information includes a "WeChat” icon, a "Tik Tok” icon, a "Taobao” icon and a "Weibo” icon.
  • the "WeChat” icon is the icon of the second application.
  • the current interface of the first application can be learned through the first application as a waiting interface, and it is not necessary to recognize in real time whether the first interface of the first application is a waiting interface. Therefore, compared with the real-time interface in the prior art To identify whether the video content is an advertisement, the implementation of this application learns through the SDK that the current interface of the first application is a waiting interface, which has low system overhead and improves operating efficiency and system performance.
  • step S403 when the above-mentioned information of the second application is an icon of the second application, after step S403, it may further include: the electronic device receives a user's selection operation on the icon of the second application; in response to the user's selection operation, the electronic device displays the second application 2.
  • the second interface of the application when the above-mentioned information of the second application is an icon of the second application, after step S403, it may further include: the electronic device receives a user's selection operation on the icon of the second application; in response to the user's selection operation, the electronic device displays the second application 2.
  • the second interface of the application is not limited to the user's selection operation.
  • the user may select any application among at least one application included in the first prompt information, the application selected by the user is the second application, and the electronic device receives the user's click operation on the second application.
  • the user may select from at least one application included in the first prompt information according to the business of interest or the business that needs to be processed in time.
  • the user can select the "WeChat” application.
  • the user clicks the "WeChat” icon the electronic device receives the user's click operation on the "WeChat” icon.
  • the electronic device displays a "WeChat” interface.
  • the electronic device continues to run the first application in the background. Among them, the state of the first application running in the background is consistent with the state of running in the foreground.
  • the state of the first application running in the background is consistent with that of the foreground running.
  • the state of the first application running in the background is consistent with the state running in the foreground means that when the first application is running in the background, the remaining waiting time of the first application will not be suspended, but can be the same as its running state in the foreground , The remaining waiting time continues to count down in the background. For example, when the remaining waiting time in the countdown icon of the first application is 20 seconds, the electronic device runs the second application in the foreground, and the first application is switched to run in the background.
  • the remaining waiting time in the countdown icon of the first application is 10 seconds. That is, when the first application is running in the background, the remaining waiting time in the countdown icon of the first application will not stop, but can continue to count down in the background.
  • the life cycle of the Activity in the Android system can include: 1) When the Activity is started, the system first calls the onCreate method, then calls the onStart method, and finally calls onResume, and the Activity enters the running state. 2) When the current Activity is overwritten by other activities or locked, the system will call the onPause method to suspend the execution of the current Activity. 3) When the current Activity returns to the foreground or unlocks the screen from the covered state, the system will call the onResume method to enter the running state again. 4) The current Activity goes to the new Activity interface or press the Home button to return to the main screen. When it retreats to the background, the system will first call the onPause method, and then call the onStop method to enter the stagnation state.
  • the electronic device when the electronic device is running the first application in the foreground, if the user selects the second application, the electronic device will switch the second application to the foreground to run after receiving the user's selection operation. After being switched to running the first application in the background, it belongs to 4) in the above life cycle.
  • the system will call the onPause() interface. After the system calls the onPause() interface, the first application will be suspended. That is, when the electronic device is running the second application in the foreground, the first application is suspended in the background. It is understandable that when the first application is suspended in the background, the remaining waiting time in the countdown icon of the first application will also be suspended, and the countdown will not continue in the background.
  • the embodiment of the present application may implement the following two ways to realize that the state of the first application running in the background is consistent with the state of the first application running in the foreground. That is, when the first application is running in the background, the remaining waiting time of the first application can continue to count down like it is running in the foreground.
  • the electronic device intercepts the PAUSE command transmitted to the first application, so that the state of the first application running in the background is consistent with the state of the first application running in the foreground.
  • the system transmits the PAUSE command to the first application through the onPause() interface, the first application is suspended in the background, and the remaining waiting time of the first application is also suspended. That is, in the prior art, the state of the first application running in the background is not consistent with the state of the foreground running.
  • the electronic device intercepts the PAUSE command transmitted to the first application. For example, the electronic device does not call the onPause() interface.
  • the state of the first application running in the background is consistent with the state of running in the foreground.
  • the electronic device displays the second interface of the second application selected by the user, that is, the "WeChat” icon shown in Figure 5E "Interface.
  • the electronic device runs the second application in the foreground and runs the first application in the background, and the electronic device can intercept the PAUSE command transmitted to the first application. That is, when the first application is running in the background, the first application will not receive the PAUSE command sent by the system.
  • FIG. 5E shows the second interface of the second application selected by the user, that is, the "WeChat” icon shown in Figure 5E "Interface.
  • the electronic device when the first application is running in the background, transmits a second instruction to the first application, and the second instruction is used to instruct the first application to continue to run in the foreground running state.
  • the electronic device may call the onPause() interface, and transmit a second instruction through the onPause() interface to instruct the first application to continue running in the foreground running state.
  • the electronic device can call the onPause() interface and transmit the second instruction through the onPause() interface.
  • the first application can continue to run in the background as it is running in the foreground.
  • the remaining waiting time of the first application can continue to count down in the background as if it were running in the foreground.
  • the electronic device transmits the continue running instruction through the onPause() interface the running logic of the first application needs to be modified.
  • the second interface of the foregoing second application may further include waiting information.
  • take the waiting message as a countdown icon as an example.
  • the electronic device displays a second interface of the second application, and the second interface includes a countdown icon, and the countdown icon is "countdown 19 seconds".
  • the electronic device can always display the countdown icon before the countdown ends. As time goes by, the countdown duration in the countdown icon decreases every second, and the countdown icon in FIG. 5G is "Countdown: 17 seconds".
  • the above-mentioned second interface is an interface of a second application, and the second interface may change when the user operates the second application.
  • the interface displayed by the electronic device in FIG. 5F and the interface displayed by the electronic device in FIG. 5G are different interfaces, but the different interfaces are all interfaces of the second application, so the interface displayed by the electronic device in 5F is the same as the interface displayed by the electronic device in FIG. 5G.
  • the interface displayed by the device can be regarded as the second interface of the second application. It can be understood that all the interfaces of the second application in the embodiments of the present application may be referred to as the second interface of the second application.
  • the SDK of the first application transmits the first instruction
  • the electronic device can display the second interface or the first interface of the second application in response to the first instruction of the SDK.
  • the icon of the second application, and the first application continues to run in the background. That is, the embodiment of this application can directly switch the first application to the second application, or display the first prompt information through a pop-up box, and switch the first interface of the first application to the second interface of the second application after receiving the user's operation , Instead of switching from the first interface of the first application to the main interface first, and then switch from the main interface to the second interface of the second application as in the prior art.
  • the switching method provided by the embodiment of the present application has fewer switching times and a better user experience. Moreover, obtaining the waiting scene through the first application has less system overhead than real-time monitoring of the first application.
  • the first application running in the background is consistent with its running status in the foreground, and the remaining waiting time of the first application will not be suspended. Therefore, while the second application can be running in the foreground, the first application can continue to run in the background. Application, make full use of the waiting time of the first application.
  • the electronic device when the first application continues to run in the background, the electronic device does not check and kill the process corresponding to the first application, that is, the process of the first application can be kept alive in the background without being killed by the system.
  • the system may not check and kill the process corresponding to the first application within a preset time. If the first application runs in the background for more than the preset time and the system memory is insufficient, the process of the first application may be checked. kill. For example, when the waiting time of the first application is 20 seconds, when the electronic device runs the second application in the foreground, and the first application runs in the background for less than 10 minutes, the system does not check and kill the process of the first application. If the first application runs in the background for more than 10 minutes and the system memory is insufficient, the process of the first application can be killed.
  • the electronic device runs the second application in the foreground, and when the first application is running in the background, the electronic device can play the audio of the first application.
  • the electronic device can turn off the audio of the first application and play the audio of the second application.
  • the electronic device runs "WeChat” in the foreground and "Glory of the King” in the background, if the user clicks on a voice message sent by a WeChat friend or plays a video or audio in the WeChat application, it can be considered “WeChat” and "Glory of the King”
  • the electronic device turns off the audio of "Honor of Kings” and plays the audio of "WeChat”. If the audio of "WeChat” and “Glory of the King" do not conflict when the user sends text in "WeChat", the electronic device can play the audio of "Glory of the King”.
  • the electronic device runs the second application in the foreground, and when the first application is running in the background, no matter whether the audio of the first application and the second application conflict, the electronic device can also shut down the audio of the first application until the electronic device is in When the first application is running in the foreground, the audio of the first application is played.
  • the audio of the first application is played.
  • an electronic device runs "WeChat” in the foreground and "Honor of Kings” in the background, if the user clicks on a voice message sent by a WeChat friend or plays a video or audio in the WeChat application, the electronic device will play the "WeChat” audio. If the user sends text in "WeChat", the electronic device does not play audio.
  • the electronic device runs "Glory of the King" again in the foreground, the electronic device plays the audio of "Glory of the King". That is, the electronic device only plays the audio of the application running in the foreground.
  • S405 may be included after the above steps S401-S404.
  • S405 The electronic device displays the information of the first application when the remaining waiting time ends.
  • the end of the remaining waiting time may mean that the remaining waiting time of the first application counts down from 20 seconds to 0 seconds, or it may mean that all players in the game battle scene join the battle.
  • the embodiment of the present application does not limit this.
  • the information of the first application is the display interface of the first application after the remaining waiting time of the first interface ends.
  • the electronic device displays the display interface of the first application after the remaining waiting time of the first application ends, and the second application is switched to run in the background.
  • the electronic device displays the interface of Figure 5B.
  • the interface of Figure 5B shows that after the remaining waiting time of Figure 5A ends, the first The display interface of the application.
  • the electronic device may directly switch the first application to run in the foreground when the remaining waiting time ends.
  • the above-mentioned information of the first application is an icon of the first application.
  • the electronic device displays the icon of the first application on the second interface of the second application.
  • the icon of the first application may be displayed in the form of prompt information.
  • the electronic device may display second prompt information, and the second prompt information includes an icon of the first application.
  • the second prompt message includes an icon of "Glory of the King".
  • the electronic device may display the second prompt information in a pop-up box on the second interface of the second application.
  • the second prompt information can be displayed in the form of a floating ball or floating window on the front desk of the electronic device.
  • the embodiment of the present application does not limit the specific display form and display content of the second prompt information, and is only an exemplary description here.
  • step S405 it may further include: the electronic device receives a user's click operation on the icon of the first application; in response to the user's click operation on the icon of the first application, the electronic device displays the third interface.
  • the electronic device displays the second prompt message, and the user knows that the countdown of the first application is over. If the user wants to return to the first application, the user can click on the first application in the second prompt message. Icon, the electronic device receives the user's click operation on the icon of the first application.
  • the electronic device may display a display interface of "Glory of the King” after the remaining countdown time of "Glory of the King” expires.
  • the interface shown in Figure 5B For example, the interface shown in Figure 5B.
  • the electronic device displays the second prompt message on the second interface of the second application
  • the electronic device can close the second prompt message.
  • Prompt information after the second preset time period, the second prompt information is prompted again by a pop-up box. If the user does not click the icon of the first application in the second prompt information within the third preset time period, the electronic device can close the first application.
  • the electronic device displays the information of the second application. Switch to background operation, and the status of the first application running in the background is consistent with the status of the first application running in the foreground. After the remaining waiting time ends, the electronic device displays the information of the first application. That is, while the electronic device is running the second application in the foreground, the state of the first application running in the background is consistent with the running state of the foreground. For example, the countdown of the first application can continue to run in the background. After the countdown of the first application ends, the electronic device switches the first application back to the foreground again. At this time, the electronic device displays that the remaining countdown of the first application ends. The display interface of the application. It is understandable that the method in the embodiment of the present application can make full use of the waiting time of the first application and improve the user time utilization.
  • step S405 when the remaining waiting time is over, it means that when the countdown of the first application counts down from the preset time to 0 seconds, the above step S405 further includes the electronic device determining the remaining waiting time.
  • the aforementioned first instruction may carry the countdown duration
  • the electronic device can determine the remaining waiting duration through the first instruction, and when the remaining waiting duration ends, the electronic device displays the information of the first application.
  • the electronic device may determine the remaining waiting time by identifying the waiting information of the first interface of the first application. For example, the electronic device may intercept the first interface of the first application, and use an image recognition algorithm to identify the remaining waiting time in the countdown icon in the first interface of the first application. For another example, the electronic device can determine the remaining waiting time through the control of the countdown icon.
  • the embodiment of the present application does not limit the specific manner in which the electronic device determines the remaining waiting time, and is only illustrative here.
  • the embodiment of the application provides a method for processing a waiting scene in an application.
  • the method runs a first application through an electronic device; the electronic device displays a first interface of the first application, and the first interface includes waiting information; the electronic device responds to the first application.
  • An application according to the first instruction of waiting for information, the electronic device displays the information of the second application; the electronic device continues to run the first application in the background, where the first application will not be suspended when running in the background and the status of the foreground running The status is consistent.
  • the waiting start time of the first application is learned through the first application. Compared with the real-time monitoring of the first application to obtain the waiting start time in the prior art, the system overhead is smaller and the performance of the system is improved.
  • the information of the second application can be displayed according to the first instruction of the waiting information, that is, the electronic device can directly switch from the interface of the first application to the interface of the second application, without the need to switch to the interface of the second application.
  • the interface of the first application is switched to the main interface, and then from the main interface to the interface of the second application. Therefore, the number of interface switching is less, the user operation is convenient, and the user experience is improved.
  • the electronic device runs the first application in the background, the running state of the first application is consistent with its running state in the foreground.
  • the first application runs in the background, its remaining waiting time will not be suspended, so While the second application is running in the foreground, the remaining waiting time of the first application can be continued in the background, so the waiting time of the first application can be effectively used and the user time utilization rate can be improved.
  • the embodiment of the present application also provides a method for processing a waiting scene in an application. As shown in FIG. 6, the method may include steps S601-S606:
  • the electronic device runs the first application.
  • the electronic device displays a first interface of the first application, where the first interface includes waiting information.
  • steps S601-S602 can refer to the related descriptions of steps S401-S402, which will not be repeated here.
  • the electronic device receives the user's first operation, and the first operation is used to enable the background continuous running function; the background continuous running function means that the state of the first application running in the background is consistent with the state of running in the foreground.
  • the above-mentioned first operation may be a gesture operation or a tap operation.
  • the gesture operation does not conflict with the existing gesture operation in the first application.
  • the specific form of operation is not limited.
  • the electronic device displays the interface of the first application, and there may be a float on the interface of the first application, and the float is used to enable the background continuous running function.
  • the electronic device can turn on the background continue function after receiving the user's click operation on the floating ball.
  • the gesture operation may be drawing a circle on the interface of the first application, or drawing an S, or drawing a “ ⁇ ” or other gesture.
  • the electronic device receives the user's touch operation on the first application.
  • the above-mentioned state of the first application running in the background is consistent with its state of running in the foreground, which means that when the first application is running in the background, the remaining waiting time of the first application will not be suspended, but can be like It runs in the foreground the same state, the remaining waiting time continues to count down in the background.
  • the first interface when the electronic device displays the first interface of the first application, the first interface includes a floating window, and the floating window is used to enable the background continuous running function. If the user wants to run other services in the foreground while the remaining countdown time of the first application is not suspended in the background, as shown in Figure 7B, the user can click on the floating window to open the background function of the first application, and the electronic device receives The user's click operation on the floating window.
  • the electronic device displays the information of the second application.
  • the terminal device displays the information of the second application.
  • the information of the second application is the second interface of the second application.
  • the electronic device in response to the first operation, directly switches the first application to the second application, and displays the second interface of the second application.
  • the information of the second application is an icon of the second application.
  • the electronic device displays the icon of the second application.
  • the icon of the second application may be displayed in the form of prompt information.
  • the electronic device may display third prompt information, and the third prompt information includes the icon of the second application.
  • the third prompt information is used to prompt the user to select applications.
  • the third prompt information may include an icon of at least one application, and the icon of the at least one application includes an icon of a second application.
  • the electronic device displays the icon of the second application on the first interface of the first application.
  • the icon of the second application may be displayed in the form of prompt information.
  • the electronic device may display third prompt information, and the third prompt information includes the icon of the second application.
  • the third prompt information is used to prompt the user to select applications.
  • the third prompt information may include an icon of at least one application, and the icon of the at least one application includes an icon of a second application.
  • the electronic device may display the third prompt information in a pop-up form.
  • the electronic device displays the third prompt information in a pop-up box on the first interface of the first application.
  • the prompt information includes the "WeChat” icon, the "Tik Tok” icon, the "Taobao” icon and the "Weibo” icon.
  • the user inputs the first operation to enable the background continuation function of the first application and displays the information of the second application, without real-time identification of whether the first interface of the first application is a waiting interface. Therefore, Compared with the real-time identification of whether the video content is an advertisement in the prior art, the implementation of the method of enabling the background continuous running function of the first application in this application has less overhead, which improves the operating efficiency and system performance.
  • the method may further include: the electronic device receives a user's selection operation of the icon of the second application; in response to the user's selection operation, the electronic device displays the first 2.
  • the second interface of the application For the electronic device receiving the user's selection operation on the icon of the second application; in response to the user's selection operation, the electronic device displays the second interface of the second application for a specific implementation manner, please refer to the relevant description in step S403, which will not be repeated here Repeat.
  • the electronic device continues to run the first application in the background. Among them, the state of the first application running in the background is consistent with the state of running in the foreground.
  • step S605 can refer to the related description of step S404, which will not be repeated here.
  • S606 may be further included after the above steps S601-S605.
  • the electronic device displays the information of the first application when the remaining waiting time ends.
  • step S606 can refer to the related description of step S405, which will not be repeated here.
  • the method in the embodiment of the present application can make full use of the waiting time of the first application and improve the user time utilization.
  • the electronic device displays the information of the second application, and can directly switch from the interface of the first application to the interface of the second application without first switching the interface of the first application as in the prior art To the main interface, and then switch from the main interface to the interface of the second application, therefore, the number of interface switching is less, the user operation is convenient, and the user experience is improved.
  • the previous embodiment obtains the start time of the waiting scene in the first application through the first application, and the electronic device displays the information of the second application and continues to run the first application in the background. application.
  • the embodiment of the present application requires the user to actively trigger the background to continue running the process. After the user triggers the first operation, the electronic device displays the information of the second application and continues to run the first application in the background.
  • this embodiment has an additional step of receiving the user's first operation.
  • the embodiment of the application provides a method for processing a waiting scene in an application.
  • the method runs a first application through an electronic device; displays a first interface of the first application, and the first interface includes a countdown icon waiting information; the electronic device receives a user's The first operation, the first operation is used to enable the background continue running function; the background continue running function means that the status of the first application running in the background is consistent with the status of the first application running in the foreground; in response to the first operation, the electronic device displays the second application ⁇ ; The electronic device continues to run the first application in the background, and the state of the first application running in the background is consistent with its running state in the foreground.
  • the electronic device can directly switch from the interface of the first application to the interface of the second application without first changing the interface of the first application as in the prior art. Switch to the main interface, and then switch from the main interface to the interface of the second application. Therefore, the number of interface switching is less, the user operation is convenient, and the user experience is improved.
  • the running state of the first application is consistent with its running state in the foreground, and the remaining waiting time of the first application will not be suspended, so the second application is running in the foreground
  • the remaining waiting time of the first application can be continued in the background, so the waiting time of the first application can be effectively used, and the user time utilization rate can be improved.
  • the above-mentioned electronic device includes hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the embodiments of the present application.
  • the embodiment of the present application may divide the above-mentioned electronic device into functional modules according to the above-mentioned method examples.
  • each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 8 shows a schematic diagram of a possible structure of the electronic device involved in the foregoing embodiment.
  • the electronic device 800 includes a processing unit 801, a display unit 802, and a storage unit 803.
  • the processing unit 801 is used to control and manage the actions of the electronic device 800. For example, it can be used to execute the processing steps of S401 and S404 in FIG. 4; or it can be used to execute the processing steps of S601, S603, and S605 in FIG. 6; and/or other processes used in the technology described herein.
  • the display unit 802 is used to display the interface of the electronic device. For example, it can be used to display the first interface of the first application. For example, it can be used to execute the processing steps of S402, S403, and S405 in FIG. 4; or it can be used to execute the processing steps of S602, S604, and S606 in FIG. 6; and/or other techniques used in the techniques described herein. process.
  • the storage unit 803 is used to store the program code and data of the electronic device 800. For example, it can be used to store desktop layout files.
  • the unit modules in the aforementioned electronic device 800 include but are not limited to the aforementioned processing unit 801, display unit 802, and storage unit 803.
  • the electronic device 800 may also include an audio unit, a communication unit, and the like.
  • the audio unit is used to collect the voice uttered by the user and play the voice.
  • the communication unit is used to support communication between the electronic device 800 and other devices.
  • the processing unit 801 may be a processor or a controller, for example, a central processing unit (CPU), a digital signal processor (digital signal processor, DSP), or an application-specific integrated circuit (ASIC). ), field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • the processor may include an application processor and a baseband processor. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination for realizing computing functions, for example, including a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the storage unit 303 may be a memory.
  • the audio unit may include a microphone, speaker, receiver, etc.
  • the communication unit may be a transceiver, a transceiver circuit, or a communication interface.
  • the processing unit 801 is a processor (the processor 110 shown in FIG. 2)
  • the display unit 802 is a display screen (the display screen 194 shown in FIG. 2).
  • the display screen 194 may be a touch screen, and the touch screen may be integrated Display panel and touch panel
  • the storage unit 803 may be a memory (internal memory 121 shown in FIG. 2).
  • the audio unit may include a microphone (the microphone 170C shown in FIG. 2), a speaker (the speaker 170A shown in FIG. 2), and a receiver (the receiver 170B shown in FIG. 2).
  • the communication unit includes a mobile communication module (the mobile communication module 150 shown in FIG. 2) and a wireless communication module (the wireless communication module 160 shown in FIG. 2).
  • the mobile communication module and the wireless communication module can be collectively referred to as a communication interface.
  • the electronic device 800 provided in the embodiment of the present application may be the electronic device 100 shown in FIG. 2.
  • the foregoing processor, memory, and communication interface may be coupled together, for example, connected by a bus.
  • the embodiment of the present application also provides a computer storage medium in which computer program code is stored.
  • the electronic device executes the relevant method steps in FIG. 4 or FIG. 6 to implement the above-mentioned implementation.
  • the method in the example is a computer storage medium in which computer program code is stored.
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the relevant method steps in FIG. 4 or FIG. 6 to implement the method in the foregoing embodiment.
  • the electronic device 800, computer storage medium, or computer program product provided in the embodiments of the present application are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding method provided above. The beneficial effects of the method will not be repeated here.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of software products, which are stored in a storage medium.
  • a device which may be a single-chip microcomputer, a chip, etc.
  • a processor processor
  • the aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种应用程序中等待场景的处理方法和装置,涉及通信技术领域,解决了现有技术在等待场景下的时间利用率较低,用户体验不佳的问题。具体方案为:电子设备运行第一应用;电子设备显示第一应用的第一界面,第一界面包括等待信息;电子设备响应于第一应用,根据等待信息的第一指令,电子设备显示第二应用的信息;电子设备在后台继续运行第一应用;其中,第一应用在后台运行的状态与前台运行的状态一致。

Description

一种应用程序中等待场景的处理方法和装置
本申请要求在2019年6月29日提交中国国家知识产权局、申请号为201910581269.6、发明名称为“一种应用程序中等待场景的处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种应用程序中等待场景的处理方法和装置。
背景技术
目前,用户在终端设备操作应用程序时,经常会遇到一些需要等待的场景(例如,游戏对战匹配、跟随后跳伞、主角死亡等)。为了将时间充分利用,用户想在等待场景下,同时处理其他感兴趣的操作(例如,浏览网页)。但是,在游戏应用为等待场景时,当用户从游戏应用切换至浏览网页时,该游戏应用将被直接暂停,当该游戏应用被切换到前台时,需要从之前切出的时间点继续等待或者需要与服务器重新连接,导致用户在等待场景下的时间利用率较低,用户体验不佳。
发明内容
本申请实施例提供一种应用程序中等待场景的处理方法和装置,能够提高等待场景下的时间的利用率,提升用户体验。
本申请实施例的第一方面,提供一种应用程序中等待场景的处理方法,该方法包括:电子设备运行第一应用;该电子设备显示第一应用的第一界面,该第一界面包括等待信息;上述电子设备响应于上述第一应用,根据上述等待信息的第一指令,电子设备显示第二应用的信息;上述电子设备在后台继续运行上述第一应用;其中,该第一应用在后台运行的状态与前台运行的状态一致。基于本方案,通过第一应用获知第一应用的等待开始时间,与现有技术中实时监控第一应用获知等待开始时间相比,系统开销较小,提升了系统的性能。而且在等待开始时,可以根据等待信息的第一指令,显示第二应用的信息,即电子设备可以从第一应用的界面直接切换为第二应用的界面,而无需像现有技术一样先将第一应用的界面切换至主界面,再从主界面切换至第二应用的界面,因此,界面切换次数较少,用户操作方便,提升了用户体验。再者,本实施例中电子设备在后台运行第一应用时,该第一应用的运行状态与其在前台运行的状态一致,第一应用在后台运行时,其剩余等待时长不会被暂停,因此在前台运行第二应用的同时,第一应用的剩余等待时长在后台可以继续进行,因此能够有效的利用第一应用的等待时间,提高用户时间利用率。
可以理解的,上述第一应用在后台运行的状态与前台运行的状态一致是指,该第一应用在后台运行时,第一应用的剩余等待时长不会被暂停,而是可以像其在前台运行的状态一样,剩余等待时长在后台继续倒计时。例如,第一应用的倒计时图标中的剩余等待时长为20秒时,电子设备在前台运行第二应用,第一应用被切换至后台运行。电子设备在前台运行第二应用10秒后,再次将第一应用切换至前台运行时,该第一应用的倒计时图标中的剩余等待时长为10秒。即第一应用在后台运行时,第一应用的倒计时图标中的剩余等待时长不会停止,而是可以继续在后台倒计时。
结合第一方面,在一种可能的实现方式中,上述电子设备在后台继续运行上述第一应用, 包括:上述电子设备拦截向上述第一应用传输的暂停PAUSE命令;或者,上述电子设备向上述第一应用传输第二指令,该第二指令用于指示上述第一应用继续按照上述前台运行的状态运行。基于本方案,可以通过拦截PAUSE命令或者向第一应用传输第二指令的方式,使得第一应用在后台运行的状态与其在前台运行的状态一致。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二应用的信息为上述第二应用的第二界面。基于本方案,电子设备可以直接将第一应用切换为第二应用,显示第二应用的第二界面。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二应用的信息为上述第二应用的图标,上述方法还包括:上述电子设备接收用户对上述第二应用的图标的选择操作;响应于用户的选择操作,上述电子设备显示上述第二应用的第二界面。基于本方案,电子设备可以在第一应用显示第二应用的图标,接收用户对第二应用的点击操作后,再显示第二应用的第二界面。可以理解的,本方案从第一应用的界面切换为第二应用的界面时,无需先从第一应用的第一界面切换至主界面,再从主界面切换至第二应用的界面,因此界面切换次数较少,用户体验较好。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二界面还包括上述等待信息。基于本方案,电子设备在前台运行第二应用时,第二应用的界面可以显示等待信息,以使得用户获知当前第一应用的剩余等待时长。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述方法还包括:上述电子设备在剩余等待时长结束时,上述电子设备显示上述第一应用的信息。基于本方案,在第一应用的等待时长结束后,电子设备可以将第二应用切换为第一应用。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用的信息为上述第一界面的上述剩余等待时长结束后,上述第一应用的显示界面。基于本方案,在第一应用的剩余等待时长结束后,电子设备显示第一应用剩余等待时长结束后第一应用的显示界面,第二应用被切换至后台运行。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用的信息为上述第一应用的图标,上述方法还包括:上述电子设备接收用户对该第一应用的图标的点击操作;响应于用户对该第一应用的图标的点击操作,电子设备显示该第一界面的剩余等待时长结束后,该第一应用的显示界面。基于本方案,在第一应用的剩余等待时长结束后,电子设备显示第一应用的图标,接收用户对第一应用的图标的点击操作后,电子设备显示第一应用剩余等待时长结束后第一应用的显示界面。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一指令中包括剩余等待时长;或者,上述方法还包括:上述电子设备识别上述第一界面的上述等待信息,确定剩余等待时长。基于本方案,可以通过识别第一界面的等待信息获取剩余等待时长。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二应用是上述电子设备在后台运行的应用;或者,上述第二应用是上述电子设备在预设时间内运行次数或者运行时长大于预设阈值的应用;或者,上述第二应用是上述电子设备中预先配置的应用。基于本方案,第二应用可以是后台运行的应用,也可以是运行次数或运行时长较长的应用,还可以是用户预先设置的应用,本申请对此并不进行限定。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用在后台运行时,上述电子设备不查杀上述第一应用对应的进程。基于本方案,第一应 用在后台运行时,该第一应用不会被系统查杀,可以在后台保活。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用在后台运行时,上述方法还包括:上述电子设备播放上述第一应用的音频信息。基于本方案,第一应用在后台运行,电子设备可以播放第一应用的音频信息。可选的,电子设备也可以播放第二应用的音频信息。
结合第一方面或第一方面的任一可能的实现方式,在另一种可能的实现方式中,上述等待信息包括:倒计时图标、等待时长文字信息、或暂停信息。基于本方案,等待信息的形式可以包含多种,本申请对此并不进行限定。
本申请实施例的第二方面,提供一种应用程序中等待场景的处理方法,上述方法包括:电子设备运行第一应用;该电子设备显示第一应用的第一界面,该第一界面包括等待信息;该电子设备接收用户的第一操作,该第一操作用于开启后台继续运行功能;该后台继续运行功能是指上述第一应用在后台运行的状态与其在前台运行的状态一致;响应于该第一操作,电子设备显示第二应用的信息;该电子设备在后台继续运行上述第一应用;其中,该第一应用在后台运行的状态与前台运行的状态一致。基于本方案,通过接收用户的第一操作,显示第二应用的信息,电子设备可以从第一应用的界面直接切换为第二应用的界面,而无需像现有技术一样先将第一应用的界面切换至主界面,再从主界面切换至第二应用的界面,因此,界面切换次数较少,用户操作方便,提升了用户体验。而且,本实施例中电子设备在后台运行第一应用时,该第一应用的运行状态与其在前台运行的状态一致,第一应用的剩余等待时长不会被暂停,因此在前台运行第二应用的同时,第一应用的剩余等待时长在后台可以继续进行,因此能够有效的利用第一应用的等待时间,提高用户时间利用率。
结合第二方面,在一种可能的实现方式中,上述电子设备在后台继续运行上述第一应用,包括:上述电子设备拦截向上述第一应用传输的暂停PAUSE命令;或者,上述电子设备向上述第一应用传输第一指令,该第一指令用于指示上述第一应用继续按照上述前台运行的状态运行。基于本方案,可以通过拦截PAUSE命令或者向第一应用传输第一指令的方式,使得第一应用在后台运行的状态与其在前台运行的状态一致。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二应用的信息为上述第二应用的第二界面。基于本方案,电子设备可以直接将第一应用切换为第二应用,显示第二应用的第二界面。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二应用的信息为上述第二应用的图标,上述方法还包括:上述电子设备接收用户对上述第二应用的图标的选择操作;响应于用户的选择操作,该电子设备显示上述第二应用的第二界面。基于本方案,电子设备可以在第一应用显示第二应用的图标,接收用户对第二应用的点击操作后,再显示第二应用的第二界面。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二界面还包括上述等待信息。基于本方案,电子设备在前台运行第二应用时,第二应用的界面可以显示等待信息,以使得用户获知当前第一应用的剩余等待时长。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述方法还包括:电子设备在剩余等待时长结束时,该电子设备显示上述第一应用的信息。基于本方案,在第一应用的等待时长结束后,电子设备可以将第二应用切换为第一应用。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用的信息为上述第一界面的上述剩余等待时长结束后,上述第一应用的显示界面。基于 本方案,在第一应用的剩余等待时长结束后,电子设备显示第一应用剩余等待时长结束后第一应用的显示界面,第二应用被切换至后台运行。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用的信息为上述第一应用的图标,上述方法还包括:上述电子设备接收用户对该第一应用的图标的点击操作;响应于用户对所述第一应用的图标的点击操作,电子设备显示该第一界面的剩余等待时长结束后,该第一应用的显示界面。基于本方案,在第一应用的剩余等待时长结束后,电子设备显示第一应用的图标,接收用户对第一应用的图标的点击操作后,电子设备显示第一应用剩余等待时长结束后第一应用的显示界面。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述方法还包括:所述电子设备识别上述第一界面的上述等待信息,确定剩余等待时长。基于本方案,可以通过识别第一界面的等待信息获取剩余等待时长。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第二应用是上述电子设备在后台运行的应用;或者,上述第二应用是上述电子设备在预设时间内运行次数或者运行时长大于预设阈值的应用;或者,上述第二应用是上述电子设备中预先配置的应用。基于本方案,第二应用可以是后台运行的应用,也可以是运行次数或运行时长较长的应用,还可以是用户预先设置的应用,本申请对此并不进行限定。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用在后台运行时,上述电子设备不查杀上述第一应用对应的进程。基于本方案,第一应用在后台运行时,该第一应用不会被系统查杀,可以在后台保活。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述第一应用在后台运行时,上述方法还包括:上述电子设备播放上述第一应用的音频信息。基于本方案,第一应用在后台运行,电子设备可以播放第一应用的音频信息。可选的,电子设备也可以播放第二应用的音频信息。
结合第二方面或第二方面的任一可能的实现方式,在另一种可能的实现方式中,上述等待信息包括:倒计时图标、等待时长文字信息、或暂停信息。基于本方案,等待信息的形式可以包含多种,本申请对此并不进行限定。
本申请实施例的第三方面,本申请实施例提供一种电子设备,该电子设备可以实现第一方面所述的应用程序中等待场景的处理方法,其可以通过软件、硬件、或者通过硬件执行相应的软件实现上述方法。在一种可能的设计中,该电子设备可以包括处理器和存储器。该处理器被配置为支持该电子设备执行上述第一方面或第二方面方法中相应的功能。存储器用于与处理器耦合,其保存该电子设备必要的程序指令和数据。
本申请实施例的第四方面,本申请实施例提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如上述任一方面及其可能的设计方式所述的应用程序中等待场景的处理方法。
本申请实施例的第五方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如上述任一方面及其可能的设计方式所述的应用程序中等待场景的处理方法。
上述第三方面,第四方面以及第五方面的效果描述可以参考第一方面和第二方面的相应效果的描述,在此不再赘述。
附图说明
图1A为本申请实施例提供的应用程序中等待场景的处理方法的一种场景实例示意图一;
图1B为本申请实施例提供的应用程序中等待场景的处理方法的一种场景实例示意图二;
图1C为本申请实施例提供的应用程序中等待场景的处理方法的一种场景实例示意图三;
图1D为本申请实施例提供的应用程序中等待场景的处理方法的一种场景实例示意图四;
图1E为本申请实施例提供的应用程序中等待场景的处理方法的一种场景实例示意图五;
图2为本申请实施例提供的一种电子设备的硬件结构的组成示意图;
图3为本申请实施例提供的一种电子设备的软件架构示意图;
图4为本申请实施例提供的一种应用程序中等待场景的处理方法流程图一;
图5A为本申请实施例提供的一种电子设备的显示界面实例示意图一;
图5B为本申请实施例提供的一种电子设备的显示界面实例示意图二;
图5C为本申请实施例提供的一种电子设备的显示界面实例示意图三;
图5D为本申请实施例提供的一种电子设备的显示界面实例示意图四;
图5E为本申请实施例提供的一种电子设备的显示界面实例示意图五;
图5F为本申请实施例提供的一种电子设备的显示界面实例示意图六;
图5G为本申请实施例提供的一种电子设备的显示界面实例示意图七;
图5H为本申请实施例提供的一种电子设备的显示界面实例示意图八;
图5I为本申请实施例提供的一种电子设备的显示界面实例示意图九;
图6为本申请实施例提供的一种应用程序中等待场景的处理方法流程图二;
图7A为本申请实施例提供的一种电子设备的显示界面实例示意图十;
图7B为本申请实施例提供的一种电子设备的显示界面实例示意图十一;
图7C为本申请实施例提供的一种电子设备的显示界面实例示意图十二;
图8为本申请实施例提供的一种电子设备的结构组成示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。在本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或,a和b和c,其中a、b和c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。比如,本申请实施例中的第一应用中的“第一”和第二应用中的“第二”仅用于区分不同的应用程序。本申请实施例中出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本申请实施例中对设备个数的特别限定,不能构成对本申请实施例的任何限制。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例提供一种应用程序中等待场景的处理方法,该等待场景是指运行在电子 设备上的应用程序的界面中包括等待信息,该等待信息可以为倒计时图标。例如,游戏应用中的游戏对战匹配、跟随后跳伞、主角死亡等场景。如图1A所示,在游戏对战匹配时,需要等待对战选手加入对战,此时电子设备显示游戏应用的界面包括倒计时图标,倒计时图标包括等待时长,待所有选手加入对战后匹配成功后,可以进入图1B所示的游戏开始界面。
如果用户想在等待场景下,同时处理其他感兴趣的操作(例如,聊微信)。用户可以在图1A的界面中输入触摸指示,该触摸指示用于将电子设备的显示界面切换为主界面(home界面)。电子设备接收用户的触摸操作后,响应于该触摸操作,电子设备显示图1C的主界面,并将图1A的应用切换至后台运行。用户点击微信图标,电子设备接收用户对微信图标的点击操作,响应于该点击操作,电子设备显示图1D的界面。当用户想再次返回游戏应用的界面时,响应于用户的触摸操作,电子设备可以显示图1E的游戏应用的界面。
结合图1A和图1E所示,电子设备在游戏应用的界面为等待界面(等待20秒)时,返回主界面,在主界面选择点击“微信”图标时,电子设备响应于用户对“微信”的点击操作,在前台运行“微信”,此时游戏应用被切换至后台运行,当用户再次将游戏应用切换至前台运行时,仍需要从切出的时间点(等待20秒),继续等待。即电子设备在后台运行该游戏应用时,该游戏应用的等待时间被暂停,等待时长暂停在20秒,电子设备在前台运行微信1分钟后,再次将游戏应用切换至前台运行时,该游戏应用的等待时长从20秒开始继续倒计时。
可以理解的,上述方案不能在游戏应用的倒计时不停止的同时,电子设备在前台运行其他用户感兴趣的业务,导致游戏应用中的等待时间的利用率较低,用户体验不佳。而且上述方案在从一个应用切换为另一个应用时,需要先从一个应用的界面切回至主界面,再从主界面切换为另一个应用的界面,界面切换次数较多,导致用户体验不佳。尤其是在游戏应用全屏时,如果有防误触算法,将造成从全屏的游戏应用界面切换至主界面会比较麻烦,可能会导致从全屏界面切换至主界面时需要用户多次操作,导致用户体验感较差的问题。
为了避免用户单纯的等待视频中的广告播放导致的时间浪费,现有的一种方案是通过在视频应用运行时,监控视频应用播放的视频内容,并在视频内容是广告时,检测用户输入的将视频应用切换至后台运行的切换指示。若检测到切换指示,则控制视频应用切换至后台运行,并通知执行查杀操作的服务程序跳过视频应用对应的目标进程。例如,在检测到视频内容为广告时,用户可以输入切换指示(例如,home键),电子设备接收用户的切换指示,响应于用户的切换指示,电子设备在后台运行上述视频应用,并不对视频应用对应的目标进程进行查杀。该方案需要实时检测视频内容是否为广告,系统的开销较大。而且该方案在视频应用播放广告时,如果在前台运行其他用户感兴趣的业务(例如,微信)时,用户首先需要按下home键,电子设备响应于用户按下的home键,电子设备显示主界面(home界面)。用户再点击微信图标,响应于用户对微信图标的点击操作,电子设备显示微信的界面。即该方案从视频应用切换至微信应用的界面时,需要先从视频应用切换到主界面,再从主界面切换到微信界面,切换较为复杂,用户需要多步操作才能完成,较为麻烦。
电子设备在运行应用程序时,安卓(Android)系统将尽可能的长时间的保持应用进程,当进程退出时并不会立刻被系统查杀kill,而是在Android系统内存不足时,为了新建进程或系统运行更重要的进程,确保系统的流畅度,系统才会按照优先级杀掉一些进程来回收内存。Android系统可能会根据不同应用程序的进程对用户的相对重要程度,决定杀掉哪一个进程。后台保活是指进程可以在后台一直活下去保持不被杀死的状态。例如:微信应用在后台运行时,仍然可以接收其他电子设备发送的消息,就是在后台运行时,如果系统内存不足,可以 将微信应用中的其他进程kill,仅保活接收消息的进程。可以理解的,保持进程保活的方法是系统不查杀该进程,即系统通知执行查杀操作的服务程序跳过目标进程。
需要说明的是,应用程序在后台运行时,系统保活该应用程序的进程,并不等于该应用程序在后台可以继续运行。例如,以视频应用为例,该视频应用播放30分钟时,电子设备在前台运行其他应用,该视频应用被切换至后台运行。如果系统内存不足,系统可能会将该视频应用查杀,查杀以后的视频应用再次在前台运行时,电子设备显示该视频应用的主界面,如果用户需要继续观看前述视频时,需要再次查找该视频点击播放。当系统在后台保活视频应用时,电子设备在前台运行其他应用一段时间后,再次将该视频应用切换至前台运行时,该视频应用将从30分钟开始继续播放。因此,应用程序在后台运行时,系统保活该应用程序的进程,仅能保证该应用程序的进程不会被杀掉,并不能保证该应用程序在后台继续运行。
因此,上述现有技术的方案中电子设备在将视频应用切换至后台运行时,不对视频应用对应的目标进程进行查杀,仅能保证视频应用在后台保活,并不能保证电子设备在后台运行视频应用时,该视频应用的广告继续播放,因此上述方案并不能提高视频中广告的时间利用率。
为了提高应用程序中等待场景的时间利用率,减少界面切换次数,提升用户体验。本申请实施例提供了一种应用程序中等待场景的处理方法,该方法能够在第一应用的需要等待倒计时的场景下,在前台运行第二应用,在后台运行第一应用,而且第一应用在后台运行时第一应用的倒计时不会停止,因此可以充分利用第一应用的等待时间,提高用户时间利用率。而且从第一应用的界面可以快速切换到第二应用的界面,减少了界面的切换次数,提升了用户体验。
示例性的,本申请实施例提供的方法可以应用于游戏应用的等待界面,例如,游戏对战匹配、跟随后跳伞、主角死亡等包括倒计时图标的界面。也可以应用于视频应用播放过程中的等待界面,例如,广告播放等包括倒计时图标的界面。还可以应用于其他包括等待界面的应用程序中,本申请实施例对于等待界面的具体场景并不进行限定。下述实施例中仅以游戏应用中的对战匹配时的等待界面为例,对本申请提供的方案进行说明。
本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等包括上述折叠屏的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
请参考图2,为本申请实施例提供的一种电子设备100的结构示意图。如图2所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申 请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口 包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信 号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
本申请实施例中,显示屏194可用于显示电子设备的界面。如图1A-图1E,显示屏194可以用于显示电子设备的桌面,以及应用程序的界面,电子设备的桌面包括多个应用程序的图标。应用程序的图标以及应用程序的界面均可以在显示屏194中显示。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感 光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
本申请实施例中,NPU可以通过图片识别算法识别第一应用的第一界面,确定第一应用的第一界面中的倒计时图标的倒计时时长。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,响应于用户在显示屏194的点击操作或选择操作,在显示屏184显示对应的显示内容。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中, 电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
以下实施例中的方法均可以在具有上述硬件结构的电子设备100中实现。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图3是本发明实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括相机,图库,日历,电话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
示例性的,应用程序包可以包括图1A中的应用图标对应的应用程序。比如,邮件,设置,应用市场,照片,微信,相机,阅读,运动健康,华为商城,视频,音箱,音乐,抖音等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
本申请实施例中,描述界面布局的数据文件可以存储在数据库中。视图系统在构建界面(比如,包括应用图标的桌面)时,可以通过内容提供器来获取存储的数据文件,并根据获取的数据文件显示界面。在一些实施例中,在构建界面时,还可以对内容提供器中存放的数据文件进行修改。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android Runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
以下将以上述电子设备为手机,等待场景为游戏应用中对战匹配的场景为例,对本申请实施例提供的技术方案进行具体阐述。如图4所示,该应用程序中等待场景的处理方法可以包括步骤S401-S405:
S401、电子设备运行第一应用。
示例性的,该第一应用为电子设备中的一个应用程序。例如,该第一应用可以为白名单中的应用,白名单中可以包括一个或多个应用,白名单中的一个或多个应用可以是用户设置的,也可以为出厂配置的,本申请实施例对此并不进行限定。
示例性的,步骤S401中电子设备运行第一应用是指电子设备在前台运行第一应用。该第一应用在前台运行时,电子设备显示第一应用的界面。
S402、电子设备显示第一应用的第一界面,该第一界面包括等待信息。
示例性的,该包括等待信息的第一界面在等待时长结束后,电子设备才能继续运行。可以理解的,该包含等待信息的第一界面可以认为当前第一应用的场景为等待场景,需要用户等待预设时长后,才能继续运行。
示例性的,该等待信息可以包括:倒计时图标、等待时长文字信息、或暂停信息等。本申请实施例对于等待信息的具体形式并不进行限定,在此仅是示例性说明。下述实施例仅以等待信息为倒计时图标进行说明。可选的,该倒计时图标中可以包括剩余等待时长。示例性的,包括等待信息的第一界面可以称为等待界面。
例如,如图5A所示,以该第一应用的第一界面为游戏应用中的对战匹配界面为例,该第一应用的第一界面包括倒计时图标,该倒计时图标中包括剩余等待时长20秒,剩余等待时长结束后,电子设备显示如图5B所示的游戏开始界面。
S403、电子设备响应于第一应用,根据等待信息的第一指令,电子设备显示第二应用的信息。
示例性的,在第一应用的第一界面包括倒计时图标时,即第一应用的第一界面为等待界面时,该第一应用的软件开发工具包(Software Development Kit,SDK)可以通过应用程序接口(Application Program Interface,API)向电子设备传输第一指令,该第一指令用于指示该第一应用的第一界面为等待界面。即本申请实施例可以通过给第一应用提供API接口,第一应用在等待场景的等待时间开始时调用该API接口,主动通过第一指令通知电子设备第一应用的等待开始,电子设备响应于该第一指令,显示第二应用的信息。
可选的,上述等待信息的第一指令中可以包括剩余等待时长。
一种实现方式中,该第二应用的信息为第二应用的第二界面。在该实现方式中,电 子设备响应于第一应用的SDK,根据等待信息的第一指令,电子设备显示第二应用的第二界面。即电子设备在第一应用的第一界面为等待界面时,电子设备直接将第一应用切换为第二应用,显示第二应用的第二界面。
例如,如图5A所示,电子设备显示的第一界面为游戏应用中的对战匹配界面,该第一界面中包括倒计时图标,电子设备响应于该第一应用的SDK,可以根据等待信息的第一指令,将图5A的第一界面切换为图5E中第二应用的界面。即电子设备在第一应用为等待场景时,可以直接将第一应用切换至后台运行,在前台运行第二应用。
另一种实现方式中,第二应用的信息为第二应用的图标。例如,响应于第一指令,电子设备显示第二应用的图标。该第二应用的图标可以是以提示信息的形式显示。示例性的,电子设备可以显示第一提示信息,该第一提示信息中包括第二应用的图标。该第一提示信息用于提示用户可以选择的应用。可选的,该第一提示信息中可以包括至少一个应用的图标,该至少一个应用的图标中包括第二应用的图标。
示例性的,如图5A所示,第一应用的第一界面的等待时间开始时,第一应用的SDK通过API接口向电子设备传输第一指令。如图5C所示,响应于该第一指令,电子设备显示第一提示信息,该第一提示信息包括至少一个应用的图标。即本申请实施例在第一应用开始倒计时时,电子设备可以显示第一提示信息,以提示用户选择可切换至前台运行的应用程序。
示例性的,上述至少一个应用可以包括电子设备在后台运行的一个或多个应用;或者,该至少一个应用是电子设备在预设时间内运行次数或者运行时长大于预设阈值的一个或多个应用;或者,该至少一个应用是电子设备中预先配置的一个或多个应用。本申请实施例对于该至少一个应用的具体形式并不进行限定。
示例性的,电子设备可以以弹框的方式在第一应用的第一界面显示第一提示信息。例如,电子设备在后台运行的应用程序包括“微信”,“抖音”,“淘宝”,“微博”。如图5C所示,在第一应用的第一界面为等待界面时,响应于SDK,根据等待信息的第一指令,电子设备在第一应用的第一界面上弹框显示第一提示信息,该第一提示信息中包括“微信”图标,“抖音”图标,“淘宝”图标和“微博”图标。其中,“微信”图标为第二应用的图标。
可以理解的,本实施例通过第一应用可以获知第一应用的当前界面为等待界面,而不需要实时识别第一应用的第一界面是否为等待界面,因此,相较于现有技术中实时识别视频内容是否为广告,本申请实施通过SDK获知第一应用的当前界面为等待界面,系统开销较小,提高了运行效率和系统性能。
可选的,上述第二应用的信息为第二应用的图标时,步骤S403之后还可以包括:电子设备接收用户对第二应用的图标的选择操作;响应于用户的选择操作,电子设备显示第二应用的第二界面。
示例性的,用户可以在第一提示信息包括的至少一个应用中,选择任意一个应用,该用户选择的应用为第二应用,电子设备接收用户对第二应用的点击操作。
例如,用户可以根据其感兴趣的业务或者需要及时处理的业务,在第一提示信息包括的至少一个应用中进行选择。再例如,用户可以选择“微信”应用,如图5D所示,用户点击“微信”图标,电子设备接收用户对“微信”图标的点击操作。如图5E所示,响应于用户的选择操作,电子设备显示“微信”界面。
S404、电子设备在后台继续运行第一应用。其中,第一应用在后台运行的状态与前台运行的状态一致。
示例性的,电子设备在后台运行第一应用时,第一应用在后台运行的状态与前台运行一致。该第一应用在后台运行的状态与前台运行的状态一致是指,该第一应用在后台运行时,第一应用的剩余等待时长不会被暂停,而是可以像其在前台运行的状态一样,剩余等待时长在后台继续倒计时。例如,第一应用的倒计时图标中的剩余等待时长为20秒时,电子设备在前台运行第二应用,第一应用被切换至后台运行。电子设备在前台运行第二应用10秒后,再次将第一应用切换至前台运行时,该第一应用的倒计时图标中的剩余等待时长为10秒。即第一应用在后台运行时,第一应用的倒计时图标中的剩余等待时长不会停止,而是可以继续在后台倒计时。
需要说明的是,Android系统中Activity的生命周期可以包括:1)启动Activity时,系统会先调用onCreate方法,然后调用onStart方法,最后调用onResume,Activity进入运行状态。2)当前Activity被其他Activity覆盖其上或被锁屏时,系统会调用onPause方法,暂停当前Activity的执行。3)当前Activity由被覆盖状态回到前台或解锁屏时,系统会调用onResume方法,再次进入运行状态。4)当前Activity转到新的Activity界面或按Home键回到主屏,自身退居后台时,系统会先调用onPause方法,然后调用onStop方法,进入停滞状态。5)用户后退回到此Activity时,系统会先调用onRestart方法,然后调用onStart方法,最后调用onResume方法,再次进入运行状态。6)当前Activity处于被覆盖状态或者后台不可见状态,即2)和4),系统内存不足,杀死当前Activity,而后用户退回当前Activity时,再次调用onCreate方法、onStart方法、onResume方法,进入运行状态。7)用户退出当前Activity时,系统先调用onPause方法,然后调用onStop方法,最后调用onDestory方法,结束当前Activity。
结合Android系统中Activity的生命周期可知,电子设备在前台运行第一应用时,如果用户选择的第二应用,电子设备接收用户的选择操作后时,将第二应用切换至前台运行,第一应用被切换至在后台运行第一应用,此时属于上述生命周期中的4),系统会调用onPause()接口,系统调用onPause()接口后,第一应用将被暂停。即电子设备在前台运行第二应用时,第一应用在后台暂停运行。可以理解的,第一应用在后台暂停运行时,第一应用的倒计时图标中的剩余等待时长也将暂停,而不会在后台继续倒计时。
为了提高第一应用的等待时间的利用率,本申请实施例可以通过以下两种方式实现第一应用在后台运行的状态与前台运行的状态一致。即,第一应用在后台运行时,第一应用的剩余等待时长可以像其在前台运行一样,继续倒计时。
一种实现方式中,第一应用在后台运行时,电子设备拦截向第一应用传输的暂停PAUSE命令,以使得第一应用在后台运行的状态与前台运行的状态一致。
现有技术中,第一应用在后台运行时,系统通过onPause()接口向第一应用传输PAUSE命令,第一应用在后台暂停运行,第一应用的剩余等待时长也暂停倒计时。即现有技术中第一应用在后台运行的状态与前台运行的状态不一致。而本申请实施例中,第一应用在后台运行时,电子设备拦截向第一应用传输的PAUSE命令。例如,电子设备不调用onPause()接口。即第一应用在后台运行时,系统不调用onPause()接口,第一应用将不会收到系统发送的PAUSE命令,因此第一应用可以在后台继续运行,第一应用的剩余等待时长不会被暂停,可以在后台继续倒计时。即,本申请实施例中,第一应用在后台运行的状态与前台运行的状态一致。
例如,结合图5D和图5E所示,用户选择“微信”图标并点击后,响应于用户的选择操作,电子设备显示用户选择的第二应用的第二界面,即图5E所示的“微信”的界面。 响应于用户对第二应用的选择操作,电子设备在前台运行第二应用,在后台运行第一应用,电子设备可以拦截向第一应用传输的暂停PAUSE命令。即第一应用在后台运行时,该第一应用不会接收到系统发送的PAUSE命令。再例如,如图5E所示,电子设备运行“微信”10秒后,再次将第一应用切换至前台运行时,该第一应用的倒计时图标中的剩余等待时长为10秒。因此对于第一应用来说,该第一应用在后台运行时,第一应用的剩余等待时长可以在后台继续倒计时。
另一种实现方式,第一应用在后台运行时,电子设备向第一应用传输第二指令,该第二指令用于指示第一应用继续按照前台运行的状态运行。
示例性的,第一应用在后台运行时,电子设备可以调用onPause()接口,并通过onPause()接口传输第二指令,指示第一应用继续按照前台运行的状态运行。例如,第一应用在后台运行时,电子设备可以调用onPause()接口,并通过onPause()接口传输第二指令,此时第一应用可以按照其在前台运行的状态一样,继续在后台运行。例如,第一应用的剩余等待时长可以按照在前台运行的状态一样继续在后台倒计时。该实现方式中,电子设备通过onPause()接口传输继续运行指令时,需要修改第一应用的运行逻辑。
示例性的,上述第二应用的第二界面还可以包括等待信息。如图5F所示,以等待信息为倒计时图标为例。电子设备显示第二应用的第二界面,该第二界面包括倒计时图标,该倒计时图标为“倒计时19秒”。如图5G所示,在倒计时结束前,电子设备可以一直显示该倒计时图标。随着时间的推移,该倒计时图标中的倒计时时长逐秒减小,图5G中的倒计时图标为“倒计时:17秒”。
需要说明的是,上述第二界面为第二应用的界面,在用户操作第二应用的过程中该第二界面可能会发生变化。例如,图5F中电子设备显示的界面和图5G中电子设备显示的界面为不同的界面,但该不同的界面均为第二应用的界面,因此5F中电子设备显示的界面和图5G中电子设备显示的界面均可认为是第二应用的第二界面。可以理解的,本申请实施例中第二应用的界面均可以称为第二应用的第二界面。
可以理解的,本实施例中第一应用的第一界面为等待界面时,第一应用的SDK传输第一指令,电子设备响应于SDK的第一指令可以显示第二应用的第二界面或第二应用的图标,并在后台继续运行第一应用。即本申请实施例可以直接将第一应用切换为第二应用,或者,通过弹框显示第一提示信息,接收用户的操作后将第一应用的第一界面切换至第二应用的第二界面,而无需像现有技术一样,先从第一应用的第一界面切换为主界面,再从主界面切换至第二应用的第二界面。因此,本申请实施例提供的切换方法相较于现有技术,切换次数较少,用户体验较好。而且,通过第一应用获取等待场景,相比于实时监控第一应用而言,系统开销较小。另外,本申请实施例中第一应用在后台运行与其在前台运行的状态一致,第一应用的剩余等待时长不会被暂停,因此可以在前台运行第二应用的同时,在后台继续运行第一应用,充分利用第一应用的等待时间。
可选的,该第一应用在后台继续运行时,电子设备不查杀该第一应用对应的进程,即第一应用的进程可以在后台保活,而不会被系统杀掉。可选的,系统可以在预设时间内,不查杀第一应用对应的进程,如果第一应用在后台运行的时间超过预设时间,系统内存不足时,可以将该第一应用的进程查杀。例如,第一应用的等待时间为20秒时,电子设备在前台运行第二应用时,第一应用在后台运行的时间不超过10分钟时,系统不查杀该第一应用的进程。如果第一应用在后台运行的时间超过10分钟,系统内存不足时,可以将该第一应用的进程杀掉。
可选的,电子设备在前台运行第二应用,在后台运行第一应用时,电子设备可以播放第一应用的音频。例如,第一应用和第二应用的音频冲突时,电子设备可以关闭第一应用的音频,播放第二应用的音频。例如,电子设备在前台运行“微信”,在后台运行“王者荣耀”时,如果用户点击微信好友发送的语音信息或在微信应用中播放视频或音频时,可以认为“微信”和“王者荣耀”的音频冲突,电子设备关闭“王者荣耀”的音频,播放“微信”的音频。如果用户在“微信”中发送文字时,“微信”和“王者荣耀”的音频不冲突,电子设备可以播放“王者荣耀”的音频。
可选的,电子设备在前台运行第二应用,在后台运行第一应用时,无论第一应用和第二应用的音频是否冲突,电子设备也可以一直关闭第一应用的音频,直至电子设备在前台运行第一应用时,再播放第一应用的音频。例如,电子设备在前台运行“微信”,在后台运行“王者荣耀”时,如果用户点击微信好友发送的语音信息或在微信应用中播放视频或音频时,电子设备播放“微信”的音频。如果用户在“微信”中发送文字时,电子设备不播放音频。当电子设备再次在前台运行“王者荣耀”时,电子设备播放“王者荣耀”的音频。即电子设备仅播放前台运行的应用程序的音频。
可选的,在上述步骤S401-S404之后还可以包括S405。
S405、电子设备在剩余等待时长结束时,电子设备显示第一应用的信息。
示例性的,剩余等待时长结束可以是指第一应用的剩余等待时长从20秒倒计时到0秒,也可以是指,游戏对战场景中全部队员加入对战。本申请实施例对此并不进行限定。
一种实现方式中,该第一应用的信息为第一界面的剩余等待时长结束后,第一应用的显示界面。在该实现方式中,在第一应用的剩余等待时长结束后,电子设备显示第一应用剩余等待时长结束后第一应用的显示界面,第二应用被切换至后台运行。
例如,如图5G所示,在剩余等待时长为0时,即电子设备的剩余等待时长结束时,电子设备显示图5B的界面,图5B的界面为图5A的剩余等待时长结束后,第一应用的显示界面。在该实现方式中,电子设备可以在剩余等待时长结束时,直接将第一应用切换至前台运行。
另一种实现方式中,上述第一应用的信息为第一应用的图标。例如,电子设备在剩余等待时长结束时,在第二应用的第二界面显示第一应用的图标。该第一应用的图标可以是以提示信息的形式显示。示例性的,电子设备可以显示第二提示信息,该第二提示信息包括第一应用的图标。例如,如图5H所示,以第一应用为“王者荣耀”为例,该第二提示信息包括“王者荣耀”的图标。
示例性的,电子设备可以在第二应用的第二界面上弹框显示第二提示信息。该第二提示信息可以在电子设备的前台以浮球或浮窗等形式显示。本申请实施例对于第二提示信息的具体显示形式及显示内容并不进行限定,在此仅是示例性说明。
在该实现方式中,上述步骤S405之后还可以包括:电子设备接收用户对第一应用的图标的点击操作;响应于用户对第一应用的图标的点击操作,电子设备显示第一应用的第三界面。
示例性的,用户在使用微信的过程中,电子设备显示第二提示信息,用户获知第一应用的倒计时结束,如果用户想返回第一应用,用户可以点击第二提示信息中的第一应用的图标,电子设备接收用户对第一应用的图标的点击操作。
例如,如图5I所示,在倒计时结束时,如果用户想切换至第一应用继续玩游戏,用户点击第二提示信息中的“王者荣耀”的图标,电子设备接收用户对“王者荣耀”的图标的点击操作。
示例性的,响应于用户对第一应用的图标的点击操作,电子设备可以显示“王者荣耀”的剩余倒计时时长结束后“王者荣耀”的显示界面。例如,图5B所示的界面。
可选的,电子设备在第二应用的第二界面上显示第二提示信息后,如果在第一预设时长内用户没有点击第二提示信息中第一应用的图标,电子设备可以关闭第二提示信息,待第二预设时长后再次弹框提示第二提示信息,如果在第三预设时长内用户没有点击第二提示信息中第一应用的图标,电子设备可以关闭第一应用。
可以理解的,本实施例从第一应用的第一界面包括等待信息时,可以通过第一应用获知电子设备当前的界面为等待界面,电子设备显示第二应用的信息,此时第一应用被切换至后台运行,且该第一应用在后台运行的状态与其在前台运行的状态一致,待剩余等待时长结束后,电子设备显示第一应用的信息。即电子设备在前台运行第二应用期间,第一应用在后台运行的状态与前台运行一致。例如,第一应用的倒计时可以在后台继续运行,待第一应用的倒计时结束后,电子设备再次将第一应用切回至前台运行,此时电子设备显示第一应用的剩余倒计时结束后第一应用的显示界面。可以理解的,本申请实施例中的方法,可以充分利用第一应用的等待时间,提高用户时间利用率。
示例性的,在剩余等待时长结束是指第一应用的倒计时从预设时长倒计时到0秒时,上述步骤S405之前还包括电子设备确定剩余等待时长。
可选的,前述第一指令可以携带倒计时时长,电子设备通过第一指令可以确定剩余等待时长,并在剩余等待时长结束时,电子设备显示第一应用的信息。
可选的,在第一指令不携带剩余等待时长的情况下,电子设备可以通过识别第一应用的第一界面的等待信息,确定剩余等待时长。例如,电子设备可以截取第一应用的第一界面,并通过图片识别算法,识别第一应用的第一界面中倒计时图标中的剩余等待时长。再例如,电子设备可以通过倒计时图标的控件,确定剩余等待时长。本申请实施例对于电子设备确定剩余等待时长的具体方式并不进行限定,在此仅是示例性说明。
本申请实施例提供一种应用程序中等待场景的处理方法,该方法通过电子设备运行第一应用;电子设备显示第一应用的第一界面,该第一界面包括等待信息;电子设备响应于第一应用,根据等待信息的第一指令,电子设备显示第二应用的信息;电子设备在后台继续运行第一应用,其中,该第一应用在后台运行时不会被暂停的状态与前台运行的状态一致。本实施例通过第一应用获知第一应用的等待开始时间,与现有技术中实时监控第一应用获知等待开始时间相比,系统开销较小,提升了系统的性能。而且在等待开始时,可以根据等待信息的第一指令,显示第二应用的信息,即电子设备可以从第一应用的界面直接切换为第二应用的界面,而无需像现有技术一样先将第一应用的界面切换至主界面,再从主界面切换至第二应用的界面,因此,界面切换次数较少,用户操作方便,提升了用户体验。再者,本实施例中电子设备在后台运行第一应用时,该第一应用的运行状态与其在前台运行的状态一致,第一应用在后台运行时,其剩余等待时长不会被暂停,因此在前台运行第二应用的同时,第一应用的剩余等待时长在后台可以继续进行,因此能够有效的利用第一应用的等待时间,提高用户时间利用率。
本申请实施例还提供一种应用程序中等待场景的处理方法,如图6所示,该方法可以包括步骤S601-S606:
S601、电子设备运行第一应用。
S602、电子设备显示第一应用的第一界面,该第一界面包括等待信息。
可以理解的,步骤S601-S602的具体实现方式可以参考步骤S401-S402的相关描述,在 此不再赘述。
S603、电子设备接收用户的第一操作,该第一操作用于开启后台继续运行功能;后台继续运行功能是指第一应用在后台运行的状态与其在前台运行的状态一致。
示例性的,上述第一操作可以是手势操作,也可以是点击操作,第一操作是手势操作时,该手势操作与第一应用中现有的手势操作不冲突,本申请实施例对于第一操作的具体形式并不进行限定。例如,当第一操作是点击操作时,电子设备显示第一应用的界面,第一应用的界面上可以有浮球,该浮球用于开启后台继续运行功能。当用户点击浮球,电子设备接收用户对浮球的点击操作后,可以开启后台继续运行功能。再例如,第一操作是手势操作时,该手势操作可以是在第一应用的界面上画圆圈,或者画S,或者画“√”等手势。当用户在第一应用的第一界面上画圆圈时,电子设备接收用户对第一应用的触摸操作。
示例性的,上述后第一应用在后台运行的状态与其在前台运行的状态一致,是指:该第一应用在后台运行时,第一应用的剩余等待时长不会被暂停,而是可以像其在前台运行的状态一样,剩余等待时长在后台继续倒计时。
例如,如图7A所示,电子设备显示第一应用的第一界面时,第一界面上包括浮窗,该浮窗用于开启后台继续运行功能。如果用户想在第一应用的剩余倒计时时长在后台不被暂停的同时,在前台运行其他业务,如图7B所示,用户可以点击浮窗,开启第一应用的后台继续运行功能,电子设备接收用户对浮窗的点击操作。
S604、电子设备响应于第一操作,电子设备显示第二应用的信息。
示例性的,用户开启后台继续运行功能后,响应于用户的第一操作,终端设备显示第二应用的信息。
一种实现方式中,该第二应用的信息为第二应用的第二界面。在该实现方式中,电子设备响应于第一操作,电子设备直接将第一应用切换为第二应用,显示第二应用的第二界面。
另一种实现方式中,第二应用的信息为第二应用的图标。例如,响应于第一操作,电子设备显示第二应用的图标。该第二应用的图标可以是以提示信息的形式显示。示例性的,电子设备可以显示第三提示信息,该第三提示信息中包括第二应用的图标。该第三提示信息用于提示用户可以选择的应用。可选的,该第三提示信息中可以包括至少一个应用的图标,该至少一个应用的图标中包括第二应用的图标。
示例性的,电子设备接收用户在第一应用的第一界面上输入的第一操作后,响应于该第一操作,电子设备在第一应用的第一界面上显示第二应用的图标。该第二应用的图标可以是以提示信息的形式显示。示例性的,电子设备可以显示第三提示信息,该第三提示信息中包括第二应用的图标。该第三提示信息用于提示用户可以选择的应用。可选的,该第三提示信息中可以包括至少一个应用的图标,该至少一个应用的图标中包括第二应用的图标。
例如,结合图7B和图7C所示,用户点击浮窗后,响应于用户对浮窗的点击操作,电子设备可以以弹框的方式显示第三提示信息。例如,如图7C所示,在第一应用的当前界面为等待界面时,响应于用户的第一操作,电子设备在第一应用的第一界面上弹框显示第三提示信息,该第三提示信息中包括“微信”图标,“抖音”图标,“淘宝”图标和“微博”图标。
可以理解的,本实施例通过用户输入第一操作开启第一应用的后台继续运行功能,并显示第二应用的信息,而不需要实时识别第一应用的第一界面是否为等待界面,因此,相较于现有技术中实时识别视频内容是否为广告,本申请实施开启第一应用的后台继续运行功能的 方式开销较小,提高了运行效率和系统性能。
可选的,上述第二应用的信息为第二应用的图标时,步骤S604之后还可以包括:电子设备接收用户对第二应用的图标的选择操作;响应于用户的选择操作,电子设备显示第二应用的第二界面。对于电子设备接收用户对第二应用的图标的选择操作;响应于用户的选择操作,电子设备显示第二应用的第二界面的具体实现方式,可以参考步骤S403中的相关描述,在此不再赘述。
S605、电子设备在后台继续运行第一应用。其中,第一应用在后台运行的状态与前台运行的状态一致。
可以理解的,步骤S605的具体实现方式可以参考步骤S404的相关描述,在此不再赘述。
可选的,在上述步骤S601-S605之后还可以包括S606。
S606、电子设备在剩余等待时长结束时,电子设备显示第一应用的信息。
可以理解的,步骤S606的具体实现方式可以参考步骤S405的相关描述,在此不再赘述。
本实施例在第一应用的等待时间开始后,接收用户的第一操作,开启第一应用的后台继续运行功能;响应于用户的第一操作,电子设备显示第二应用的信息;电子设备在后台继续运行第一应用,该第一应用在后台运行的状态与前台运行的状态一致。可以理解的,本申请实施例中的方法,可以充分利用第一应用的等待时间,提高用户时间利用率。而且在接收用户的第一操作后,电子设备显示第二应用的信息,可以从第一应用的界面直接切换为第二应用的界面,而无需像现有技术一样先将第一应用的界面切换至主界面,再从主界面切换至第二应用的界面,因此,界面切换次数较少,用户操作方便,提升了用户体验。
需要说明的是,与前一个实施例不同的是,前一个实施例是通过第一应用获取第一应用中等待场景的开始时间,电子设备显示第二应用的信息,并在后台继续运行第一应用。而本申请实施例需要用户主动触发后台继续运行流程,用户触发第一操作后,电子设备显示第二应用的信息,并在后台继续运行第一应用。相比前一实施例,本实施例多了一步接收用户的第一操作的步骤。
本申请实施例提供一种应用程序中等待场景的处理方法,该方法通过电子设备运行第一应用;显示第一应用的第一界面,该第一界面包括倒计时图标等待信息;电子设备接收用户的第一操作,该第一操作用于开启后台继续运行功能;后台继续运行功能是指第一应用在后台运行的状态与其在前台运行的状态一致;响应于第一操作,电子设备显示第二应用的信息;电子设备在后台继续运行第一应用,该第一应用在后台运行的状态与其在前台运行的状态一致。本实施例通过接收用户的第一操作,显示第二应用的信息,电子设备可以从第一应用的界面直接切换为第二应用的界面,而无需像现有技术一样先将第一应用的界面切换至主界面,再从主界面切换至第二应用的界面,因此,界面切换次数较少,用户操作方便,提升了用户体验。而且,本实施例中电子设备在后台运行第一应用时,该第一应用的运行状态与其在前台运行的状态一致,第一应用的剩余等待时长不会被暂停,因此在前台运行第二应用的同时,第一应用的剩余等待时长在后台可以继续进行,因此能够有效的利用第一应用的等待时间,提高用户时间利用率。
可以理解的是,上述电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用集成的单元的情况下,图8示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。该电子设备800包括:处理单元801、显示单元802和存储单元803。
其中,处理单元801,用于对电子设备800的动作进行控制管理。例如,可以用于执行图4中,S401和S404的处理步骤;或者,可以用于执行图6中,S601、S603和S605的处理步骤;和/或用于本文所描述的技术的其它过程。
显示单元802,用于显示电子设备的界面。比如,可以用于显示第一应用的第一界面。例如,可以用于执行图4中,S402、S403和S405的处理步骤;或者,可以用于执行图6中,S602、S604和S606的处理步骤;和/或用于本文所描述的技术的其它过程。
存储单元803用于保存电子设备800的程序代码和数据。例如,可以用于储存桌面的布局文件等。
当然,上述电子设备800中的单元模块包括但不限于上述处理单元801、显示单元802和存储单元803。例如,电子设备800中还可以包括音频单元、通信单元等。音频单元用于采集用户发出的语音,以及播放语音。通信单元用于支持电子设备800与其他装置的通信。
其中,处理单元801可以是处理器或控制器,例如可以是中央处理器(central processing unit,CPU),数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。处理器可以包括应用处理器和基带处理器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。存储单元303可以是存储器。音频单元可以包括麦克风、扬声器、受话器等。通信单元可以是收发器、收发电路或通信接口等。
例如,处理单元801为处理器(如图2所示的处理器110),显示单元802为显示屏(如图2所示的显示屏194,该显示屏194可以为触摸屏,该触摸屏中可以集成显示面板和触控面板),存储单元803可以为存储器(如图2所示的内部存储器121)。音频单元可以包括麦克风(如图2所示的麦克风170C)、扬声器(如图2所示的扬声器170A)、受话器(如图2所示的受话器170B)。通信单元包括移动通信模块(如图2所示的移动通信模块150)和无线通信模块(如图2所示的无线通信模块160)。移动通信模块和无线通信模块可以统称为通信接口。本申请实施例所提供的电子设备800可以为图2所示的电子设备100。其中,上述处理器、存储器和通信接口等可以耦合在一起,例如通过总线连接。
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序代码,当上述处理器执行该计算机程序代码时,电子设备执行图4或图6中的相关方法步骤实现上述实施例中的方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行图4或图6中的相关方法步骤实现上述实施例中的方法。
其中,本申请实施例提供的电子设备800、计算机存储介质或者计算机程序产品均用于 执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以使用硬件的形式实现,也可以使用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (29)

  1. 一种应用程序中等待场景的处理方法,其特征在于,所述方法包括:
    电子设备运行第一应用;
    所述电子设备显示第一应用的第一界面,所述第一界面包括等待信息;
    所述电子设备响应于所述第一应用,根据所述等待信息的第一指令,所述电子设备显示第二应用的信息;
    所述电子设备在后台继续运行所述第一应用;其中,所述第一应用在后台运行的状态与前台运行的状态一致。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备在后台继续运行所述第一应用,包括:
    所述电子设备拦截向所述第一应用传输的暂停PAUSE命令;
    或者,
    所述电子设备向所述第一应用传输第二指令,所述第二指令用于指示所述第一应用继续按照所述前台运行的状态运行。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二应用的信息为所述第二应用的第二界面。
  4. 根据权利要求1或2所述的方法,其特征在于,所述第二应用的信息为所述第二应用的图标,所述方法还包括:
    所述电子设备接收用户对所述第二应用的图标的选择操作;
    响应于用户的选择操作,所述电子设备显示所述第二应用的第二界面。
  5. 根据权利要求3或4所述的方法,其特征在于,所述第二界面还包括所述等待信息。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备在剩余等待时长结束时,所述电子设备显示所述第一应用的信息。
  7. 根据权利要求6所述的方法,其特征在于,所述第一应用的信息为所述第一界面的所述剩余等待时长结束后,所述第一应用的显示界面。
  8. 根据权利要求6所述的方法,其特征在于,所述第一应用的信息为所述第一应用的图标,所述方法还包括:
    所述电子设备接收用户对所述第一应用的图标的点击操作;
    响应于用户对所述第一应用的图标的点击操作,所述电子设备显示所述第一界面的所述剩余等待时长结束后,所述第一应用的显示界面。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述第一指令中包括剩余等待时长;
    或者,所述方法还包括:
    所述电子设备识别所述第一界面的所述等待信息,确定剩余等待时长。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述第二应用是所述电子设备在后台运行的应用;
    或者,所述第二应用是所述电子设备在预设时间内运行次数或者运行时长大于预设阈值的应用;
    或者,所述第二应用是所述电子设备中预先配置的应用。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述第一应用在后台运行时,所述电子设备不查杀所述第一应用对应的进程。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述第一应用在后台运行时,所述方法还包括:
    所述电子设备播放所述第一应用的音频信息。
  13. 根据权利要求1-12中任一项所述的方法,其特征在于,所述等待信息包括:倒计时图标、等待时长文字信息、或暂停信息。
  14. 一种应用程序中等待场景的处理方法,其特征在于,所述方法包括:
    电子设备运行第一应用;
    所述电子设备显示第一应用的第一界面,所述第一界面包括等待信息;
    所述电子设备接收用户的第一操作,所述第一操作用于开启后台继续运行功能;所述后台继续运行功能是指所述第一应用在后台运行的状态与所述第一应用在前台运行的状态一致;
    响应于所述第一操作,所述电子设备显示第二应用的信息;
    所述电子设备在后台继续运行所述第一应用;其中,所述第一应用在后台运行的状态与前台运行的状态一致。
  15. 根据权利要求14所述的方法,其特征在于,所述电子设备在后台继续运行所述第一应用,包括:
    所述电子设备拦截向所述第一应用传输的暂停PAUSE命令;
    或者,
    所述电子设备向所述第一应用传输第一指令,所述第一指令用于指示所述第一应用继续按照所述前台运行的状态运行。
  16. 根据权利要求14或15所述的方法,其特征在于,所述第二应用的信息为所述第二应用的第二界面。
  17. 根据权利要求14或15所述的方法,其特征在于,所述第二应用的信息为所述第二应用的图标,所述方法还包括:
    所述电子设备接收用户对所述第二应用的图标的选择操作;
    响应于用户的选择操作,所述电子设备显示所述第二应用的第二界面。
  18. 根据权利要求16或17所述的方法,其特征在于,所述第二界面还包括所述等待信息。
  19. 根据权利要求14-18中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备在剩余等待时长结束时,所述电子设备显示所述第一应用的信息。
  20. 根据权利要求19所述的方法,其特征在于,所述第一应用的信息为所述第一界面的所述剩余等待时长结束后,所述第一应用的显示界面。
  21. 根据权利要求19所述的方法,其特征在于,所述第一应用的信息为所述第一应用的图标,所述方法还包括:
    所述电子设备接收用户对所述第一应用的图标的点击操作;
    响应于用户对所述第一应用的图标的点击操作,所述电子设备显示所述第一界面的剩余等待时长结束后,所述第一应用的显示界面。
  22. 根据权利要求14-21中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备识别所述第一界面的所述等待信息,确定剩余等待时长。
  23. 根据权利要求14-22中任一项所述的方法,其特征在于,所述第二应用是所述电子设备在后台运行的应用;
    或者,所述第二应用是所述电子设备在预设时间内运行次数或者运行时长大于预设阈值的应用;
    或者,所述第二应用是所述电子设备中预先配置的应用。
  24. 根据权利要求14-23中任一项所述的方法,其特征在于,所述第一应用在后台运行时,所述电子设备不查杀所述第一应用对应的进程。
  25. 根据权利要求14-24中任一项所述的方法,其特征在于,所述第一应用在后台运行时,所述方法还包括:
    所述电子设备播放所述第一应用音频信息。
  26. 根据权利要求14-25中任一项所述的方法,其特征在于,所述等待信息包括:倒计时图标、等待时长文字信息、或暂停信息。
  27. 一种电子设备,其特征在于,所述电子设备包括:处理器和存储器;所述存储器与所述处理器耦合;所述存储器用于存储计算机程序代码;所述计算机程序代码包括计算机指令,当所述处理器执行上述计算机指令时,使得所述电子设备执行如权利要求1-26中任一项所述的方法。
  28. 一种计算机存储介质,其特征在于,所述计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-26中任一项所述的方法。
  29. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-26中任一项所述的方法。
PCT/CN2020/098673 2019-06-29 2020-06-29 一种应用程序中等待场景的处理方法和装置 WO2021000807A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20834899.5A EP3964954A4 (en) 2019-06-29 2020-06-29 PROCESSING METHOD AND DEVICE FOR WAITING SCENARIO IN APPLICATION
US17/623,425 US11921977B2 (en) 2019-06-29 2020-06-29 Processing method for waiting scenario in application and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910581269.6A CN110489215A (zh) 2019-06-29 2019-06-29 一种应用程序中等待场景的处理方法和装置
CN201910581269.6 2019-06-29

Publications (1)

Publication Number Publication Date
WO2021000807A1 true WO2021000807A1 (zh) 2021-01-07

Family

ID=68546518

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098673 WO2021000807A1 (zh) 2019-06-29 2020-06-29 一种应用程序中等待场景的处理方法和装置

Country Status (4)

Country Link
US (1) US11921977B2 (zh)
EP (1) EP3964954A4 (zh)
CN (1) CN110489215A (zh)
WO (1) WO2021000807A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113792327A (zh) * 2021-08-12 2021-12-14 荣耀终端有限公司 权限管理方法、用户界面及电子设备
CN113986559A (zh) * 2021-12-24 2022-01-28 荣耀终端有限公司 内存管理方法和相关装置
CN114047867A (zh) * 2021-09-22 2022-02-15 荣耀终端有限公司 一种悬浮窗显示方法及电子设备
WO2022179609A1 (zh) * 2021-02-26 2022-09-01 维沃移动通信有限公司 误操作处理方法、装置、电子设备及可读存储介质
EP4216058A4 (en) * 2021-06-26 2024-01-03 Honor Device Co Ltd CONNECTION MAINTENANCE METHOD FOR VIDEO APPLICATION AND ELECTRONIC DEVICE

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489215A (zh) * 2019-06-29 2019-11-22 华为技术有限公司 一种应用程序中等待场景的处理方法和装置
CN112988405B (zh) * 2019-12-02 2023-12-26 中国移动通信集团浙江有限公司 微服务自动降级方法、装置及计算设备
CN111338772B (zh) * 2020-02-14 2023-04-25 腾讯科技(深圳)有限公司 应用程序的切换方法、装置、设备及存储介质
CN113535250A (zh) * 2020-04-13 2021-10-22 华为技术有限公司 一种应用保活方法、装置和电子设备
US11323653B1 (en) * 2020-11-05 2022-05-03 Snap Inc. Screen recording camera mode
CN112691369A (zh) * 2020-12-28 2021-04-23 维沃移动通信有限公司 显示方法、装置、电子设备及存储介质
CN114860392A (zh) * 2021-02-04 2022-08-05 腾讯科技(深圳)有限公司 客户端的保活方法、装置及存储介质
CN113703887A (zh) * 2021-07-23 2021-11-26 维沃移动通信(杭州)有限公司 应用提醒方法、装置及电子设备
CN114896097B (zh) * 2022-07-13 2023-06-13 荣耀终端有限公司 一种应用程序无响应处理方法及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050035A (zh) * 2014-05-14 2014-09-17 小米科技有限责任公司 应用程序的处理方法及装置
US20150007201A1 (en) * 2005-08-26 2015-01-01 Kt Corporation User terminal for performing a plurality of applications simultaneously
CN104679581A (zh) * 2013-12-03 2015-06-03 腾讯科技(深圳)有限公司 后台运行程序的方法及装置
CN108021321A (zh) * 2017-12-28 2018-05-11 维沃移动通信有限公司 一种应用运行状态控制方法及移动终端
CN109739630A (zh) * 2018-12-29 2019-05-10 努比亚技术有限公司 游戏切换方法、移动终端及计算机可读存储介质
CN110489215A (zh) * 2019-06-29 2019-11-22 华为技术有限公司 一种应用程序中等待场景的处理方法和装置

Family Cites Families (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69315969T2 (de) * 1992-12-15 1998-07-30 Sun Microsystems Inc Darstellung von Informationen in einem Anzeigesystem mit transparenten Fenstern
US6429883B1 (en) * 1999-09-03 2002-08-06 International Business Machines Corporation Method for viewing hidden entities by varying window or graphic object transparency
US6670970B1 (en) * 1999-12-20 2003-12-30 Apple Computer, Inc. Graduated visual and manipulative translucency for windows
US8015494B1 (en) * 2000-03-22 2011-09-06 Ricoh Co., Ltd. Melded user interfaces
US20060236328A1 (en) * 2004-12-10 2006-10-19 Siemens Medical Solutions Usa, Inc. Integrated graphical user interface server for use with multiple client applications
US8490019B2 (en) * 2008-01-29 2013-07-16 Microsoft Corporation Displaying thumbnail copies of each running item from one or more applications
KR101092591B1 (ko) * 2009-11-05 2011-12-13 주식회사 팬택 관통입력을 제공하는 단말 및 그 방법
KR101633336B1 (ko) * 2010-10-01 2016-06-24 엘지전자 주식회사 이동 단말기 및 그 제어방법
US10748233B2 (en) * 2011-06-14 2020-08-18 Intel Corporation Full screen processing in multi-application environments
US20130091446A1 (en) * 2011-10-07 2013-04-11 International Business Machines Corporation Customized multi-application graphical window
US8997017B2 (en) * 2011-10-21 2015-03-31 International Business Machines Corporation Controlling interactions via overlaid windows
KR101824007B1 (ko) * 2011-12-05 2018-01-31 엘지전자 주식회사 이동 단말기 및 그의 멀티 태스킹 방법
US9257098B2 (en) * 2011-12-23 2016-02-09 Nokia Technologies Oy Apparatus and methods for displaying second content in response to user inputs
KR20140069943A (ko) * 2012-11-30 2014-06-10 삼성전자주식회사 휴대단말기의 컨텐츠 처리장치 및 방법
US20140282272A1 (en) * 2013-03-15 2014-09-18 Qualcomm Incorporated Interactive Inputs for a Background Task
EP2784644A1 (en) * 2013-03-27 2014-10-01 Océ-Technologies B.V. A method for cancelling a user action to be applied to a digital object
US10200824B2 (en) * 2015-05-27 2019-02-05 Apple Inc. Systems and methods for proactively identifying and surfacing relevant content on a touch-sensitive device
US10175866B2 (en) * 2015-06-05 2019-01-08 Apple Inc. Providing complications on an electronic watch
CN105791932B (zh) 2016-03-25 2019-07-16 青岛海信电器股份有限公司 一种切换音视频应用的方法、装置和智能电视
EP3455711A4 (en) * 2016-05-12 2020-01-01 Ari Kahn INTERACTIVE DELAYED TRANSACTIONS
CN106658115A (zh) 2016-12-16 2017-05-10 深圳市金立通信设备有限公司 一种视频播放方法及移动终端
CN107154972A (zh) * 2017-04-27 2017-09-12 上海斐讯数据通信技术有限公司 一种基于设备快照的物联网智能设备状态同步方法及系统
CN107783830B (zh) 2017-10-23 2020-12-04 华为技术有限公司 一种多任务管理方法及终端设备
CN107707768B (zh) * 2017-10-27 2021-04-09 Oppo广东移动通信有限公司 运行游戏应用的处理方法以及相关产品
CN108093036B (zh) * 2017-12-08 2021-11-05 网易(杭州)网络有限公司 一种获取资源的方法及装置
CN108089786B (zh) 2017-12-14 2019-12-31 Oppo广东移动通信有限公司 用户界面显示方法、装置、设备及存储介质
CN108170342B (zh) 2017-12-14 2022-04-12 珠海市魅族科技有限公司 应用程序界面显示方法及装置、终端、可读存储介质
CN108184021A (zh) 2017-12-28 2018-06-19 维沃移动通信有限公司 一种应用运行状态控制方法及移动终端
CN108255378B (zh) * 2018-02-09 2020-05-26 维沃移动通信有限公司 一种显示控制方法及移动终端
CN108521607B (zh) * 2018-04-04 2021-03-12 Oppo广东移动通信有限公司 视频中广告的处理方法、装置、存储介质及智能终端
CN108549575B (zh) * 2018-04-19 2020-01-14 Oppo广东移动通信有限公司 退出分屏的处理方法、装置、存储介质及电子设备
US11455075B2 (en) * 2018-04-19 2022-09-27 Huawei Technologies Co., Ltd. Display method when application is exited and terminal
KR102473081B1 (ko) * 2018-07-11 2022-12-02 삼성전자주식회사 전자 장치 및 전자 장치의 기능 수행 방법
CN109379337B (zh) 2018-09-18 2021-01-26 四川长虹电器股份有限公司 一种安卓平台下应用进程的保活方法
US11016788B2 (en) * 2018-11-28 2021-05-25 Hisense Visual Technology Co., Ltd. Application launching method and display device
CN111857620A (zh) * 2019-04-28 2020-10-30 北京小米移动软件有限公司 显示应用信息的方法、装置、移动终端和存储介质
US11934850B2 (en) * 2021-08-06 2024-03-19 Samsung Electronics Co., Ltd Electronic device for displaying execution screen of application, operating method thereof, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150007201A1 (en) * 2005-08-26 2015-01-01 Kt Corporation User terminal for performing a plurality of applications simultaneously
CN104679581A (zh) * 2013-12-03 2015-06-03 腾讯科技(深圳)有限公司 后台运行程序的方法及装置
CN104050035A (zh) * 2014-05-14 2014-09-17 小米科技有限责任公司 应用程序的处理方法及装置
CN108021321A (zh) * 2017-12-28 2018-05-11 维沃移动通信有限公司 一种应用运行状态控制方法及移动终端
CN109739630A (zh) * 2018-12-29 2019-05-10 努比亚技术有限公司 游戏切换方法、移动终端及计算机可读存储介质
CN110489215A (zh) * 2019-06-29 2019-11-22 华为技术有限公司 一种应用程序中等待场景的处理方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3964954A4

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179609A1 (zh) * 2021-02-26 2022-09-01 维沃移动通信有限公司 误操作处理方法、装置、电子设备及可读存储介质
EP4216058A4 (en) * 2021-06-26 2024-01-03 Honor Device Co Ltd CONNECTION MAINTENANCE METHOD FOR VIDEO APPLICATION AND ELECTRONIC DEVICE
CN113792327A (zh) * 2021-08-12 2021-12-14 荣耀终端有限公司 权限管理方法、用户界面及电子设备
CN114047867A (zh) * 2021-09-22 2022-02-15 荣耀终端有限公司 一种悬浮窗显示方法及电子设备
CN113986559A (zh) * 2021-12-24 2022-01-28 荣耀终端有限公司 内存管理方法和相关装置
CN113986559B (zh) * 2021-12-24 2022-06-24 荣耀终端有限公司 内存管理方法和相关装置

Also Published As

Publication number Publication date
CN110489215A (zh) 2019-11-22
EP3964954A4 (en) 2022-06-15
US11921977B2 (en) 2024-03-05
US20220350450A1 (en) 2022-11-03
EP3964954A1 (en) 2022-03-09

Similar Documents

Publication Publication Date Title
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
WO2020238871A1 (zh) 一种投屏方法、系统及相关装置
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021052263A1 (zh) 语音助手显示方法及装置
WO2021017889A1 (zh) 一种应用于电子设备的视频通话的显示方法及相关装置
WO2020108356A1 (zh) 一种应用显示方法及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020000448A1 (zh) 一种柔性屏幕的显示方法及终端
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2019072178A1 (zh) 一种通知处理方法及电子设备
CN113885759A (zh) 通知消息处理方法、设备、系统及计算机可读存储介质
WO2021159746A1 (zh) 文件共享方法、系统及相关设备
CN114040242B (zh) 投屏方法、电子设备和存储介质
US20230247093A1 (en) Data Synchronization Method, Electronic Device, and Computer-Readable Storage Medium
WO2021036898A1 (zh) 折叠屏设备中应用打开方法及相关装置
CN116360725B (zh) 显示交互系统、显示方法及设备
WO2021052139A1 (zh) 手势输入方法及电子设备
WO2022037726A1 (zh) 分屏显示方法和电子设备
CN113691842A (zh) 一种跨设备的内容投射方法及电子设备
WO2020024108A1 (zh) 一种应用图标的显示方法及终端
CN111371849A (zh) 数据处理的方法和电子设备
WO2021190344A1 (zh) 多屏幕显示电子设备和电子设备的多屏幕显示方法
WO2021197071A1 (zh) 无线通信系统及方法
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2021052388A1 (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: 20834899

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020834899

Country of ref document: EP

Effective date: 20211201

NENP Non-entry into the national phase

Ref country code: DE