WO2021104000A1 - 屏幕显示方法及电子设备 - Google Patents

屏幕显示方法及电子设备 Download PDF

Info

Publication number
WO2021104000A1
WO2021104000A1 PCT/CN2020/127669 CN2020127669W WO2021104000A1 WO 2021104000 A1 WO2021104000 A1 WO 2021104000A1 CN 2020127669 W CN2020127669 W CN 2020127669W WO 2021104000 A1 WO2021104000 A1 WO 2021104000A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
application
prompt
electronic device
displayed
Prior art date
Application number
PCT/CN2020/127669
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 EP20892405.0A priority Critical patent/EP4053689A4/en
Publication of WO2021104000A1 publication Critical patent/WO2021104000A1/zh
Priority to US17/827,269 priority patent/US20220291832A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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
    • 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/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
    • G06F3/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping
    • 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

Definitions

  • This application relates to the field of communication technology, and in particular to a screen display method and electronic equipment.
  • the screen display of electronic devices is also showing diversity.
  • new display modes such as split-screen display or picture-in-picture display are added to the existing full-screen display. These new display modes are required to be able to support the simultaneous display of multiple running applications on the screen, and display multiple running applications at the same time, which means cutting a screen into multiple resource supply displays, so there will be multiple The application interacts with the user in the foreground.
  • This application provides a screen display method and electronic device that can allocate resources that can only be used by one application process at the same time to an application displayed in one window in a multi-window display, so as to avoid applications of multiple screen windows from competing for resources. Improve user experience.
  • the present application provides a screen display method, which is applied to an electronic device with a touch screen, and the method includes:
  • Receiving a multi-window instruction in response to the multi-window instruction, displaying a first window and a second window, and displaying a first prompt and a status indication of the first prompt on the first window.
  • a second prompt and a status indication of the second prompt are displayed on the second window, the first window displays the interface of the first application, the second window displays the interface of the second application, the first prompt and
  • the state of the second prompt is an activated state or an inactive state, the window where the prompt in the active state is located is the main window, the window where the prompt in the inactive state is located is the secondary window, and the window of the first prompt is
  • the status indication and the status indication of the second prompt are determined according to a preset rule, and the application displayed in the main window is stored, and the application displayed in the main window is the first application or the second application.
  • the electronic device by distinguishing between the main window and the sub-window during multi-window display, the electronic device knows the application displayed in the main window and the application displayed in the sub-window, and can only provide one at the same time.
  • the resources used by the application process are fixedly allocated to the application displayed by one window in the multi-window display, so as to avoid the application of multiple screen windows from competing for resources and improve the user experience.
  • applications that are actively displayed in the background they can be displayed in the main window or the secondary window without exiting the multi-window (for example, split screen), so that the user can continue to use the multi-window and improve the user experience.
  • the method further includes:
  • the state of the first prompt or the second prompt is changed.
  • the user can change the state of the prompt of the window by operating the prompt (for example, clicking the prompt), and by operating the prompt, the user can change the primary and secondary division of the window.
  • the method further includes:
  • the first prompt is not displayed;
  • the second prompt is not displayed.
  • the prompt disappears automatically after a preset time, so as to avoid affecting the normal use of the user.
  • the method further includes:
  • the first prompt is redisplayed on the first interface
  • the second prompt is redisplayed on the second interface
  • the preset rule is:
  • the window corresponding to the application opened later is determined as the main window, and the window corresponding to the application opened first is determined as the secondary window.
  • the method further includes:
  • the critical resource usage right is allocated to the third application.
  • the critical resource usage rights are allocated to the application displayed in the main window, which can prevent applications of multiple screen windows from competing for resources and improve user experience.
  • the method further includes:
  • Corresponding processing is performed on the main window according to the instruction input by the user to the electronic device.
  • the instruction input by the user to the electronic device includes an instruction for the user to operate the electronic device and a voice input instruction.
  • the method further includes:
  • the fourth application is displayed in the main window.
  • the screen display method for applications that are actively displayed in the background, they can be displayed in the main window without exiting from the multi-window (for example, split screen), so that the user can continue to use the multi-window and improve the user experience.
  • the multi-window for example, split screen
  • the method further includes:
  • the application displayed in the main window is redisplayed in the main window.
  • the present application provides an electronic device, including: a processor, a memory, and a touch screen, the memory, the touch screen are coupled with the processor, and the memory is used to store computer program code, the computer program code Including computer instructions, when the processor reads the computer instructions from the memory, so that the electronic device performs the following operations:
  • Receive a multi-window instruction in response to the multi-window instruction, display a first window and a second window, and display a first prompt and a status indication of the first prompt on the first window, in the first window
  • a second prompt and a status indication of the second prompt are displayed on the second window
  • the first window displays the interface of the first application
  • the second window displays the interface of the second application
  • the first prompt and The state of the second prompt is an activated state or an inactive state
  • the window where the prompt in the active state is located is the main window
  • the window where the prompt in the inactive state is located is the secondary window
  • the window of the first prompt is
  • the status indication and the status indication of the second prompt are determined according to a preset rule; the application displayed in the main window is recorded, and the application displayed in the main window is the first application or the second application.
  • the processor is also used for:
  • the state of the first prompt or the second prompt is changed.
  • the processor is also used for:
  • the first prompt is not displayed;
  • the second prompt is not displayed.
  • the processor is also used for:
  • the first prompt is redisplayed on the first interface
  • the second prompt is redisplayed on the second interface
  • the preset rule is:
  • the window corresponding to the application opened later is determined as the main window, and the window corresponding to the application opened first is determined as the secondary window.
  • the processor is also used for:
  • the critical resource usage right is allocated to the third application.
  • the processor is also used for:
  • Corresponding processing is performed on the main window according to the instruction input by the user to the electronic device.
  • the instruction input by the user to the electronic device includes an instruction for the user to operate the electronic device and a voice input instruction.
  • the processor is also used for:
  • the fourth application is displayed in the main window.
  • the processor is also used for:
  • the application displayed in the main window is redisplayed in the main window.
  • the present application provides a readable storage medium in which an execution instruction is stored.
  • an execution instruction is stored.
  • the electronic device executes any one of the first aspect and the first aspect.
  • Figure 1 is a schematic diagram of a structure of an electronic device applicable to this application;
  • FIG. 2 is a schematic diagram of the software structure of an embodiment of an electronic device provided by this application.
  • FIG. 3 is a flowchart of an embodiment of a screen display method provided by this application.
  • FIG. 4 is a schematic diagram of a screen display provided by this application.
  • FIG. 5 is a flowchart of an embodiment of a screen display method provided by this application.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations, and any embodiment or solution described as “exemplary” or “for example” in the embodiments of this application It should not be construed as being more preferable or advantageous than other embodiments or solutions.
  • words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • the terms “first” and “second” are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance.
  • the electronic device in this application may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, and augmented reality technology ( Augmented reality (AR) equipment, virtual reality (VR) equipment, in-vehicle equipment, smart cars, smart audio, robots, etc.
  • AR Augmented reality
  • VR virtual reality
  • This application does not impose special restrictions on the specific form of the electronic equipment.
  • FIG. 1 is a schematic structural diagram of an electronic device to which this application applies.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, and a universal serial bus (USB) Interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor 180, button 190, motor 191, indicator 192, camera 193, display screen 194, subscriber identification module (SIM) card interface 195, and so on.
  • SIM subscriber identification module
  • the structure illustrated in this embodiment 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, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the electronic device 100 may also include one or more processors 110.
  • 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 instructions 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. This avoids repeated accesses, reduces the waiting time of the processor 110, and improves the efficiency of the electronic device 100 system.
  • 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/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • 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 earphones and play audio through earphones.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application 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 100 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 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, and so on.
  • the mobile communication module 150 may receive electromagnetic waves by the antenna 1, filter, amplify, and other processing of the received electromagnetic waves, and transmit them 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.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • 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), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, Infrared technology (infrared, IR) and other wireless communication solutions.
  • 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 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through 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 technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the aforementioned GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), and quasi-zenith satellite system (quasi- Zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • the electronic device 100 can implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • 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 electronic device 100 may implement a shooting function through an ISP, one or more cameras 193, a video codec, a GPU, one or more display screens 194, and an application processor.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • 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, photos, videos and other data files in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the voice switching method, various functional applications, and data processing provided in some embodiments of the present application.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, 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), and the like.
  • the processor 110 may execute instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110 to cause the electronic device 100 to execute the instructions provided in the embodiments of the present application. Voice switching methods, as well as various functional applications and data processing.
  • 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 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 “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 microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C.
  • the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In 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 can be a USB interface 130, a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) Standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor 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 an ambient light sensor 180L , Bone conduction sensor 180M and so on.
  • the pressure sensor 180A is used to sense a 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 materials.
  • the electronic device 100 determines the strength of the pressure based on 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 position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity 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, somatosensory game scenes and so on.
  • 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 apply to 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 may 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 (also called a fingerprint reader) is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the touch sensor 180K can also be called a touch panel or a touch-sensitive surface.
  • 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 can analyze the heart rate information based on the blood pressure beating 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 or 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 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.
  • FIG. 2 is a schematic diagram of the software structure of an embodiment of an electronic device provided by this application.
  • the Android system is divided into four layers, from top to bottom as the application layer, the application framework layer, and the system. Library and kernel layer.
  • the application layer can include a series of application packages. As shown in Figure 1, the application packages can include applications such as cameras, photo albums, calendars, phones, WLAN, Bluetooth, music, videos, and short messages.
  • the application package further includes a split-screen application.
  • the split-screen application can provide an interface for the electronic device 100 to interact with the user.
  • 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, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the window manager may specifically be a window management service (WindowManagerService, WMS), and the WMS stores information of each application window displayed on the current screen, for example: the number of application windows displayed on the current screen And other information.
  • WMS window management service
  • the split-screen application can specifically determine the size and position of each window according to the number of application windows displayed on the current screen.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • 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 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, and so on.
  • 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 automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • 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 a 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 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 (MediaLibraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • surface manager surface manager
  • media library MediaLibraries
  • three-dimensional graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • 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 implement 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.
  • this application provides a screen display method and electronic device.
  • a prompt for distinguishing the main window and the secondary window is displayed.
  • the prompt can be used
  • the user sets the main window and the sub-window, so that the resources that can only be used by one application process at the same time can be fixedly allocated to the application displayed by one window in the multi-window display, so as to avoid the application of multiple screen windows from competing for resources and improve the user Experience.
  • critical resource in the embodiment of this application, there are many processes in a multi-program system, and they share various resources. However, many resources can only be used by one process at a time. Resources that are only allowed to be used by one application process at a time are called critical resources. Such as audio resources. Many physical devices are critical resources, such as input machines, printers, and tape drives.
  • FIG. 3 is a flowchart of an embodiment of a screen display method provided by this application. As shown in FIG. 3, the method of this embodiment is applied to an electronic device with a touch screen. After the electronic device receives a multi-window instruction, it may be Two windows are displayed on the screen, and more than two windows may also be displayed. In this embodiment, displaying two windows is taken as an example.
  • the method of this embodiment may include:
  • the multi-window instruction in the embodiment of the present application refers to that after the electronic device receives the multi-window instruction, two or more windows can be displayed on the screen.
  • Multi-window is not necessarily a complete division of the entire screen.
  • the multi-window instruction can also be a split-screen instruction, which divides the entire screen.
  • it may be a multi-window instruction entered by the user on the display interface of an application (for example, two fingers sliding upward from the bottom of the screen), and the electronic device displays two windows in response to the multi-window instruction; or the user In response to the multi-window instruction input on the main interface of the electronic device, the electronic device displays two windows in response to the multi-window instruction.
  • a multi-window instruction entered by the user on the display interface of an application (for example, two fingers sliding upward from the bottom of the screen), and the electronic device displays two windows in response to the multi-window instruction; or the user In response to the multi-window instruction input on the main interface of the electronic device, the electronic device displays two windows in response to the multi-window instruction.
  • FIG. 4 is a schematic diagram of a screen display provided by this application. As shown in FIG. 4, the electronic device displays a first window 32 on the left and a second window 33 on the right.
  • the first prompt 30 and the status indication of the first prompt are displayed on the first window 32
  • the second prompt 31 and the status of the second prompt are displayed on the second window 33
  • the first prompt 30 and the second prompt 31 are the same icon
  • the status indications of the first prompt 30 and the second prompt 31 can be indicated by displaying different colors of the icons, for example, the status indication corresponding to the activation state It is red, and the state indicator corresponding to the inactive state is black, or it may also be that the line thickness of the icon as shown in FIG. 4 is obviously different.
  • the first window displays the interface of the first application
  • the second window displays the interface of the second application.
  • the first window displays the interface of WeChat
  • the second window displays the interface of a shopping application.
  • the status indication of the prompt the user can know which interface is the main window and which interface is the secondary window. It should be noted that the position of the first prompt or the second prompt in the corresponding window is not limited.
  • the status indication of the first prompt and the status indication of the second prompt are determined according to preset rules.
  • the preset rule can be: when the left and right screens are split, the left window is initially set as the main window , The window on the right is the secondary window.
  • the upper window is initially set as the primary window and the lower window is the secondary window.
  • the preset rule may also be: determine the order in which the first application and the second application are opened, determine the window corresponding to the application opened first as the main window, and determine the window corresponding to the application opened later Determined as a secondary window; or,
  • the window corresponding to the application opened later is determined as the main window, and the window corresponding to the application opened first is determined as the secondary window.
  • the window corresponding to the application opened first is determined as the main window, and the window corresponding to the application opened later is determined as Vice window.
  • the most recently opened application is determined as the main window, and the other windows are the secondary windows.
  • the user can change the state of the prompt of the window by operating the prompt (for example, clicking the prompt), and by operating the prompt, the user can change the primary and secondary division of the window.
  • the method of this embodiment may further include:
  • the first prompt when the operation on the first prompt is not received within the preset time, the first prompt is not displayed; when the operation on the second prompt is not received within the preset time, the second prompt is not displayed .
  • the preset time is, for example, 5s, and the prompt disappears automatically after the preset time to avoid affecting the normal use of the user.
  • the method of this embodiment may further include:
  • S106 Receive an operation on the touch screen.
  • first prompt on the first interface and the second prompt on the second interface disappear or are displayed at the same time.
  • the window manager in the electronic device may store the applications displayed in the primary window. Therefore, the electronic device knows the application displayed in the primary window and the application displayed in the secondary window.
  • the resources that can only be used by one application process are fixedly allocated to the application displayed by one window in the multi-window display.
  • the window can be the main window or the secondary window, avoiding the application of multiple screen windows from competing for resources and improving the user experience .
  • applications that are actively displayed in the background such as voice calls in the call application or video calls or voice calls in the communication application
  • they can be displayed in the main window or the secondary window without exiting from the multi-window (such as split screen). It is convenient for users to continue to use multiple windows and improve user experience.
  • the method of this embodiment may also include the following three implementable manners:
  • Method 1 Receive an application for obtaining the critical resource usage permission of the third application.
  • the third application is the first application or the second application. If the third application is the application displayed in the stored main window, the critical resource usage permission is assigned to the first application. Three applications.
  • the critical resource is an audio resource.
  • the main window is acquired Audio resources
  • the secondary window cannot obtain audio resources. That is to say, once the user uses the music APP in the main window to play music, whether it is watching videos or playing games in the secondary window, it will not occupy audio resources, avoiding competition between applications in multiple windows. Users can listen to music in the main window without any worries, and watch videos based on subtitles in the sub-window.
  • Manner 2 Receive the instruction input by the user to the electronic device, and perform corresponding processing on the main window according to the instruction input by the user to the electronic device.
  • the instruction input by the user to the electronic device includes an instruction for the user to operate the electronic device and a voice input instruction.
  • the user operates the electronic device, taking the mobile phone as an example, such as operating the navigation keys of the mobile phone, an external keyboard, a Bluetooth keyboard, etc., as well as buttons for adjusting the volume, and voice input, etc., all of which are
  • the instruction input by the user to the electronic device after receiving the instruction input by the user to the electronic device, distributes the instruction to the main window, and performs corresponding processing on the main window according to the instruction.
  • the secondary window it can only receive instructions from the touch screen and execute corresponding processing according to the instructions on the touch screen.
  • Manner 3 Receive the fourth application display instruction sent from the background, and display the fourth application in the main window.
  • it may further include: receiving a fourth application end instruction, and redisplaying the application displayed in the main window in the main window.
  • the aforementioned fourth application is an application that is actively displayed in the background, which is different from the first application and the second application.
  • applications that are actively displayed in the background such as a voice call in a call application or a video call or voice in a communication application Incoming calls will be actively displayed on the screen of the electronic device.
  • the fourth application display instruction sent from the background is received, the fourth application can be displayed in the main window or in the secondary window without exiting Split screen, when the fourth application is finished displaying, the application displayed in the main window before is redisplayed in the main window, which is convenient for the user to continue to use the split screen and improve the user experience.
  • the first window and the second window are displayed, and the first prompt and the state of the first prompt are displayed on the first window.
  • the status indication of the second prompt and the second prompt is displayed on the second window
  • the first window displays the interface of the first application
  • the second window displays the interface of the second application
  • the first prompt and the second prompt The status of is activated or inactivated.
  • the window where the prompt is in the active state is the main window
  • the window where the prompt is in the inactive state is the secondary window.
  • the application displayed in the main window and the application displayed in the main window are stored. For the first application or the second application.
  • the electronic device knows the application displayed in the main window and the application displayed in the secondary window, and can allocate resources that can only be used by one application process at the same time to the application displayed in one window in the multi-window display, avoiding multiple screen windows Applications compete for resources and improve user experience. Moreover, for applications that are actively displayed in the background, they can be displayed in the main window or the secondary window without exiting the multi-window (for example, split screen), so that the user can continue to use the multi-window and improve the user experience.
  • the multi-window for example, split screen
  • Critical resources are resources that can only be used by one application process at a time, such as audio resources, printers, etc.
  • audio resources are taken as an example to illustrate the allocation of critical resources in a split-screen scenario.
  • two or more applications cannot use audio resources at the same time. For example, if two music apps play music at the same time, the system cannot listen to it.
  • the existing Android system if two applications open two music applications at the same time, the music application that is opened first will stop playing, and the music application that is opened later will continue to play. That is to say, Android defaults to the last application to obtain the use permission of audio resources, and other applications must release the use permission of audio resources.
  • the window manager ie, window management service
  • the window manager stores the application displayed in the main window and provides an external query interface
  • audio resource manager AudioManager
  • an application application for audio resource usage permission is received, it will query through the window manager whether the application is the application displayed in the main window. If it is, the audio resource usage permission will be assigned to the application, if not, it will not be assigned, or, it is OK. It is to assign false audio resource usage permissions to the application.
  • the application When the application obtains the false audio resource usage permissions, it will output the handle according to the virtual audio.
  • critical resource usage rights to the application displayed in the main window, it is possible to prevent applications from multiple screen windows from competing for resources. For example, once the user uses a music APP in the main window to play music, whether it is watching videos in the secondary window, Playing games will not occupy audio resources, and avoid multiple windows applications from competing back and forth. Users can listen to music in the main window without any worries, and watch videos based on subtitles in the sub-window.
  • the user After the split-screen display, the user operates the electronic device, such as operating the navigation keys of the electronic device, an external keyboard, a Bluetooth keyboard, etc., as well as buttons to adjust the volume, and voice input, etc., which are all instructions input by the user to the electronic device.
  • the instruction input by the user to the electronic device is also a critical resource.
  • by distinguishing the main window and the sub-window when displaying multiple windows it is possible to set all instructions input by the user to the electronic device to be distributed to The main window and the sub-window only receive touch screen commands.
  • the transfer process of input electronic device instructions can be roughly divided into three parts: the input system part, the window manager processing part, and the view processing part.
  • the window manager acts as the manager of the window. Or cooperate with the Input Manager Service to hand over the input instructions to the appropriate application or window for processing.
  • the main window and the sub-window are distinguished during multi-window display, it can be set that all instructions input by the user to the electronic device are distributed to the main window, and the main window performs corresponding processing on the main window according to the instructions.
  • the sub-window only receives touch-screen instructions, and the sub-window executes corresponding processing according to the touch-screen instructions. Therefore, in a split-screen scenario, it can be avoided that the user's instructions for operating the electronic device switch back and forth between different split-screen windows.
  • the fourth application can be displayed in the main window or the sub-window.
  • the split screen will exit.
  • the fourth application ends, the application displayed in the main window will be redisplayed in the main window, so that the user can continue to use the split screen and improve the user experience.
  • the Android window management service will go to the window manager to query which window is the main window, and determine the display position of the call interface according to the query result.
  • two windows are displayed in a multi-window display scenario as an example, and there may be more than two windows.
  • there are more than two windows similarly, when the application is displayed on each window Prompts are displayed at the same time, only one prompt is active, that is, only one window is the main window, and the other windows are sub-windows.
  • the use rights of the critical resource can be assigned to the main window, and the user
  • the instructions input to the electronic device can also be all distributed to the main window, and applications sent in the background can also be displayed in the main window without exiting the multi-window display.
  • the detailed process is similar to the two-window solution, which is described below with reference to Figure 5.
  • FIG. 5 is a flowchart of an embodiment of a screen display method provided by this application. As shown in FIG. 5, the method of this embodiment is applied to an electronic device with a touch screen. After the electronic device receives a multi-window instruction, it may be Two windows are displayed on the screen, and more than two windows may also be displayed. In this embodiment, displaying three windows is taken as an example.
  • the method of this embodiment may include:
  • the first window displays the interface of the first application
  • the second window displays the interface of the second application.
  • the three windows display the interface of the third application.
  • the status of the first prompt, the second prompt and the third prompt are active or inactive.
  • the window where the active prompt is located is the main window and is in the inactive state.
  • the window where the prompt is located is a secondary window, and the status indication of the first prompt, the status indication of the second prompt and the third prompt are determined according to preset rules.
  • the preset rule may be: determine the order in which the first application, the second application, and the third application are opened, determine the window corresponding to the application opened first as the main window, and map the remaining applications to The window of is determined as the secondary window; or, the window corresponding to the application opened later is determined as the main window, and the windows corresponding to the remaining applications are determined as the secondary window.
  • the preset rule can be: when displaying left and right, the window that is initially set to the left or right of the screen is the main window, and the rest of the windows are secondary windows, or other methods can be used. .
  • the user can change the state of the prompt of the window by operating the prompt (for example, clicking the prompt), and by operating the prompt, the user can change the primary and secondary division of the window.
  • the method of this embodiment may further include:
  • the first prompt when the operation on the first prompt is not received within the preset time, the first prompt is not displayed; when the operation on the second prompt is not received within the preset time, the second prompt is not displayed ; When no operation on the third prompt is received within the preset time, the third prompt is not displayed.
  • the preset time is, for example, 5s, and the prompt disappears automatically after the preset time to avoid affecting the normal use of the user.
  • the method of this embodiment may further include:
  • the prompts on the three interfaces will automatically pop up at the same time.
  • first prompt on the first interface disappear or are displayed at the same time.
  • S203 Store the application displayed in the main window, where the application displayed in the main window is any one of the first application, the second application, and the third application.
  • the window manager in the electronic device may store the applications displayed in the primary window. Therefore, the electronic device knows the application displayed in the primary window and the application displayed in the secondary window.
  • the resources that can only be used by one application process are fixedly allocated to the application displayed by one window in the multi-window display.
  • the window can be the main window or the secondary window, avoiding the application of multiple screen windows from competing for resources and improving the user experience .
  • applications that are actively displayed in the background such as voice calls in the call application or video calls or voice calls in the communication application
  • they can be displayed in the main window or the secondary window without exiting from the multi-window (such as split screen). It is convenient for users to continue to use multiple windows and improve user experience.
  • mode 1, mode 2, and mode 3 in the embodiment shown in FIG. 3, which will not be repeated here.
  • the present application also provides a readable storage medium in which an execution instruction is stored.
  • an execution instruction is stored.
  • the electronic device executes the screen display method in the foregoing method embodiment.
  • the application also provides a program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium.
  • At least one processor of the electronic device can read the execution instruction from a readable storage medium, and the execution of the execution instruction by the at least one processor causes the electronic device to implement the screen display method in the foregoing method embodiment.
  • the present application also provides a chip, which is connected to the memory, or the memory is integrated on the chip, and when the software program stored in the memory is executed, the screen display method in the above method embodiment is implemented.
  • a person of ordinary skill in the art can understand that: in the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

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)
  • User Interface Of Digital Computer (AREA)

Abstract

一种屏幕显示方法及电子设备。所述方法包括:接收多窗口指令(S101);响应于多窗口指令,显示第一窗口和第二窗口,并在第一窗口上显示第一提示符和第一提示符的状态指示,在第二窗口上显示第二提示符和第二提示符的状态指示,第一窗口显示第一应用的界面,第二窗口显示第二应用的界面,第一提示符和第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,第一提示符的状态指示和第二提示符的状态指示根据预设规则确定(S102);存储主窗口显示的应用,主窗口显示的应用为第一应用或第二应用(S103)。可将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用。

Description

屏幕显示方法及电子设备
本申请要求于2019年11月29日提交中国专利局、申请号为201911206654.9、申请名称为“屏幕显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种屏幕显示方法及电子设备。
背景技术
目前,随着电子设备屏幕显示技术的提升,电子设备的屏幕显示也呈现多样性,例如在既有的全屏显示基础上,增加分屏显示或画中画显示等新型的显示模式。这些新型的显示模式均要求能够支持在屏幕上同时显示多个运行中的应用,同时显示多个运行中的应用,意味着将一块屏幕切割成多个资源供应用显示,因此会同时有多个应用在前台和用户交互。
在多个运行中的应用同时在屏幕上显示的场景下,对于同一时间只能供一个应用进程使用的资源(如临界资源中的音频资源使用权限、打印机等)该如何分配,是亟需解决的问题。
发明内容
本申请提供一种屏幕显示方法及电子设备,可将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用,避免多个屏幕窗口的应用争抢资源,提高用户体验。
第一方面,本申请提供一种屏幕显示方法,该方法应用于具有触摸屏的电子设备中,该方法包括:
接收多窗口指令,响应于所述多窗口指令,显示第一窗口和第二窗口,并在所述第一窗口上显示第一提示符和所述第一提示符的状态指示,在所述第二窗口上显示第二提示符和所述第二提示符的状态指示,所述第一窗口显示第一应用的界面,所述第二窗口显示第二应用的界面,所述第一提示符和所述第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,所述第一提示符的状态指示和所述第二提示符的状态指示根据预设规则确定,存储主窗口显示的应用,所述主窗口显示的应用为所述第一应用或所述第二应用。
通过第一方面提供的屏幕显示方法,通过在多窗口显示时,区分主窗口和副窗口,从而,电子设备知道了主窗口显示的应用和副窗口显示的应用,可以将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用,避免多个屏幕窗口的应用争抢资源,提高用户体验。而且,对于后台主动显示的应用,可将其显示在主窗口或副窗口,不会退出多窗口(例如分屏),便于用户继续使用多窗口,提高用户体验。
在一种可能的设计中,所述方法还包括:
接收对所述第一提示符或所述第二提示符的操作;
响应于对所述第一提示符或所述第二提示符的操作,变更所述第一提示符或所述第二提示符的状态。
通过该实施方式提供的屏幕显示方法,用户可以通过操作提示符(例如点击提示符)来变更窗口的提示符的状态,通过用户操作提示符,可以变更窗口的主副之分。
在一种可能的设计中,所述方法还包括:
在预设时间内未接收到对所述第一提示符的操作时,不显示所述第一提示符;
在预设时间内未接收到对所述第二提示符的操作时,不显示所述第二提示符。
通过该实施方式提供的屏幕显示方法,预设时间后提示符自动消失,避免影响用户正常使用。
在一种可能的设计中,所述方法还包括:
接收到对触摸屏的操作;
响应于对触摸屏的操作,在所述第一界面上重新显示所述第一提示符,在所述第二界面上重新显示所述第二提示符。
在一种可能的设计中,所述预设规则为:
确定所述第一应用和所述第二应用打开的先后顺序,将先打开的应用对应的窗口确定为主窗口,将后打开的应用对应的窗口确定为副窗口;或者,
将后打开的应用对应的窗口确定为主窗口,将先打开的应用对应的窗口确定为副窗口。
在一种可能的设计中,所述方法还包括:
接收第三应用的临界资源使用权限获取申请,所述第三应用为所述第一应用或所述第二应用;
若所述第三应用是已存储的所述主窗口显示的应用,则将所述临界资源使用权限分配给所述第三应用。
通过该实施方式提供的屏幕显示方法,将临界资源使用权限分配给主窗口显示的应用,这样可以避免多个屏幕窗口的应用争抢资源,提高用户体验。
在一种可能的设计中,所述方法还包括:
接收用户输入给所述电子设备的指令;
根据所述用户输入给所述电子设备的指令对主窗口进行相应的处理。
在一种可能的设计中,所述用户输入给所述电子设备的指令包括用户操作所述电子设备的指令和语音输入指令。
通过该实施方式提供的屏幕显示方法,在分屏场景下,可以避免用户操作电子设备的指令会在不同分屏窗口来回切换。
在一种可能的设计中,所述方法还包括:
接收后台发送的第四应用显示指令;
在主窗口显示所述第四应用。
通过该实施方式提供的屏幕显示方法,对于后台主动显示的应用,可将其显示在主窗口,不会退出多窗口(例如分屏),便于用户继续使用多窗口,提高用户体验。
在一种可能的设计中,所述方法还包括:
接收所述第四应用结束指令;
在主窗口重新显示所述主窗口显示的应用。
第二方面,本申请提供一种电子设备,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述电子设备执行如下操作:
接收多窗口指令;响应于所述多窗口指令,显示第一窗口和第二窗口,并在所述第一窗口上显示第一提示符和所述第一提示符的状态指示,在所述第二窗口上显示第二提示符和所述第二提示符的状态指示,所述第一窗口显示第一应用的界面,所述第二窗口显示第二应用的界面,所述第一提示符和所述第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,所述第一提示符的状态指示和所述第二提示符的状态指示根据预设规则确定;记录主窗口显示的应用,所述主窗口显示的应用为所述第一应用或所述第二应用。
在一种可能的设计中,所述处理器还用于:
接收对所述第一提示符或所述第二提示符的操作;
响应于对所述第一提示符或所述第二提示符的操作,变更所述第一提示符或所述第二提示符的状态。
在一种可能的设计中,所述处理器还用于:
在预设时间内未接收到对所述第一提示符的操作时,不显示所述第一提示符;
在预设时间内未接收到对所述第二提示符的操作时,不显示所述第二提示符。
在一种可能的设计中,所述处理器还用于:
接收到对触摸屏的操作;
响应于对触摸屏的操作,在所述第一界面上重新显示所述第一提示符,在所述第二界面上重新显示所述第二提示符。
在一种可能的设计中,所述预设规则为:
确定所述第一应用和所述第二应用打开的先后顺序,将先打开的应用对应的窗口确定为主窗口,将后打开的应用对应的窗口确定为副窗口;或者,
将后打开的应用对应的窗口确定为主窗口,将先打开的应用对应的窗口确定为副窗口。
在一种可能的设计中,所述处理器还用于:
接收第三应用的临界资源使用权限获取申请,所述第三应用为所述第一应用或所述第二应用;
若所述第三应用是已存储的所述主窗口显示的应用,则将所述临界资源使用权限分配给所述第三应用。
在一种可能的设计中,所述处理器还用于:
接收用户输入给所述电子设备的指令;
根据所述用户输入给所述电子设备的指令对主窗口进行相应的处理。
在一种可能的设计中,所述用户输入给所述电子设备的指令包括用户操作所述电子设备的指令和语音输入指令。
在一种可能的设计中,所述处理器还用于:
接收后台发送的第四应用显示指令;
在主窗口显示所述第四应用。
在一种可能的设计中,所述处理器还用于:
接收所述第四应用结束指令;
在主窗口重新显示所述主窗口显示的应用。
上述第二方面以及上述第二方面的各可能的设计中所提供的电子设备,其有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。
第三方面,本申请提供一种可读存储介质,可读存储介质中存储有执行指令,当电子设备的至少一个处理器执行该执行指令时,电子设备执行第一方面及第一方面任一种可能的设计中的屏幕显示方法。
附图说明
图1为本申请适用的电子设备的一种结构示意图;
图2为本申请提供的一种电子设备实施例的软件结构示意图;
图3为本申请提供的一种屏幕显示方法实施例的流程图;
图4为本申请提供的一种屏幕显示示意图;
图5为本申请提供的一种屏幕显示方法实施例的流程图。
具体实施方式
本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明,本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或方案不应被解释为比其它实施例或方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。
示例性的,本申请中的电子设备可以为手机、平板电脑、个人计算机(personalcomputer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、智能音响、机器人等,本申请对该电子设备的具体形式不做特殊限制。
图1为本申请适用的电子设备的一种结构示意图,如图1所示,电子设备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等。可以理解的是,本实施例示意的结构并不构成对电子设备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。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。这就避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100系统的效率。
在一些实施例中,处理器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)接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。
电源管理模块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可以包括至少一个滤波器,开关,功率放大器,低噪声放大器等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理, 传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN),蓝牙,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括GSM,GPRS,CDMA,WCDMA,TD-SCDMA,LTE,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的正整数。
电子设备100可以通过ISP,一个或多个摄像头193,视频编解码器,GPU,一个或多个显示屏194以及应用处理器等实现拍摄功能。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本 理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据文件保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的语音切换方法,以及各种功能应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备100执行本申请实施例中所提供的语音切换方法,以及各种功能应用及数据处理。
电子设备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)标准接口。
传感器180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
其中,压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电 子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景等。
加速度传感器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可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
触摸传感器180K,也可称触控面板或触敏表面。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称触控屏。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
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分离。
图2为本申请提供的一种电子设备实施例的软件结构示意图,本实施例中,将安卓(Android)系统分为四层,从上至下分别为应用程序层、应用程序框架层、系统库和内核层。
应用程序层可以包括一系列应用程序包,如图1所示,应用程序包可以包括相机、相册、日历、电话、WLAN,蓝牙,音乐,视频,短信息等应用程序。
在本申请的一些实施例中,应用程序包还包括分屏应用。该分屏应用可以提供电子设备100与用户进行交互的界面。
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
在本申请的一些实施例中,窗口管理器可具体为窗口管理服务(WindowManagerService,WMS),该WMS存放有当前屏幕中显示的各个应用窗口的信息,例如:当前屏幕中显示的应用窗口的数量等信息。分屏应用可以根据当前屏幕中显示的应用窗口的数量具体确定各个窗口的大小以及位置。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状 态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
安卓运行时(Android Runtime)包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(MediaLibraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
以下实施例中所涉及的技术方案均可以在具有上述硬件架构和软件架构的电子设备100中实现。
相关技术中,在多个运行中的应用同时在屏幕上显示的场景下,对于同一时间只能供一个应用进程使用的资源(如临界资源中的音频资源使用权限、打印机等)该如何分配,具体来说,对于临界资源,如音频资源,默认将使用权限分配给最后一个打开的应用,前一个应用释放使用权限,如打印机,排队使用资源,即前一个应用使用完,接着下一个应用使用。上述方法比较混乱,有时会中断用户的使用,给用户带来不好的体验,用户体验不高。对于后台主动显示的应用,如来电的场景(包括语音来电和视频来电),相关技术中自动退出分屏场景,若用户通话结束后还想使用分屏,则还得重新依次打开分屏的多个应用,用户体验不高。为解决上述问题,本申请提供一种屏幕显示方法及电子设备,通过在多个窗口上同时显示多个运行中的应用时,显示用于区分主窗口和副窗口的提示符,该提示符可用于用户设置主窗口和副窗口,从而可将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用,避免多个屏幕窗口的应用争抢资源,提高用户体验。对于后台主动显示的应用,可将其显示在主窗口或副窗口,不会退出多窗口(例如分屏),便于用户继续使用多窗口,提高用户体验。下面结合附图详细说明本申请提供的屏幕显示方法及电子设备。
首先,本申请实施例中的术语临界资源,多道程序系统中存在许多进程,它们共享各种资源,然而有很多资源一次只能供一个进程使用。一次仅允许一个应用进程使用的资源称为临界资源。如音频资源。许多物理设备都属于临界资源,如输入机、打印机、磁带机等。
图3为本申请提供的一种屏幕显示方法实施例的流程图,如图3所示,本实施例的方法 应用于具有触摸屏的电子设备中,在电子设备接收多窗口指令之后,可以是在屏幕上显示两个窗口,还可以显示两个以上的窗口,本实施例以显示两个窗口为例,本实施例的方法可以包括:
S101、接收多窗口指令。
具体来说,本申请实施例中的多窗口指令,是指电子设备接收多窗口指令之后,屏幕上可以显示两个或者两个以上的窗口。多窗口不一定是完整的划分整个屏幕,多窗口指令还可以是分屏指令,分屏是对整个屏幕划分。
例如,可以是用户在一个应用的显示界面中输入的多窗口指令(例如两个手指头从屏幕底端向上方滑动),电子设备响应于该多窗口指令,显示两个窗口;还可以是用户在电子设备的主界面输入的多窗口指令,电子设备响应于该多窗口指令,显示两个窗口。
S102、响应于多窗口指令,显示第一窗口和第二窗口,并在第一窗口上显示第一提示符和第一提示符的状态指示,在第二窗口上显示第二提示符和第二提示符的状态指示,第一窗口显示第一应用的界面,第二窗口显示第二应用的界面,第一提示符和第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,第一提示符的状态指示和第二提示符的状态指示根据预设规则确定。
具体地,电子设备响应于多窗口指令,显示两个窗口,图4为本申请提供的一种屏幕显示示意图,如图4所示,电子设备左边显示第一窗口32,右边显示第二窗口33,还可以是上下分屏显示,并在第一窗32上显示第一提示符30和第一提示符的状态指示,在第二窗口33上显示第二提示符31和第二提示符的状态指示,第一提示符30和第二提示符31为相同的图标,第一提示符30和第二提示符31的状态指示可以通过图标显示不同的颜色来指示,例如,激活状态对应的状态指示为红色,未激活状态对应的状态指示为黑色,或者还可以是如图4中所示的图标的线条粗细明显不同。其中,第一窗口显示第一应用的界面,第二窗口显示第二应用的界面,比如第一窗口显示微信的界面,第二窗口显示一购物应用的界面。通过提示符的状态指示,用户可以知晓哪个界面是主窗口,哪个界面是副窗口。需要说明的是,第一提示符或第二提示符在对应窗口的位置不限。
其中,第一提示符的状态指示和第二提示符的状态指示根据预设规则确定,例如,以分屏为例,预设规则可以为:在左右分屏时,初始设置左边窗口为主窗口,右边窗口为副窗口,在上下分屏时,初始设置上边窗口为主窗口,下边窗口为副窗口。
在一种可实施的方式中,预设规则还可以为:确定第一应用和第二应用打开的先后顺序,将先打开的应用对应的窗口确定为主窗口,将后打开的应用对应的窗口确定为副窗口;或者,
将后打开的应用对应的窗口确定为主窗口,将先打开的应用对应的窗口确定为副窗口。
具体来说,以多窗口显示中的分屏场景为例,例如可以是在首次进行分屏场景时,将先打开的应用对应的窗口确定为主窗口,将后打开的应用对应的窗口确定为副窗口。在不是首次进行分屏时,将最近一次打开的应用确定为主窗口,其它的窗口为副窗口。
在一种可实施的方式中,用户可以通过操作提示符(例如点击提示符)来变更窗口的提示符的状态,通过用户操作提示符,可以变更窗口的主副之分。此时,本实施例的方法还可以包括:
S104、接收对第一提示符或第二提示符的操作。
S105、响应于对第一提示符或第二提示符的操作,变更第一提示符或第二提示符的状态。
进一步地,在预设时间内未接收到对第一提示符的操作时,不显示第一提示符;在预设时间内未接收到对第二提示符的操作时,不显示第二提示符。预设时间例如为5s,预设时间后提示符自动消失,避免影响用户正常使用。
进一步地,提示符消失之后,当用户需要重新调整主副窗口时,提示符会自动弹出,此时,本实施例的方法还可以包括:
S106、接收到对触摸屏的操作。
S107、响应于对触摸屏的操作,在所述第一界面上重新显示所述第一提示符,在所述第二界面上重新显示所述第二提示符。
例如,用户在调整第一窗口或第二窗口的大小,即屏幕的分割线的时候,两个界面上的提示符会同时自动弹出。
需要说明的是,第一界面上的第一提示符和第二界面上的第二提示符是同时消失或者同时显示的。
S103、存储主窗口显示的应用,主窗口显示的应用为第一应用或第二应用。
具体地,在用户确定了主副窗口之后,可以是电子设备中的窗口管理器存储主窗口显示的应用,从而,电子设备知道了主窗口显示的应用和副窗口显示的应用,可以将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用,该窗口可以是主窗口,也可以是副窗口,避免多个屏幕窗口的应用争抢资源,提高用户体验。而且,对于后台主动显示的应用(例如通话应用中的语音来电或者通讯应用中的视频来电或语音来电),可将其显示在主窗口或副窗口,不会退出多窗口(例如分屏),便于用户继续使用多窗口,提高用户体验。此时,本实施例的方法还可以包括如下三种可实施的方式:
方式一、接收第三应用的临界资源使用权限获取申请,第三应用为第一应用或第二应用,若第三应用是已存储的主窗口显示的应用,则将临界资源使用权限分配给第三应用。
具体来说,即就是将临界资源使用权限分配给主窗口显示的应用,这样可以避免多个屏幕窗口的应用争抢资源,例如,临界资源为音频资源,在主副窗口中,主窗口一旦获取音频资源,则副窗口无法获取音频资源。也就是说,用户一旦在主窗口中使用音乐APP播放音乐,在副窗口中无论是看视频,打游戏,都不会占用音频资源,避免多个窗口的应用来回争抢。用户可以无忧的在主窗口听音乐,副窗口根据字幕看视频。
方式二、接收用户输入给电子设备的指令,根据用户输入给电子设备的指令对主窗口进行相应的处理。
其中,用户输入给电子设备的指令包括用户操作电子设备的指令和语音输入指令。
具体来说,在分屏显示后,用户操作电子设备,以手机为例,如操作手机的导航键、外接键盘、蓝牙键盘等,还有调整音量的按键,还有语音输入等,这些均是用户输入给电子设备的指令,接收到用户输入给电子设备的指令后,将该指令分发到主窗口,根据指令对主窗口进行相应的处理。对于副窗口来说,只能接收触屏的指令,根据触屏指令执行相应的处理。
通过本方式的方法,在分屏场景下,可以避免用户操作电子设备的指令会在不同分屏 窗口来回切换。
方式三、接收后台发送的第四应用显示指令,在主窗口显示第四应用。
在方式三中,进一步地,还可以包括:接收第四应用结束指令,在主窗口重新显示主窗口显示的应用。
具体地,上述第四应用是后台主动显示的应用,是与第一应用和第二应用不同的应用,对于后台主动显示的应用,例如通话应用中的语音来电或者通讯应用中的视频来电或语音来电,会主动显示在电子设备的屏幕上,在本申请中,当接收到后台发送的第四应用显示指令时,可将第四应用显示在主窗口,还可以显示在副窗口,不会退出分屏,当第四应用结束显示时,在主窗口重新显示之前主窗口显示的应用,便于用户继续使用分屏,提高用户体验。
本实施例提供的屏幕显示方法,通过接收到多窗口指令之后,响应于多窗口指令,显示第一窗口和第二窗口,并在第一窗口上显示第一提示符和第一提示符的状态指示,在第二窗口上显示第二提示符和第二提示符的状态指示,第一窗口显示第一应用的界面,第二窗口显示第二应用的界面,第一提示符和第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,最后存储主窗口显示的应用,主窗口显示的应用为第一应用或第二应用。从而,电子设备知道了主窗口显示的应用和副窗口显示的应用,可以将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用,避免多个屏幕窗口的应用争抢资源,提高用户体验。而且,对于后台主动显示的应用,可将其显示在主窗口或副窗口,不会退出多窗口(例如分屏),便于用户继续使用多窗口,提高用户体验。
下面采用三个具体的实施例,对图3所示方法实施例中的三种方式的技术方案进行详细说明。
实施例一
临界资源,即同一时间只能供一个应用进程使用的资源,如音频资源、打印机等,本实施例中以音频资源为例来说明分屏场景下临界资源的分配。电子设备系统中不能同时有两个或两个以上的应用同时使用音频资源,比如两个音乐APP同时播放音乐,系统则没法听了。在现有的安卓系统中,两个应用同时打开两个音乐应用,则先打开的那个音乐应用会停止播放,后面打开的才会继续播放。也就是说Android默认最后一个应用获取音频资源的使用权限,其他的应用必须释放音频资源的使用权限。该方法比较混乱,有时会中断用户的使用,给用户带来不好的体验,用户体验不高。在本申请实施例中,通过在多窗口显示时,区分主窗口和副窗口,窗口管理器(即窗口管理服务)存储主窗口显示的应用,并且提供对外查询接口,音频资源管理器(AudioManager)在接收到应用申请音频资源使用权限时,会通过窗口管理器查询该应用是否是主窗口显示的应用,若是则将音频资源使用权限分配给该应用,若不是,则不分配,或者,还可以是分配虚假的音频资源使用权限给该应用,该应用获取到虚假的音频资源使用权限时,根据虚拟的音频输出句柄。通过将临界资源使用权限分配给主窗口显示的应用,这样可以避免多个屏幕窗口的应用争抢资源,例如,用户一旦在主窗口中使用音乐APP播放音乐,在副窗口中无论是看视频,打游戏,都不会占用音频资源,避免多个窗口的应用来回争抢。用户可以无忧的在主窗口听音乐,副窗口根据字幕看视频。
实施例二
在分屏显示后,用户操作电子设备,如操作电子设备的导航键、外接键盘、蓝牙键盘等,还有调整音量的按键,还有语音输入等,这些均是用户输入给电子设备的指令,这也意味着用户输入给电子设备的指令也是一种临界资源,在本申请实施例中,通过在多窗口显示时,区分主窗口和副窗口,可以设置用户输入给电子设备的指令全部分发至主窗口,副窗口只接收触屏指令。
具体地,在安卓系统中,输入电子设备指令的传递流程,可以大致分为三个部分:输入系统部分、窗口管理器处理部分和视图(View)处理部分,窗口管理器作为窗口的管理者,或配合输入管理服务(Input Manager Service)将输入指令交由合适的应用或窗口来处理。本实施例中,由于在多窗口显示时,区分主窗口和副窗口,可以设置用户输入给电子设备的指令全部分发至主窗口,主窗口根据指令对主窗口进行相应的处理。副窗口只接收触屏指令,副窗口根据触屏指令执行相应的处理。从而,在分屏场景下,可以避免用户操作电子设备的指令会在不同分屏窗口来回切换。
实施例三
本实施例中,由于在多窗口显示时,区分主窗口和副窗口,当接收到后台发送的第四应用显示指令时,可将第四应用显示在主窗口,还可以显示在副窗口,不会退出分屏,当第四应用结束显示时,在主窗口重新显示之前主窗口显示的应用,便于用户继续使用分屏,提高用户体验。例如,在显示通话界面之前,安卓窗口管理服务会去窗口管理器查询当前哪个窗口是主窗口,根据查询结果决定通话界面的显示位置。
需要说明的是,上述实施例中是以多窗口显示场景下显示两个窗口为例,也可以是两个以上窗口,当是两个以上窗口时,类似地,在每个窗口上显示应用时同时显示提示符,只有一个提示符是激活状态,即就是只有一个窗口是主窗口,其它窗口都是副窗口,在临界资源的分配场景下,可以将临界资源的使用权限分配给主窗口,用户输入给电子设备的指令也可全部分发至主窗口,后台发送的应用也可以显示在主窗口,不会退出多窗口显示,详细的过程与两个窗口的方案类似,下面结合图5进行说明。
图5为本申请提供的一种屏幕显示方法实施例的流程图,如图5所示,本实施例的方法应用于具有触摸屏的电子设备中,在电子设备接收多窗口指令之后,可以是在屏幕上显示两个窗口,还可以显示两个以上的窗口,本实施例以显示三个窗口为例,本实施例的方法可以包括:
S201、接收多窗口指令。
S202、响应于多窗口指令,显示第一窗口、第二窗口和第三窗口,并在第一窗口上显示第一提示符和第一提示符的状态指示,在第二窗口上显示第二提示符和第二提示符的状态指示,在第三窗口上显示第三提示符和第三提示符的状态指示,第一窗口显示第一应用的界面,第二窗口显示第二应用的界面,第三窗口显示第三应用的界面,第一提示符、第二提示符和第三提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,第一提示符的状态指示、第二提示符和第三提示符的状态指示根据预设规则确定。
在一种可实施的方式中,预设规则可以为:确定第一应用、第二应用和第三应用打开的先后顺序,将先打开的应用对应的窗口确定为主窗口,将其余的应用对应的窗口确定为 副窗口;或者,将后打开的应用对应的窗口确定为主窗口,将其余应用对应的窗口确定为副窗口。
在一种可实施的方式中,预设规则可以为:在左右显示时,初始设置位于屏幕最左方或最右方的窗口为主窗口,其余窗口为为副窗口,或者,还可以其它方式。
在一种可实施的方式中,用户可以通过操作提示符(例如点击提示符)来变更窗口的提示符的状态,通过用户操作提示符,可以变更窗口的主副之分。此时,本实施例的方法还可以包括:
S204、接收对第一提示符或第二提示符或第三提示符的操作。
S205、响应于对第一提示符或第二提示符或第三提示符的操作,变更第一提示符或第二提示符或第三提示符的状态。
进一步地,在预设时间内未接收到对第一提示符的操作时,不显示第一提示符;在预设时间内未接收到对第二提示符的操作时,不显示第二提示符;在预设时间内未接收到对第三提示符的操作时,不显示第三提示符。预设时间例如为5s,预设时间后提示符自动消失,避免影响用户正常使用。
进一步地,提示符消失之后,当用户需要重新调整主副窗口时,提示符会自动弹出,此时,本实施例的方法还可以包括:
S206、接收到对触摸屏的操作。
S207、响应于对触摸屏的操作,在所述第一界面上重新显示所述第一提示符,在所述第二界面上重新显示所述第二提示符,在所述第三界面上重新显示所述第三提示符。
例如,用户在调整屏幕的分割线的时候,三个界面上的提示符会同时自动弹出。
需要说明的是,第一界面上的第一提示符、第二界面上的第二提示符和第三界面上的第三提示符是同时消失或者同时显示的。
S203、存储主窗口显示的应用,主窗口显示的应用为第一应用、第二应用和第三应用中的任一个。
具体地,在用户确定了主副窗口之后,可以是电子设备中的窗口管理器存储主窗口显示的应用,从而,电子设备知道了主窗口显示的应用和副窗口显示的应用,可以将同一时间只能供一个应用进程使用的资源固定分配给多窗口显示中的一个窗口显示的应用,该窗口可以是主窗口,也可以是副窗口,避免多个屏幕窗口的应用争抢资源,提高用户体验。而且,对于后台主动显示的应用(例如通话应用中的语音来电或者通讯应用中的视频来电或语音来电),可将其显示在主窗口或副窗口,不会退出多窗口(例如分屏),便于用户继续使用多窗口,提高用户体验。具体的过程可以参见图3所示实施例中的方式一、方式二和方式三的描述,此处不再赘述。
本申请还提供一种可读存储介质,可读存储介质中存储有执行指令,当电子设备的至少一个处理器执行该执行指令时,电子设备执行上述方法实施例中的屏幕显示方法。
本申请还提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。电子设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得电子设备实施上述方法实施例中的屏幕显示方法。
本申请还提供一种芯片,芯片与存储器相连,或者芯片上集成有存储器,当存储器中存储的软件程序被执行时,实现上述方法实施例中的屏幕显示方法。
本领域普通技术人员可以理解:在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。

Claims (22)

  1. 一种屏幕显示方法,其特征在于,所述方法应用于具有触摸屏的电子设备中,所述方法包括:
    接收多窗口指令;
    响应于所述多窗口指令,显示第一窗口和第二窗口,并在所述第一窗口上显示第一提示符和所述第一提示符的状态指示,在所述第二窗口上显示第二提示符和所述第二提示符的状态指示,所述第一窗口显示第一应用的界面,所述第二窗口显示第二应用的界面,所述第一提示符和所述第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,所述第一提示符的状态指示和所述第二提示符的状态指示根据预设规则确定;
    存储主窗口显示的应用,所述主窗口显示的应用为所述第一应用或所述第二应用。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    接收对所述第一提示符或所述第二提示符的操作;
    响应于对所述第一提示符或所述第二提示符的操作,变更所述第一提示符或所述第二提示符的状态。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    在预设时间内未接收到对所述第一提示符的操作时,不显示所述第一提示符;
    在预设时间内未接收到对所述第二提示符的操作时,不显示所述第二提示符。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    接收到对触摸屏的操作;
    响应于对触摸屏的操作,在所述第一界面上重新显示所述第一提示符,在所述第二界面上重新显示所述第二提示符。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述预设规则为:
    确定所述第一应用和所述第二应用打开的先后顺序,将先打开的应用对应的窗口确定为主窗口,将后打开的应用对应的窗口确定为副窗口;或者,
    将后打开的应用对应的窗口确定为主窗口,将先打开的应用对应的窗口确定为副窗口。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    接收第三应用的临界资源使用权限获取申请,所述第三应用为所述第一应用或所述第二应用;
    若所述第三应用是已存储的所述主窗口显示的应用,则将所述临界资源使用权限分配给所述第三应用。
  7. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    接收用户输入给所述电子设备的指令;
    根据所述用户输入给所述电子设备的指令对主窗口进行相应的处理。
  8. 根据权利要求7所述的方法,其特征在于,所述用户输入给所述电子设备的指令包括用户操作所述电子设备的指令和语音输入指令。
  9. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    接收后台发送的第四应用显示指令;
    在主窗口显示所述第四应用。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    接收所述第四应用结束指令;
    在主窗口重新显示所述主窗口显示的应用。
  11. 一种电子设备,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述电子设备执行如下操作:
    接收多窗口指令;
    响应于所述多窗口指令,显示第一窗口和第二窗口,并在所述第一窗口上显示第一提示符和所述第一提示符的状态指示,在所述第二窗口上显示第二提示符和所述第二提示符的状态指示,所述第一窗口显示第一应用的界面,所述第二窗口显示第二应用的界面,所述第一提示符和所述第二提示符的状态为激活状态或未激活状态,处于激活状态的提示符所在的窗口为主窗口,处于未激活状态的提示符所在的窗口为副窗口,所述第一提示符的状态指示和所述第二提示符的状态指示根据预设规则确定;
    记录主窗口显示的应用,所述主窗口显示的应用为所述第一应用或所述第二应用。
  12. 根据权利要求11所述的电子设备其特征在于,所述处理器还用于:
    接收对所述第一提示符或所述第二提示符的操作;
    响应于对所述第一提示符或所述第二提示符的操作,变更所述第一提示符或所述第二提示符的状态。
  13. 根据权利要求11或12所述的电子设备,其特征在于,所述处理器还用于:
    在预设时间内未接收到对所述第一提示符的操作时,不显示所述第一提示符;
    在预设时间内未接收到对所述第二提示符的操作时,不显示所述第二提示符。
  14. 根据权利要求13所述的电子设备,其特征在于,所述处理器还用于:
    接收到对触摸屏的操作;
    响应于对触摸屏的操作,在所述第一界面上重新显示所述第一提示符,在所述第二界面上重新显示所述第二提示符。
  15. 根据权利要求11-14任一项所述的电子设备,其特征在于,所述预设规则为:
    确定所述第一应用和所述第二应用打开的先后顺序,将先打开的应用对应的窗口确定为主窗口,将后打开的应用对应的窗口确定为副窗口;或者,
    将后打开的应用对应的窗口确定为主窗口,将先打开的应用对应的窗口确定为副窗口。
  16. 根据权利要求11-15任一项所述的电子设备,其特征在于,所述处理器还用于:
    接收第三应用的临界资源使用权限获取申请,所述第三应用为所述第一应用或所述第二应用;
    若所述第三应用是已存储的所述主窗口显示的应用,则将所述临界资源使用权限分配给所述第三应用。
  17. 根据权利要求11-15任一项所述的电子设备,其特征在于,所述处理器还用于:
    接收用户输入给所述电子设备的指令;
    根据所述用户输入给所述电子设备的指令对主窗口进行相应的处理。
  18. 根据权利要求17所述的电子设备,其特征在于,所述用户输入给所述电子设备的 指令包括用户操作所述电子设备的指令和语音输入指令。
  19. 根据权利要求11-15任一项所述的电子设备,其特征在于,所述处理器还用于:
    接收后台发送的第四应用显示指令;
    在主窗口显示所述第四应用。
  20. 根据权利要求19所述的电子设备,其特征在于,所述处理器还用于:
    接收所述第四应用结束指令;
    在主窗口重新显示所述主窗口显示的应用。
  21. 一种可读存储介质,所述可读存储介质中存储有执行指令,其特征在于,当电子设备的至少一个处理器执行所述执行指令时,所述电子设备执行权利要求1-10任一项所述的屏幕显示方法。
  22. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求1-10任意一项所述的方法。
PCT/CN2020/127669 2019-11-29 2020-11-10 屏幕显示方法及电子设备 WO2021104000A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20892405.0A EP4053689A4 (en) 2019-11-29 2020-11-10 SCREEN DISPLAY METHOD AND ELECTRONIC DEVICE
US17/827,269 US20220291832A1 (en) 2019-11-29 2022-05-27 Screen Display Method and Electronic Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911206654.9 2019-11-29
CN201911206654.9A CN112882823A (zh) 2019-11-29 2019-11-29 屏幕显示方法及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/827,269 Continuation US20220291832A1 (en) 2019-11-29 2022-05-27 Screen Display Method and Electronic Device

Publications (1)

Publication Number Publication Date
WO2021104000A1 true WO2021104000A1 (zh) 2021-06-03

Family

ID=76039220

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/127669 WO2021104000A1 (zh) 2019-11-29 2020-11-10 屏幕显示方法及电子设备

Country Status (4)

Country Link
US (1) US20220291832A1 (zh)
EP (1) EP4053689A4 (zh)
CN (1) CN112882823A (zh)
WO (1) WO2021104000A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699312A (zh) * 2013-12-30 2014-04-02 中科创达软件股份有限公司 一种多应用前台运行实现方法、装置及电子设备
CN104571844A (zh) * 2013-10-28 2015-04-29 联想(北京)有限公司 一种信息处理方法及电子设备
CN106293341A (zh) * 2016-08-08 2017-01-04 乐视控股(北京)有限公司 一种应用程序的分屏显示方法及装置
CN110456951A (zh) * 2019-06-26 2019-11-15 华为技术有限公司 一种应用显示方法及电子设备

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6088515A (en) * 1995-11-13 2000-07-11 Citrix Systems Inc Method and apparatus for making a hypermedium interactive
US7010755B2 (en) * 2002-04-05 2006-03-07 Microsoft Corporation Virtual desktop manager
US7076616B2 (en) * 2003-03-24 2006-07-11 Sony Corporation Application pre-launch to reduce user interface latency
US9229474B2 (en) * 2010-10-01 2016-01-05 Z124 Window stack modification in response to orientation change
US7577918B2 (en) * 2005-07-15 2009-08-18 Microsoft Corporation Visual expression of a state of an application window
WO2008090902A1 (ja) * 2007-01-25 2008-07-31 Sharp Kabushiki Kaisha マルチウィンドウ管理装置及びプログラム、記憶媒体、並びに情報処理装置
JP4796017B2 (ja) * 2007-07-30 2011-10-19 京セラ株式会社 電子機器
KR101640460B1 (ko) * 2009-03-25 2016-07-18 삼성전자 주식회사 휴대 단말기의 분할 화면 운용 방법 및 이를 지원하는 휴대 단말기
CN102033776B (zh) * 2009-09-29 2016-08-17 联想(北京)有限公司 一种音频播放方法及一种计算设备
US8677284B2 (en) * 2009-11-04 2014-03-18 Alpine Electronics, Inc. Method and apparatus for controlling and displaying contents in a user interface
EP2354914A1 (en) * 2010-01-19 2011-08-10 LG Electronics Inc. Mobile terminal and control method thereof
US20120005602A1 (en) * 2010-07-02 2012-01-05 Nokia Corporation Methods and apparatuses for facilitating task switching
US10042546B2 (en) * 2011-01-07 2018-08-07 Qualcomm Incorporated Systems and methods to present multiple frames on a touch screen
US8904305B2 (en) * 2011-03-11 2014-12-02 Google Inc. Automatically hiding controls
KR20130054076A (ko) * 2011-11-16 2013-05-24 삼성전자주식회사 복수 개의 어플리케이션을 프리로딩하는 터치스크린을 가지는 장치 및 그 제어 방법
KR101417318B1 (ko) * 2012-08-17 2014-07-09 주식회사 팬택 멀티태스킹이 가능한 사용자 인터페이스 제공방법, 이동 단말기, 컴퓨터 판독 가능 매체
US10261650B2 (en) * 2013-03-12 2019-04-16 Oracle International Corporation Window grouping and management across applications and devices
US9336068B2 (en) * 2013-06-07 2016-05-10 Apple Inc. Throttling of application access to resources
KR102210999B1 (ko) * 2013-08-22 2021-02-03 삼성전자주식회사 디스플레이 장치의 애플리케이션 실행 방법 및 그 디스플레이 장치
CN103885676A (zh) * 2014-02-21 2014-06-25 联想(北京)有限公司 一种信息处理方法及电子设备
CN104978110B (zh) * 2015-07-27 2018-06-01 联想(北京)有限公司 显示处理方法和显示处理设备
CN106454506B (zh) * 2016-11-15 2019-05-07 四川长虹电器股份有限公司 智能电视多窗口环境下实现音频路由控制的方法
CN107368361B (zh) * 2017-06-26 2019-08-20 中广热点云科技有限公司 一种移动终端应用程序切换方法及系统
KR102386285B1 (ko) * 2017-09-08 2022-04-14 삼성전자주식회사 이어폰을 통한 어플리케이션별 오디오 출력 제어 방법 및 이를 구현한 전자 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571844A (zh) * 2013-10-28 2015-04-29 联想(北京)有限公司 一种信息处理方法及电子设备
CN103699312A (zh) * 2013-12-30 2014-04-02 中科创达软件股份有限公司 一种多应用前台运行实现方法、装置及电子设备
CN106293341A (zh) * 2016-08-08 2017-01-04 乐视控股(北京)有限公司 一种应用程序的分屏显示方法及装置
CN110456951A (zh) * 2019-06-26 2019-11-15 华为技术有限公司 一种应用显示方法及电子设备

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP4053689A1 (en) 2022-09-07
US20220291832A1 (en) 2022-09-15
EP4053689A4 (en) 2023-02-15
CN112882823A (zh) 2021-06-01

Similar Documents

Publication Publication Date Title
WO2021013158A1 (zh) 显示方法及相关装置
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
CN110114747B (zh) 一种通知处理方法及电子设备
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
CN111543042B (zh) 通知消息的处理方法及电子设备
WO2021000804A1 (zh) 锁定状态下的显示方法及装置
WO2022068483A1 (zh) 应用启动方法、装置和电子设备
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
WO2022037726A1 (zh) 分屏显示方法和电子设备
EP3958106A1 (en) Interface display method and electronic device
WO2021082815A1 (zh) 一种显示要素的显示方法和电子设备
WO2022160991A1 (zh) 权限控制方法和电子设备
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
CN114995715B (zh) 悬浮球的控制方法和相关装置
WO2022127130A1 (zh) 一种添加操作序列的方法、电子设备和系统
CN115016697A (zh) 投屏方法、计算机设备、可读存储介质和程序产品
CN113438366A (zh) 信息通知的交互方法、电子设备和存储介质
WO2022166435A1 (zh) 分享图片的方法和电子设备
WO2021104000A1 (zh) 屏幕显示方法及电子设备
CN116048236B (zh) 通信方法及相关装置
WO2024109573A1 (zh) 悬浮窗显示的方法和电子设备
WO2024109481A1 (zh) 窗口控制方法及电子设备
WO2022042774A1 (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: 20892405

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020892405

Country of ref document: EP

Effective date: 20220531

NENP Non-entry into the national phase

Ref country code: DE