WO2021037034A1 - Method for switching state of application, and terminal device - Google Patents

Method for switching state of application, and terminal device Download PDF

Info

Publication number
WO2021037034A1
WO2021037034A1 PCT/CN2020/111198 CN2020111198W WO2021037034A1 WO 2021037034 A1 WO2021037034 A1 WO 2021037034A1 CN 2020111198 W CN2020111198 W CN 2020111198W WO 2021037034 A1 WO2021037034 A1 WO 2021037034A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
screen
foreground
state
terminal device
Prior art date
Application number
PCT/CN2020/111198
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021037034A1 publication Critical patent/WO2021037034A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of terminal technology, and in particular to an application state switching method and terminal equipment.
  • the screen can display the interface of the application and perform related functions of the application.
  • the screen cannot display the application interface, and some functions of the application are restricted.
  • the screen of the terminal device will display the interface of the video application.
  • the video application will handle the user's click event, and can play videos, etc.
  • the video application is switched to the background state, the screen of the terminal device will not display the interface of the video application.
  • the video application will not process the user's click event, and will not continue to play the video.
  • the process of switching application states is complicated and not convenient.
  • the user first needs to open the application switching interface.
  • the application switching interface includes a window corresponding to the application in the background state.
  • the user if the user wants to switch application 1 to the foreground, the user needs to slide the application window in the application switching interface to the right, find the window of application 1, and then click the window corresponding to application 1 to switch application 1 to The foreground state. Therefore, how to simplify the application state switching process and improve the convenience of application state switching is a problem to be solved urgently at present.
  • the embodiments of the present application provide an application state switching method and terminal device, which are beneficial to improve the convenience of application state switching.
  • an embodiment of the present application provides an application state switching method applied to a terminal device.
  • the terminal device includes a first screen and a second screen.
  • the method includes: receiving a user's first touch operation on the second screen; According to the first touch operation, the state of the first application is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen. It can be seen that by implementing the method described in the first aspect, the user can switch the first application to the foreground by performing a touch operation on the second screen, which improves the convenience of application state switching.
  • the terminal device has a folding screen.
  • the folding screen includes a first screen and a second screen.
  • the specific implementation manner for receiving the first touch operation of the user on the second screen is as follows: When the folding angle between the screens reaches the preset angle, receiving the user's first touch operation on the second screen. Based on this embodiment, when the folding angle between the first screen and the second screen reaches the preset angle, a touch operation on the second screen of the folding screen can conveniently switch the front and back applications.
  • the first application is a quasi-foreground commonly used application preset by the user, the non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state, and the same application has more functions in the quasi-foreground state than in the background state.
  • the first application is the frequently used background application preset by the user, and the non-foreground state of the frequently used background application is the background state; or the first application is the non-foreground state The first application in the application to switch to the non-foreground state.
  • the first application is a frequently used application in the foreground or a frequently used background application; the second screen includes one or more display areas, and the display areas in the one or more display areas are compared with the preset commonly used applications.
  • the preset common applications include quasi-front-end common applications and/or back-end common applications.
  • the first application is specifically a common application corresponding to the display area touched by the touch operation.
  • the interface or icon or name of the frequently-used applications in the front-end is displayed in the display area corresponding to the frequently-used applications in the front-end, and/or the icons of the frequently-used applications in the background are displayed in the display area corresponding to the frequently-used applications in the background Or name.
  • the interface or icon or name of the frequently-used applications in the front-end is displayed in the display area corresponding to the frequently-used applications in the front-end, and/or the icons of the frequently-used applications in the background are displayed in the display area corresponding to the frequently-used applications in the background
  • the specific implementation of the name is: when it is detected that the second screen is facing upwards, the interface or icon or name of the frequently used application in the prospective foreground is displayed in the display area corresponding to the frequently used application in the prospective foreground, and/or the corresponding frequently used application in the background
  • the icons or names of frequently used background applications are displayed in the display area.
  • the terminal device may also perform the following steps: receive the user's second touch operation on the target area in one or more display areas; respond to the second touch operation, output an application list, and the application list Including multiple applications; receiving the user's selection operation on the application in the application list; setting the application selected by the selection operation as the common application corresponding to the target area.
  • the application corresponding to the display area can be conveniently set.
  • the state of the first application in response to the first touch operation, is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen.
  • the specific implementation manner is: respond to the first Touch operation to determine whether the first application is started; if the first application is started, and the state of the first application is not the foreground state, the state of the first application is switched from the non-foreground state to the foreground state and displayed on the first screen
  • the interface of the first application the terminal device can also start the first application when the first application is not started, and display the interface of the first application on the first screen.
  • a terminal device which can execute the foregoing first aspect or the method in any one of the optional implementation manners of the first aspect.
  • This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more units corresponding to the above-mentioned functions.
  • the unit can be software and/or hardware.
  • a terminal device in a third aspect, includes a processor and a memory connected to the processor; wherein the memory includes computer-readable instructions; the processor is used to execute the computer-readable instructions in the memory, Thereby, the terminal device executes the above-mentioned first aspect or the solution in any one of the optional implementation manners of the first aspect.
  • the terminal device executes the above-mentioned first aspect or the solution in any one of the optional implementation manners of the first aspect.
  • a computer program product which when running on a computer, causes the computer to execute the method in the first aspect or any one of the optional implementations of the first aspect.
  • a chip product which implements the first aspect or the method in any one of the optional implementations of the first aspect.
  • a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the first aspect or any one of the first aspects.
  • the method in an alternative embodiment.
  • FIG. 1 is a schematic diagram of an existing flow of application state switching
  • FIG. 2 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • Fig. 3 is a schematic diagram of a software architecture of a terminal device provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of an application state switching method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a folding screen provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another folding screen provided by an embodiment of the present application.
  • FIGS. 7 to 10 are schematic diagrams of application state switching provided by embodiments of the present application.
  • FIG. 11 is a schematic diagram of a display area of a second screen provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of an application corresponding to setting a display area provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of releasing the corresponding relationship between a display area and an application provided by an embodiment of the present application
  • FIG. 14 is a schematic diagram of releasing the corresponding relationship between the display area and the application provided by an embodiment of the present application.
  • 15 is a schematic diagram of the position of the mobile display area provided by an embodiment of the present application.
  • FIG. 16 is a schematic diagram of adding a display area provided by an embodiment of the present application.
  • FIG. 17 is a schematic diagram of deleting a display area provided by an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a first screen and a second screen provided by an embodiment of the present application.
  • FIG. 20 is a schematic diagram of application state switching provided by an embodiment of the present application.
  • embodiments of the present application provide an application state switching method and terminal device.
  • FIG. 2 shows a schematic diagram of the structure of the terminal device 200.
  • the terminal device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, antenna 1, antenna 2 , Mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, earphone jack 270D, sensor module 280, buttons 290, motor 291, indicator 292, camera 293, display 294, and Subscriber identification module (subscriber identification module, SIM) card interface 295, etc.
  • SIM Subscriber identification module
  • the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, and ambient light Sensor 280L, bone conduction sensor 280M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 200.
  • the terminal device 200 may include more or fewer components than shown, 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 210 may include one or more processing units.
  • the processor 210 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
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 210 is reduced, and the efficiency of the system is improved.
  • the processor 210 may include one or more interfaces.
  • Interfaces can include integrated circuit (I2C) interfaces, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous transmitters receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 210 may include multiple sets of I2C buses.
  • the processor 210 may be coupled to the touch sensor 280K, charger, flash, camera 293, etc., respectively through different I2C bus interfaces.
  • the processor 210 may couple the touch sensor 280K through an I2C interface, so that the processor 210 and the touch sensor 280K communicate through the I2C bus interface to implement the touch function of the terminal device 200.
  • the I2S interface can be used for audio communication.
  • the processor 210 may include multiple sets of I2S buses.
  • the processor 210 may be coupled with the audio module 270 through an I2S bus to implement communication between the processor 210 and the audio module 270.
  • the audio module 270 may transmit audio signals to the wireless communication module 260 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 270 and the wireless communication module 260 may be coupled through a PCM bus interface.
  • the audio module 270 may also transmit audio signals to the wireless communication module 260 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 210 and the wireless communication module 260.
  • the processor 210 communicates with the Bluetooth module in the wireless communication module 260 through the UART interface to realize the Bluetooth function.
  • the audio module 270 may transmit audio signals to the wireless communication module 260 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 210 with the display screen 294, the camera 293 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 210 and the camera 293 communicate through a CSI interface to implement the shooting function of the terminal device 200.
  • the processor 210 and the display screen 294 communicate through a DSI interface to realize the display function of the terminal device 200.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 210 with the camera 293, the display screen 294, the wireless communication module 260, the audio module 270, the sensor module 280, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 230 is an interface that complies with the USB standard specifications, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 230 can be used to connect a charger to charge the terminal device 200, and can also be used to transfer data between the terminal device 200 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other terminal devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the terminal device 200.
  • the terminal device 200 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 240 may receive the charging input of the wired charger through the USB interface 230.
  • the charging management module 240 may receive the wireless charging input through the wireless charging coil of the terminal device 200. While the charging management module 240 charges the battery 242, it can also supply power to the terminal device through the power management module 241.
  • the power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210.
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 260.
  • the power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 241 may also be provided in the processor 210.
  • the power management module 241 and the charging management module 240 may also be provided in the same device.
  • the wireless communication function of the terminal device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, 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 terminal device 200 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 250 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 200.
  • the mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 250 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 250 may be provided in the processor 210.
  • at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through the display screen 294.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 210 and be provided in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide applications on the terminal device 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210.
  • the wireless communication module 260 may also receive a signal to be sent from the processor 210, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the terminal device 200 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the terminal device 200 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal device 200 implements a display function through a GPU, a display screen 294, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos, and the like.
  • the display screen 294 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 terminal device 200 may include one or N display screens 294, and N is a positive integer greater than one.
  • the display screen 294 of the terminal device includes a first screen and a second screen.
  • the first screen can be the main screen, and the second screen can be the secondary screen.
  • the terminal device may include a folding screen, and the folding screen includes a first screen and a second screen.
  • the folding angle between the first screen and the second screen reaches 180°, the first screen and the second screen are in a completely back-to-back form.
  • the first screen is used to display the interface of the application in the foreground state.
  • the first screen and the second screen may not belong to the folding screen.
  • the terminal device includes a display screen that is not foldable.
  • the display screen is logically divided to obtain two logically divided screens, namely the first screen and the second screen.
  • the terminal device 200 can implement a shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.
  • the ISP is used to process the data fed back by the camera 293. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 293.
  • the camera 293 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal device 200 may include 1 or N cameras 293, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 200 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 200 may support one or more video codecs. In this way, the terminal device 200 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the terminal device 200 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 200.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 221 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 221 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 200.
  • the internal memory 221 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 210 executes various functional applications and data processing of the terminal device 200 by running instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
  • the terminal device 200 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone interface 270D, and an application processor. For example, music playback, recording, etc.
  • the audio module 270 is used for converting digital audio information into an analog audio signal for output, and also for converting an analog audio input into a digital audio signal.
  • the audio module 270 can also be used to encode and decode audio signals.
  • the audio module 270 may be provided in the processor 210, or part of the functional modules of the audio module 270 may be provided in the processor 210.
  • the speaker 270A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 200 can listen to music through the speaker 270A, or listen to a hands-free call.
  • the receiver 270B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal device 200 answers a call or voice message, it can receive the voice by bringing the receiver 270B close to the human ear.
  • Microphone 270C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 270C through the human mouth, and input the sound signal into the microphone 270C.
  • the terminal device 200 may be provided with at least one microphone 270C.
  • the terminal device 200 may be provided with two microphones 270C, which can implement noise reduction functions in addition to collecting sound signals.
  • the terminal device 200 may also be provided with three, four or more microphones 270C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 270D is used to connect wired earphones.
  • the earphone interface 270D may be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 280A may be provided on the display screen 294.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 280A, the capacitance between the electrodes changes. The terminal device 200 determines the strength of the pressure according to the change in capacitance. When a touch operation acts on the display screen 294, the terminal device 200 detects the intensity of the touch operation according to the pressure sensor 280A.
  • the terminal device 200 may also calculate the touched position based on the detection signal of the pressure sensor 280A.
  • 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 of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 280B may be used to determine the movement posture of the terminal device 200.
  • the angular velocity of the terminal device 200 around three axes ie, x, y, and z axes
  • the gyro sensor 280B can be used for image stabilization.
  • the gyroscope sensor 280B detects the shaking angle of the terminal device 200, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens can counteract the shaking of the terminal device 200 through a reverse movement to achieve anti-shake.
  • the gyroscope sensor 280B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 280C is used to measure air pressure. In some embodiments, the terminal device 200 calculates the altitude based on the air pressure value measured by the air pressure sensor 280C to assist positioning and navigation.
  • the magnetic sensor 280D includes a Hall sensor.
  • the terminal device 200 may use the magnetic sensor 280D to detect the opening and closing of the flip holster.
  • the terminal device 200 when the terminal device 200 is a flip machine, the terminal device 200 can detect the opening and closing of the flip according to the magnetic sensor 280D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 280E can detect the magnitude of the acceleration of the terminal device 200 in various directions (generally three axes). When the terminal device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, applied to horizontal and vertical screen switching, pedometer and other applications.
  • the terminal device 200 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 200 may use the distance sensor 280F to measure the distance to achieve fast focusing.
  • the proximity light sensor 280G 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 terminal device 200 emits infrared light to the outside through the light emitting diode.
  • the terminal device 200 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 terminal device 200. When insufficient reflected light is detected, the terminal device 200 may determine that there is no object near the terminal device 200.
  • the terminal device 200 can use the proximity light sensor 280G to detect that the user holds the terminal device 200 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 280G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 280L is used to sense the brightness of the ambient light.
  • the terminal device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived brightness of the ambient light.
  • the ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the terminal device 200 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 280H is used to collect fingerprints.
  • the terminal device 200 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 280J is used to detect temperature.
  • the terminal device 200 uses the temperature detected by the temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280J exceeds a threshold, the terminal device 200 performs a reduction in the performance of the processor located near the temperature sensor 280J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 200 when the temperature is lower than another threshold, the terminal device 200 heats the battery 242 to avoid abnormal shutdown of the terminal device 200 due to low temperature.
  • the terminal device 200 boosts the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 280K is also called “touch device”.
  • the touch sensor 280K may be disposed on the display screen 294, and a touch screen composed of the touch sensor 280K and the display screen 294 is also called a “touch screen”.
  • the touch sensor 280K 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 294.
  • the touch sensor 280K may also be disposed on the surface of the terminal device 200, which is different from the position of the display screen 294.
  • the bone conduction sensor 280M can acquire vibration signals.
  • the bone conduction sensor 280M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 280M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 280M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 270 can parse out the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 280M to 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 280M, and realize the heart rate detection function.
  • the button 290 includes a power-on button, a volume button, and so on.
  • the button 290 may be a mechanical button. It can also be a touch button.
  • the terminal device 200 may receive key input, and generate key signal input related to user settings and function control of the terminal device 200.
  • the motor 291 can generate vibration prompts.
  • the motor 291 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 294, the motor 291 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 295 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 295 or pulled out from the SIM card interface 295 to achieve contact and separation with the terminal device 200.
  • the terminal device 200 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 295 may support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 295 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 295 can also be compatible with different types of SIM cards.
  • the SIM card interface 295 may also be compatible with external memory cards.
  • the terminal device 200 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the terminal device 200 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 200 and cannot be separated from the terminal device 200.
  • the software system of the terminal device 200 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal device 200 by way of example.
  • FIG. 3 is a software structure block diagram of a terminal device 200 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages. As shown in Figure 3, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 3, 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, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include 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 terminal device 200. 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 disappear automatically 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.
  • prompt text information in the status bar sound a prompt tone, terminal equipment vibration, flashing indicator light, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes the touch operation into the original input event (including touch coordinates, time stamp of the touch operation, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 293 captures still images or videos.
  • FIG. 4 is a schematic flowchart of an application state switching method provided by an embodiment of the present application.
  • the application state switching method includes the following steps 401 and 402, where:
  • the terminal device receives a user's first touch operation on the second screen.
  • the terminal device includes a first screen and a second screen. There are two ways for the first screen and the second screen.
  • the terminal device has a foldable screen, which is a display screen that is foldable.
  • the folding screen is a whole screen, but the folding screen can be divided into two areas, one area is the first screen, and the other area is the second screen.
  • the left half of the folding screen is the first screen, and the right half is the second screen.
  • the first screen and the second screen can be folded.
  • FIG. 6 when the second screen is rotated 180° in a direction away from the first screen, the first screen and the second screen overlap in a back-to-back manner.
  • the first screen can be the main screen, and the second screen can be the secondary screen.
  • the first screen can be used to display the interface of the application in the foreground (ie, the foreground application), and the first screen can receive the user’s request to the foreground application. Click on the interface.
  • the preset angle can be greater than or equal to 90° and less than or equal to 180°.
  • the terminal device receives the user’s request for the second screen.
  • the first touch operation when the first screen and the second screen are folding screens, when the folding angle between the first screen and the second screen of the terminal device reaches a preset angle, the terminal device receives the user’s request for the second screen. The first touch operation.
  • the terminal device can detect the user's first touch operation on the second screen. If the first touch operation is detected, the terminal device switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen.
  • the first touch operation may be a click operation, a double-tap operation, a pressing operation, or a sliding operation.
  • the first touch operation is the double-click operation for example. For example, when the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen.
  • the terminal device switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen.
  • the user can perform a double-click operation on the preset position of the second screen.
  • the user usually uses the right hand to hold the mobile phone and can set the preset position of the upper right corner of the second screen, so that when the user is facing the first screen, the user can conveniently double-tap the second screen with his right finger.
  • the preset position may also be the middle position of the second screen or other positions.
  • Method 2 The first screen and the second screen are not folding screens.
  • the terminal device includes a display screen that is not foldable.
  • the display screen is logically divided to obtain two logically divided screens, namely the first screen and the second screen.
  • the terminal device includes a display screen, and the display screen is logically divided to obtain the first screen and the second screen.
  • the first screen is the main screen, and the second screen can be the sub-screen.
  • the first screen is used to display the interface of the foreground application
  • the second screen is used to receive the user's first touch operation for application switching.
  • the terminal device switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen.
  • the second screen may be below the first screen, or above the first screen, or to the left of the first screen, or to the right of the first screen, which is not limited in this embodiment of the application.
  • Figure 19 takes the second screen below the first screen as an example.
  • the first application is an application that has been started and is in a non-foreground state.
  • the non-foreground state can be a background state or a quasi-foreground state.
  • the same application has more functions in the quasi-foreground state than in the background state, and less than that in the foreground state.
  • the status of the alignment foreground please refer to the corresponding description below, which will not be repeated here.
  • the user can switch the first application to the foreground by performing a touch operation on the second screen. Improve the convenience of application state switching.
  • the first application is an application that has been started by any terminal device and is not in the foreground.
  • the first application is a quasi-foreground commonly used application preset by the user.
  • the non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state.
  • the same application has more functions in the quasi-foreground state than in the background state, and less For the function in the foreground. That is to say, if the first application is a quasi-foreground commonly used application preset by the user, the terminal device responds to the first touch operation to switch the state of the first application from the quasi-foreground state to the foreground state, and displays the first application on the first screen.
  • An application interface is to the first touch operation to switch the state of the first application from the quasi-foreground state to the foreground state.
  • the user can pre-set one or more quasi-front desk frequently used applications.
  • the user can pre-select and set one or more applications as frequently used applications in the foreground.
  • the user can select Application 1 and Application 2 and set them as frequently used applications in the foreground.
  • the frequently used applications in the prospective foreground may also be automatically set by the terminal device according to the user's usage of each application.
  • the first application may be any one of one or more pre-set frequently used applications in the foreground.
  • the frequently used applications of the prospective foreground are in the foreground state
  • the frequently used applications of the prospective foreground can be switched to the prospective foreground state.
  • the frequently used applications in the near foreground are in the near foreground state
  • the frequently used applications in the near foreground can be switched to the foreground state.
  • the functions of the same application in the quasi-foreground state are more than those in the background state and less than those in the foreground state.
  • the functions of the application in the foreground, quasi-foreground, and background states are shown in Table 1 below.
  • the application is visible in the foreground state, that is, the terminal device can output the display interface of the application.
  • it can handle click events, can access the network, can monitor through sensors, can provide location services, can take pictures and record, can play audio and video, and can keep alive. Keep alive refers to keeping the application alive.
  • the application is in the quasi-foreground state, the user can set whether to display the interface of the quasi-foreground application.
  • the application When the application is in the quasi-foreground state, it cannot handle click events, can access the network, can monitor through sensors, can provide location services, can take pictures and record, can play audio and video, and can keep alive.
  • the interface of the application When the application is in the background state, the interface of the application cannot be output, and the click event cannot be processed. Access to the network, monitoring of sensor services, location services, photo recording, audio and video playback, and keep-alive functions may be restricted.
  • the user presets a quasi-foreground commonly used application, and the quasi-frontal commonly used application is application 1.
  • Application 2 is in the foreground, and the interface of Application 2 is displayed on the first screen.
  • Application 1 is in the quasi-foreground state, and the interface of Application 1 is displayed on the second screen.
  • the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen.
  • the terminal device detects the double-click operation, it switches the state of application 1 from the quasi-foreground state to the foreground state, and displays the interface of application 1 on the first screen. Switch the state of application 2 from the foreground state to the background state.
  • the user can perform a double-click operation on the preset position of the second screen.
  • the user usually uses the right hand to hold the mobile phone and can set the preset position of the upper right corner of the second screen, so that when the user is facing the first screen, the user can conveniently double-tap the second screen with his right finger.
  • the preset position may also be the middle position of the second screen or other positions.
  • FIG. 7 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the quasi-foreground frequently used applications are switched to the foreground state, there is no need to allocate related resources to re-align the interface of the front-end frequently used applications for layout and drawing, and the interface of the quasi-foreground frequently used applications displayed on the second screen can be directly displayed on the first screen.
  • the frequently used applications in the foreground can be switched to the foreground state more quickly.
  • the first application is a commonly used background application preset by the user, and the non-foreground state of the commonly used background application is a background state.
  • the terminal device responds to the first touch operation to switch the state of the first application from the background state to the foreground state, and displays the first application on the first screen Interface.
  • the user can preset one or more commonly used background applications.
  • the user can pre-select and set one or more applications as commonly used background applications.
  • the user can select Application 1 and Application 2 as frequently used applications in the background.
  • common background applications can also be automatically set by the terminal device according to the user's request for use of each application.
  • the first application may be any one of one or more commonly used background applications set in advance. When the frequently used background applications are in the foreground, you can switch the frequently used background applications to the background state. When the frequently used background applications are in the background state, the frequently used background applications can be switched to the foreground state.
  • the user presets a commonly used background application, and the commonly used background application is application 1.
  • Application 2 is in the foreground, and the interface of Application 2 is displayed on the first screen.
  • Application 1 is in the background state, and the interface of Application 1 will not be displayed on the second screen at this time.
  • the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen.
  • the terminal device detects the double-click operation, it switches the state of Application 1 from the background state to the foreground state, and displays the interface of Application 1 on the first screen. Switch the state of application 2 from the foreground state to the background state.
  • FIG. 8 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the first application is the first application that is switched to the non-foreground state among the applications in the non-foreground state.
  • the application 1 is switched to the background state at the earliest, the time when the application 2 is switched to the background state is later than the application 1, and the time when the application 3 is switched to the background state is later than the application 2.
  • the terminal device detects the double-click operation, it switches the state of application 4 from the foreground state to the background state, and switches the state of application 1 from the background state to the foreground state, and displays the interface of application 1 on the first screen.
  • the terminal device will switch the state of application 1 from the foreground state to the background state, and switch the state of application 2 from the background state to the foreground state, and display the status of application 2 on the first screen. interface. And so on, until the application that the user wants is switched to the foreground.
  • the user can perform a double-click operation on the preset position of the second screen.
  • the preset position For the description of the preset position, please refer to the above related description, which will not be repeated here.
  • the user can perform multiple double-click operations to continuously switch the foreground application.
  • the desired application is switched to the foreground, the user can stop the double-click operation on the second screen.
  • FIG. 9 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the second screen includes one or more display areas, and the display areas in the one or more display areas correspond one-to-one with preset commonly used applications, and the preset commonly used applications include quasi-front-end frequently-used applications and/or back-end applications Common applications, the first application is specifically a common application corresponding to the display area touched by the touch operation.
  • the second screen includes 4 display areas.
  • Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground.
  • Display area 2 corresponds to application 2, and application 2 is a commonly used background application.
  • Display area 3 corresponds to application 3, which is a commonly used background application.
  • Display area 4 corresponds to application 4, which is a commonly used background application.
  • the preset position can be the upper left corner, upper right corner, lower left corner, lower right corner, or center position of the display area 1, or other positions.
  • the terminal device when the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the display area 2, the terminal device will switch the application 2 from the background state to the foreground state and display it on the first screen. The interface of application 2 is displayed.
  • the terminal device When the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the display area 3, the terminal device will switch the application 3 from the background state to the foreground state, and display the application 3 on the first screen Interface.
  • the terminal device switches the application 4 from the background state to the foreground state, and displays the application 4 on the first screen Interface.
  • the second screen includes 4 display areas.
  • Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground.
  • Display area 2 corresponds to application 2, and application 2 is a commonly used background application.
  • Display area 3 corresponds to application 3, which is a commonly used background application.
  • Display area 4 corresponds to application 4, which is a commonly used background application.
  • the preset position may be the upper left corner, the upper right corner, the lower left corner, the lower right corner, or the center position of the display area 1, or other positions.
  • the switching principles of application 2, application 3 and application 4 are the same, and will not be repeated here.
  • the applications corresponding to each display area in the second screen may also be commonly used applications in the prospective foreground.
  • the second screen includes 4 display areas.
  • Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground.
  • Display area 2 corresponds to application 2, and application 2 is a frequently used application in the foreground.
  • Display area 3 corresponds to application 3, and application 3 is a frequently used application in the foreground.
  • the display area 4 corresponds to the application 4, which is a frequently used application in the foreground.
  • the applications corresponding to each display area in the second screen may also be common background applications.
  • the second screen includes 4 display areas.
  • Display area 1 corresponds to application 1, and application 1 is a commonly used background application.
  • Display area 2 corresponds to application 2, and application 2 is a commonly used background application.
  • Display area 3 corresponds to application 3, which is a commonly used background application.
  • Display area 4 corresponds to application 4, which is a commonly used background application.
  • the interface or icon or name of the frequently-used applications in the front-end is displayed in the display area corresponding to the frequently-used applications in the front-end, and/or the icons of the frequently-used applications in the background are displayed in the display area corresponding to the frequently-used applications in the background Or name.
  • the second screen includes 4 display areas.
  • Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground.
  • Display area 2 corresponds to application 2, and application 2 is a commonly used background application.
  • Display area 3 corresponds to application 3, which is a commonly used background application.
  • Display area 4 corresponds to application 4, which is a commonly used background application.
  • FIG. 11 takes the interface of application 1 displayed in the display area 1 as an example.
  • the interface of the application 1 is displayed in the display area 1.
  • the icon or name of the application 1 is displayed in the display area 1.
  • the color of the icon or name of the application 1 displayed in the display area 1 may be gray.
  • no information may be displayed in the display area 1.
  • the icon or name of the application 1 is displayed in the display area 1.
  • the color of the icon or name of the application 1 displayed in the display area 1 is colored.
  • the color of the icon or name of application 1 displayed in display area 1 is gray.
  • no information may be displayed in the display area 1.
  • the display area 2 can display the icon or name of the application 2.
  • FIG. 11 takes the display of the icon and name of application 2 in the display area 2 as an example.
  • the color of the icon or name of the application 2 displayed in the display area 2 is colored.
  • the color of the icon or name of the application 2 displayed in the display area 2 is gray.
  • no information may be displayed in the display area 2.
  • the display principle of the display area 3 and the display area 4 is the same as that of the display area 2, and will not be repeated here.
  • the first screen and the second screen are screens included in the folding screen as an example. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the user may perform a first touch operation on the application interface or icon or name in the display area to switch the state of the corresponding application.
  • the first screen and the second screen are screens included in the folding screen
  • the information of the frequently used applications of the prospective foreground is displayed in the display area corresponding to the frequently used applications of the prospective foreground.
  • the interface or icon or name, and/or, the icon or name of the frequently used background application is displayed in the display area corresponding to the commonly used background application.
  • a sensor can be used to detect whether the second screen faces upward.
  • face recognition can be performed through a camera configured on the second screen, and if a human face is recognized, it is determined that the second screen faces upward.
  • the second screen if the second screen is facing down, it proves that the user does not want to see the content in the second screen, and therefore, it is not necessary to display any content in each display area.
  • the interface or icon or name of the frequently used applications in the foreground will be displayed in the display area corresponding to the frequently used applications in the foreground, and/or the frequently used applications in the background will be displayed in the display area corresponding to the frequently used applications in the background Icon or name.
  • a specific implementation manner for the terminal device to set the application corresponding to the display area may be: the terminal device receives a user's second touch operation on a target area in one or more display areas of the second screen; the terminal; In response to the second touch operation, the device outputs an application list, which includes multiple applications; the terminal device receives the user's selection operation of the application in the application list; the terminal device sets the application selected by the selection operation as the common application corresponding to the target area .
  • the second touch operation may be a click operation, a double-tap operation, or a sliding operation.
  • the target area may be any one of the one or more display areas of the second screen.
  • the second screen includes 4 display areas.
  • the application addition symbol can be displayed in the display area.
  • the terminal device receives a user's click operation to add a symbol to an application in the display area 1, it outputs an application list.
  • the application list includes multiple applications.
  • the application list includes all applications installed on the terminal device, or includes applications installed on the terminal device that do not correspond to any display area.
  • the application list can also be sorted according to the user's usage time or frequency. Applications that have been used for a long time or are used frequently can be ranked in the forefront. This makes it easy for users to quickly select frequently used applications.
  • the application list includes application 1 to application 5.
  • the terminal device After the user selects application 1, the terminal device sets application 1 as the application corresponding to display area 1.
  • the first screen and the second screen are screens included in the folding screen as an example.
  • the principle is similar, which will not be repeated here.
  • the terminal device After detecting the pressing operation, the terminal device outputs the application list.
  • the application list includes application 1 to application 5. After the user selects application 2, the terminal device first releases the corresponding relationship between display area 1 and application 1, and then sets display area 1 to correspond to application 2.
  • the terminal device may also set the application corresponding to each display area in other ways, which is not limited in the embodiment of the present application.
  • the user can also release the corresponding relationship between the display area and the application in the following two ways.
  • Method 1 The terminal device receives the user's long-press operation on the application interface or icon or name displayed in the target area.
  • the terminal device displays a delete button in the target area. After the terminal device detects that the user clicks the delete button, the terminal device cancels the correspondence between the target area and the currently corresponding application.
  • the display area 1 and the application 1 have a corresponding relationship, and the user can perform a long press operation on the interface of the application in the display area 1.
  • the terminal device can display the delete button in the display area 1.
  • the terminal device detects that the user clicks the delete button, the terminal device cancels the corresponding relationship between the display area 1 and the application 1.
  • FIG. 13 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • Manner 2 The terminal device receives the user's drag operation on the application interface or icon or name displayed in the target area. After the terminal device detects that the user drags the application interface or icon or name displayed in the target area to the edge of the second screen, the terminal device releases the corresponding relationship between the target area and the currently corresponding application.
  • the display area 1 and the application 1 have a corresponding relationship, and the user can drag the interface of the application 1 in the display area 1.
  • the terminal device detects that the user drags the interface of the application 1 to the upper edge of the second screen, the terminal device releases the corresponding relationship between the display area 1 and the application 1.
  • FIG. 14 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the terminal device may also release the corresponding relationship between the display area and the application in other ways, which is not limited in the embodiment of the present application.
  • each display area may be fixed, or the display area may be movable.
  • the user can perform a drag operation on the display area 1.
  • the terminal device detects that the user drags the display area 1 and the display area 2 to overlap
  • the terminal device exchanges the position of the display area 1 and the position of the display area 2.
  • the user can also drag the application 1 icon in the display area 1.
  • the terminal device detects that the user drags the icon of the application 1 in the display area 1 and overlaps the icon of the application 2 in the display area 2
  • the terminal device sets the display area 1 to correspond to the application 2, and the display area 2 to correspond to the application 1, that is, two interactions
  • FIG. 15 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the number of display areas in the second screen may be fixed.
  • the display area cannot be deleted or added.
  • the user may set a corresponding common application for each display area, or the user may set the corresponding common application for only part of the display area.
  • the number of display areas in the second screen is fixed at four.
  • display area 1 corresponds to application 1
  • display area 2 corresponds to application 2
  • display area 3 corresponds to application 3
  • display area 4 corresponds to application 4.
  • display area 1 corresponds to application 1
  • display area 2 corresponds to application 2
  • display area 3 corresponds to application 3
  • display area 4 is not provided with a corresponding application.
  • the number of display areas in the second screen may be non-fixed. You can add or delete the display area.
  • the second screen currently has only 3 display areas.
  • the user can click on the area of the second screen to add symbols.
  • the terminal device detects that the user clicks on the area to add a symbol, the terminal device creates a new display area.
  • the terminal device creates a new display area 4.
  • the number of display areas on the second screen cannot exceed a preset number.
  • the second screen can only include 4 display areas at most. Then, after the terminal device creates the display area 4, the terminal device no longer displays the area adding symbols, and the terminal device no longer continues to create the display area.
  • FIG. 16 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the second screen currently has 4 display areas. After the terminal device detects that the user drags the display area 4 to the edge of the second screen, the terminal device can delete the display area 4. The other display areas are the same, so I won’t repeat them here.
  • FIG. 17 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
  • the terminal device responds to the first touch operation, switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen.
  • the specific implementation manner is: response The first touch operation determines whether the first application is started; if the first application is started, and the state of the first application is not the foreground state, the state of the first application is switched from the non-foreground state to the foreground state, and the first application The screen displays the interface of the first application.
  • the first application is started, and the interface of the first application is displayed on the first screen.
  • the second screen includes 4 display areas.
  • Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground.
  • Display area 2 corresponds to application 2, and application 2 is a commonly used background application.
  • Display area 3 corresponds to application 3, which is a commonly used background application.
  • Display area 4 corresponds to application 4, which is a commonly used background application.
  • the display area 1 displays the interface of the application 1
  • the display area 2 displays the icon of the application 2
  • the display area 3 displays the icon of the application 3
  • the display area 4 displays the icon of the application 4.
  • the terminal device determines whether the application 2 has been started, and whether the state of the application 2 is the background state. If yes, switch Application 2 from the background state to the foreground state, and display the interface of Application 2 on the first screen. If application 2 is not started, application 2 is started, and the interface of application 2 is displayed on the first screen.
  • the application when the user switches the application to the foreground, if the application is not started, the application can also be started, and the application can be displayed in the foreground.
  • the embodiment of the present invention may divide the device into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present invention is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 18 shows a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 1800 shown in FIG. 18 may be used to perform operations performed by the terminal device in the foregoing method embodiment.
  • the terminal device 1800 shown in FIG. 18 may include a receiving unit 1801 and a switching unit 1802. among them:
  • the receiving unit 1801 is used to receive the user's first touch operation on the second screen; the switching unit 1802 is used to respond to the first touch operation to switch the state of the first application from the non-foreground state to the foreground state, and to switch to the foreground state on the first screen
  • the interface of the first application is displayed.
  • the terminal device has a folding screen
  • the folding screen includes a first screen and a second screen
  • the manner in which the receiving unit 1801 receives the user's first touch operation on the second screen is specifically as follows: When the folding angle between the second screens reaches the preset angle, receiving the user's first touch operation on the second screen.
  • the first application is a quasi-foreground commonly used application preset by the user, and the non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state.
  • the same application has more functions in the quasi-foreground state than in the background state The function is less than the function in the foreground state; or, the first application is a common background application preset by the user, and the non-foreground state of the common background application is the background state; or the first application is an application that is not in the foreground state The first application to switch to a non-foreground state.
  • the first application is a frequently used application in the foreground or a frequently used background application;
  • the second screen includes one or more display areas, and the display areas in the one or more display areas and preset common applications
  • the preset common applications include quasi-front-end common applications and/or back-end common applications, and the first application is specifically the common application corresponding to the display area touched by the touch operation.
  • the terminal device further includes: a display unit for displaying the interface or icon or name of the frequently used application in the prospective foreground in the display area corresponding to the frequently used application in the prospective foreground, and/or corresponding to the frequently used application in the background
  • the icons or names of frequently used background applications are displayed in the display area of.
  • the display unit is specifically configured to: when it is detected that the second screen is facing upwards, display the interface or icon or name of the frequently used application of the prospective foreground in the display area corresponding to the frequently used application of the prospective foreground, and/or To display the icons or names of frequently used background applications in the display area corresponding to the frequently used background applications.
  • the terminal device further includes an output unit and a setting unit, wherein:
  • the receiving unit 1801 is further configured to receive a second touch operation of a user on a target area in one or more display areas;
  • the output unit is configured to output an application list in response to the second touch operation, and the application list includes multiple applications
  • the receiving unit 1801 is further configured to receive a user's selection operation of an application in the application list;
  • the setting unit is used to set the application selected by the selection operation as the common application corresponding to the target area.
  • the switching unit 1802 is specifically configured to: in response to the first touch operation, determine whether the first application is started; if the first application has been started and the state of the first application is not in the foreground, the first application The state of an application is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen; the terminal device also includes a starting unit; the starting unit is configured to start the first application if the first application is not started, And the interface of the first application is displayed on the first screen.
  • the principle of solving the problem of the terminal device provided in the embodiment of this application is similar to the principle of solving the problem of the terminal device in the embodiment of the method of this application. Therefore, the implementation of each device can refer to the implementation of the method. For concise description, here No longer.
  • the modules in the terminal device of the embodiment of the present invention can be combined, divided, and deleted according to actual needs.

Abstract

Disclosed is a method for switching the state of an application, wherein the method is applied to a terminal device. The terminal device comprises a first screen and a second screen. The method comprises: receiving a first touch operation of a user on the second screen; and in response to the first touch operation, switching the state of a first application from a non-foreground state to a foreground state, and displaying the interface of the first application on the first screen. It can be seen that by means of implementing the embodiments of the present application, a user can switch a first application to the foreground only by means of performing a touch operation on a second screen, thus improving the convenience of switching the state of an application.

Description

一种应用状态切换方法及终端设备Application state switching method and terminal equipment
本申请要求于2019年08月30日提交中国专利局、申请号为201910817903.1、申请名称为“一种应用状态切换方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on August 30, 2019, the application number is 201910817903.1, and the application name is "A method and terminal device for application state switching", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种应用状态切换方法及终端设备。This application relates to the field of terminal technology, and in particular to an application state switching method and terminal equipment.
背景技术Background technique
目前终端设备上应用通常具有两种状态,分别为前台状态和后台状态。应用处于前台状态时,屏幕可显示应用的界面,并且执行应用的相关功能。应用处于后台状态时,屏幕不可显示应用的界面,并且应用的某些功能被限制。例如,对于视频应用,如果视频应用处于前台状态,则终端设备的屏幕中会显示视频应用的界面。视频应用会处理用户的点击事件,并可播放视频等。如果视频应用被切换为后台状态,则终端设备的屏幕不会显示视频应用的界面。视频应用也不会处理用户的点击事件,并且不会继续播放视频。由于终端设备通常会安装多个应用,因此经常会对应用状态进行切换。在现有的实际应用中,切换应用状态的流程复杂并不便捷。例如,如图1所示,用户首先需要打开应用切换界面。应用切换界面包括处于后台状态的应用对应的窗口。如图1所示,如果用户想要将应用1切换至前台,则用户需要向右滑动应用切换界面中应用窗口,找到应用1的窗口,再点击应用1对应的窗口,以将应用1切换至前台状态。因此,如何简化应用状态切换流程,提高应用状态切换的便捷性是目前亟待解决的问题。Currently, applications on terminal devices usually have two states, namely the foreground state and the background state. When the application is in the foreground, the screen can display the interface of the application and perform related functions of the application. When the application is in the background state, the screen cannot display the application interface, and some functions of the application are restricted. For example, for a video application, if the video application is in the foreground, the screen of the terminal device will display the interface of the video application. The video application will handle the user's click event, and can play videos, etc. If the video application is switched to the background state, the screen of the terminal device will not display the interface of the video application. The video application will not process the user's click event, and will not continue to play the video. Since the terminal device usually installs multiple applications, the application state is often switched. In existing practical applications, the process of switching application states is complicated and not convenient. For example, as shown in Figure 1, the user first needs to open the application switching interface. The application switching interface includes a window corresponding to the application in the background state. As shown in Figure 1, if the user wants to switch application 1 to the foreground, the user needs to slide the application window in the application switching interface to the right, find the window of application 1, and then click the window corresponding to application 1 to switch application 1 to The foreground state. Therefore, how to simplify the application state switching process and improve the convenience of application state switching is a problem to be solved urgently at present.
发明内容Summary of the invention
本申请实施例提供了一种应用状态切换方法及终端设备,有利于提高应用状态切换的便捷性。The embodiments of the present application provide an application state switching method and terminal device, which are beneficial to improve the convenience of application state switching.
第一方面,本申请实施例提供了一种应用状态切换方法,应用于终端设备,终端设备包括第一屏幕和第二屏幕,该方法包括:接收用户对第二屏幕的第一触摸操作;响应该第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。可见,通过实施第一方面所描述的方法,用户对第二屏幕进行触摸操作就可将第一应用切换至前台,提高了应用状态切换的便捷性。In the first aspect, an embodiment of the present application provides an application state switching method applied to a terminal device. The terminal device includes a first screen and a second screen. The method includes: receiving a user's first touch operation on the second screen; According to the first touch operation, the state of the first application is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen. It can be seen that by implementing the method described in the first aspect, the user can switch the first application to the foreground by performing a touch operation on the second screen, which improves the convenience of application state switching.
作为一种可选的实施方式,终端设备具有折叠屏,折叠屏包括第一屏幕和第二屏幕,接收用户对第二屏幕的第一触摸操作的具体实施方式为:当第一屏幕与第二屏幕之间的折叠角度达到预设角度时,接收用户对第二屏幕的第一触摸操作。基于该实施方式,当第一屏幕与第二屏幕之间的折叠角度达到预设角度时,对折叠屏的第二屏幕进行触摸操作就可便捷地切换前后台应用。As an optional implementation manner, the terminal device has a folding screen. The folding screen includes a first screen and a second screen. The specific implementation manner for receiving the first touch operation of the user on the second screen is as follows: When the folding angle between the screens reaches the preset angle, receiving the user's first touch operation on the second screen. Based on this embodiment, when the folding angle between the first screen and the second screen reaches the preset angle, a touch operation on the second screen of the folding screen can conveniently switch the front and back applications.
作为一种可选的实施方式,第一应用为用户预先设置的准前台常用应用,该准前台常用应用的非前台状态为准前台状态,同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态下的功能;或者,第一应用为用户预先设置的后台常用应用,后台常用应用的非前台状态为后台状态;或者,第一应用为处于非前台状态的应用中最早切 换为非前台状态的应用。As an optional implementation manner, the first application is a quasi-foreground commonly used application preset by the user, the non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state, and the same application has more functions in the quasi-foreground state than in the background state. The first application is the frequently used background application preset by the user, and the non-foreground state of the frequently used background application is the background state; or the first application is the non-foreground state The first application in the application to switch to the non-foreground state.
通过将常用应用设置为准前台常用应用,有利于快速地、便捷地对常用应用状态进行切换,并有利于提高终端设备的性能和节省资源。通过将常用应用设置为后台常用应用,有利于快速地、便捷地对常用应用状态进行切换。By setting frequently used applications as quasi-foreground frequently used applications, it is beneficial to quickly and conveniently switch the state of commonly used applications, and is beneficial to improve the performance of the terminal device and save resources. By setting frequently used applications as frequently used applications in the background, it is beneficial to quickly and conveniently switch the status of frequently used applications.
作为一种可选的实施方式,第一应用为准前台常用应用或后台常用应用;第二屏幕中包括一个或多个显示区域,该一个或多个显示区域中的显示区域与预先设置的常用应用一一对应,预先设置的常用应用包括准前台常用应用和/或后台常用应用,第一应用具体为触摸操作触摸的显示区域对应的常用应用。通过实施该可选的实施方式,有利于用户灵活地选择准前台常用应用或后台常用应用进行状态切换。As an optional implementation manner, the first application is a frequently used application in the foreground or a frequently used background application; the second screen includes one or more display areas, and the display areas in the one or more display areas are compared with the preset commonly used applications. There is a one-to-one correspondence between applications, and the preset common applications include quasi-front-end common applications and/or back-end common applications. The first application is specifically a common application corresponding to the display area touched by the touch operation. By implementing this optional implementation manner, it is beneficial for the user to flexibly select the quasi-foreground common applications or the background common applications for state switching.
作为一种可选的实施方式,在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。通过实施该可选的实施方式,有利于用户区分显示区域对应的应用。As an optional implementation manner, the interface or icon or name of the frequently-used applications in the front-end is displayed in the display area corresponding to the frequently-used applications in the front-end, and/or the icons of the frequently-used applications in the background are displayed in the display area corresponding to the frequently-used applications in the background Or name. By implementing this optional implementation manner, it is beneficial for the user to distinguish applications corresponding to the display area.
作为一种可选的实施方式,在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称的具体实施方式为:当检测到第二屏幕朝上时,在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。通过实施该可选的实施方式,有利于节省终端设备的电能。As an optional implementation manner, the interface or icon or name of the frequently-used applications in the front-end is displayed in the display area corresponding to the frequently-used applications in the front-end, and/or the icons of the frequently-used applications in the background are displayed in the display area corresponding to the frequently-used applications in the background Or the specific implementation of the name is: when it is detected that the second screen is facing upwards, the interface or icon or name of the frequently used application in the prospective foreground is displayed in the display area corresponding to the frequently used application in the prospective foreground, and/or the corresponding frequently used application in the background The icons or names of frequently used background applications are displayed in the display area. By implementing this optional implementation manner, it is beneficial to save the power of the terminal equipment.
作为一种可选的实施方式,终端设备还可执行以下步骤:接收用户对一个或多个显示区域中的目标区域的第二触摸操作;响应第二触摸操作,输出应用列表,该应用列表中包括多个应用;接收用户对应用列表中应用的选择操作;将选择操作选择的应用设置为目标区域对应的常用应用。通过实施该可选的实施方式,能够便捷地设置显示区域对应的应用。As an optional implementation manner, the terminal device may also perform the following steps: receive the user's second touch operation on the target area in one or more display areas; respond to the second touch operation, output an application list, and the application list Including multiple applications; receiving the user's selection operation on the application in the application list; setting the application selected by the selection operation as the common application corresponding to the target area. By implementing this optional implementation manner, the application corresponding to the display area can be conveniently set.
作为一种可选的实施方式,响应第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面的具体实施方式为:响应第一触摸操作,确定第一应用是否启动;若第一应用已启动,并且第一应用的状态为非前台状态,则将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面;终端设备还可在第一应用未启动时,启动第一应用,并在第一屏幕显示第一应用的界面。通过实施该实施方式,在用户切换应用至前台时,如果应用未启动,也可启动应用,并使应用在前台显示。As an optional implementation manner, in response to the first touch operation, the state of the first application is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen. The specific implementation manner is: respond to the first Touch operation to determine whether the first application is started; if the first application is started, and the state of the first application is not the foreground state, the state of the first application is switched from the non-foreground state to the foreground state and displayed on the first screen The interface of the first application; the terminal device can also start the first application when the first application is not started, and display the interface of the first application on the first screen. By implementing this embodiment, when the user switches the application to the foreground, if the application is not started, the application can also be started, and the application can be displayed in the foreground.
第二方面,提供了一种终端设备,可执行上述第一方面或第一方面的任意一种可选的实施方式中的方法。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元。该单元可以是软件和/或硬件。基于同一发明构思,该终端设备解决问题的原理以及有益效果可以参见上述第一方面和第一方面的任意一种可选的实施方式以及有益效果,重复之处不再赘述。In a second aspect, a terminal device is provided, which can execute the foregoing first aspect or the method in any one of the optional implementation manners of the first aspect. This function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above-mentioned functions. The unit can be software and/or hardware. Based on the same inventive concept, the principle and beneficial effects of the terminal device for solving the problem can be referred to the above-mentioned first aspect and any one of the optional implementation manners and beneficial effects of the first aspect, and the repetition will not be repeated.
第三方面,提供了一种终端设备,该终端设备包括:处理器以及和处理器相连的存储器;其中,该存储器包括计算机可读指令;该处理器用于执行该存储器中的计算机可读指令,从而使得该终端设备执行上述第一方面或第一方面的任意一种可选的实施方式中的方案。该终端设备解决问题的实施方式以及有益效果可以参见上述第一方面或第一方面的任意一种可选的实施方式中的方法以及有益效果,重复之处不再赘述。In a third aspect, a terminal device is provided. The terminal device includes a processor and a memory connected to the processor; wherein the memory includes computer-readable instructions; the processor is used to execute the computer-readable instructions in the memory, Thereby, the terminal device executes the above-mentioned first aspect or the solution in any one of the optional implementation manners of the first aspect. For the implementation manner and beneficial effects of the terminal device to solve the problem, reference may be made to the foregoing first aspect or any one of the optional implementation manners and beneficial effects of the first aspect, and repetitions are not repeated here.
第四方面,提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任意一种可选的实施方式中的方法。In a fourth aspect, a computer program product is provided, which when running on a computer, causes the computer to execute the method in the first aspect or any one of the optional implementations of the first aspect.
第五方面,提供了一种芯片产品,执行上述第一方面或第一方面的任意一种可选的实施方式中的方法。In a fifth aspect, a chip product is provided, which implements the first aspect or the method in any one of the optional implementations of the first aspect.
第六方面,提了供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任意一种可选的实施方式中的方法。In a sixth aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the first aspect or any one of the first aspects. The method in an alternative embodiment.
附图说明Description of the drawings
图1是现有的一种应用状态切换的流程示意图;FIG. 1 is a schematic diagram of an existing flow of application state switching;
图2是本申请实施例提供的一种终端设备的结构示意图;FIG. 2 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图3是本申请实施例提供的一种终端设备的软件架构的示意图;Fig. 3 is a schematic diagram of a software architecture of a terminal device provided by an embodiment of the present application;
图4是本申请实施例提供的一种应用状态切换方法的流程示意图;FIG. 4 is a schematic flowchart of an application state switching method provided by an embodiment of the present application;
图5是本申请实施例提供的一种折叠屏的示意图;FIG. 5 is a schematic diagram of a folding screen provided by an embodiment of the present application;
图6是本申请实施例提供的另一种折叠屏的示意图;FIG. 6 is a schematic diagram of another folding screen provided by an embodiment of the present application;
图7~图10是本申请实施例提供的应用状态切换的示意图;Figures 7 to 10 are schematic diagrams of application state switching provided by embodiments of the present application;
图11是本申请实施例提供的第二屏幕的显示区域的示意图;FIG. 11 is a schematic diagram of a display area of a second screen provided by an embodiment of the present application;
图12是本申请实施例提供的设置显示区域对应的应用的示意图;FIG. 12 is a schematic diagram of an application corresponding to setting a display area provided by an embodiment of the present application;
图13是本申请实施例提供的解除显示区域与应用的对应关系的示意图;FIG. 13 is a schematic diagram of releasing the corresponding relationship between a display area and an application provided by an embodiment of the present application;
图14是本申请实施例提供的解除显示区域与应用的对应关系的示意图;FIG. 14 is a schematic diagram of releasing the corresponding relationship between the display area and the application provided by an embodiment of the present application;
图15是本申请实施例提供的移动显示区域的位置的示意图;15 is a schematic diagram of the position of the mobile display area provided by an embodiment of the present application;
图16是本申请实施例提供的添加显示区域的示意图;FIG. 16 is a schematic diagram of adding a display area provided by an embodiment of the present application;
图17是本申请实施例提供的删除显示区域的示意图;FIG. 17 is a schematic diagram of deleting a display area provided by an embodiment of the present application;
图18是本申请实施例提供的一种终端设备的结构示意图;FIG. 18 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图19是本申请实施例提供的一种第一屏幕和第二屏幕的示意图;FIG. 19 is a schematic diagram of a first screen and a second screen provided by an embodiment of the present application;
图20是本申请实施例提供的一种应用状态切换的示意图。FIG. 20 is a schematic diagram of application state switching provided by an embodiment of the present application.
具体实施方式detailed description
下面结合附图对本申请具体实施例作进一步的详细描述。The specific embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
为了提高应用状态切换的便捷性,本申请实施例提供了一种应用状态切换方法及终端设备。In order to improve the convenience of application state switching, embodiments of the present application provide an application state switching method and terminal device.
为了能够更好地理解本申请实施例,下面对本申请实施例的用户终端的结构进行介绍:In order to better understand the embodiments of the present application, the structure of the user terminal in the embodiments of the present application is introduced below:
图2示出了终端设备200的结构示意图。终端设备200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。其中传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,气压传感器280C,磁传感器280D,加速度传感器280E,距离传感器280F,接近光传感器280G,指纹传感器280H,温度传感器280J,触摸传感器280K,环境光传感器280L,骨传导传感器280M等。FIG. 2 shows a schematic diagram of the structure of the terminal device 200. The terminal device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, antenna 1, antenna 2 , Mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, earphone jack 270D, sensor module 280, buttons 290, motor 291, indicator 292, camera 293, display 294, and Subscriber identification module (subscriber identification module, SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, and ambient light Sensor 280L, bone conduction sensor 280M, etc.
可以理解的是,本发明实施例示意的结构并不构成对终端设备200的具体限定。在本 申请另一些实施例中,终端设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 200. In other embodiments of the present application, the terminal device 200 may include more or fewer components than shown, 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.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 210 may include one or more processing units. For example, the processor 210 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. Among them, the different processing units may be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 210 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(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)接口等。In some embodiments, the processor 210 may include one or more interfaces. Interfaces can include integrated circuit (I2C) interfaces, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous transmitters receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器210可以包含多组I2C总线。处理器210可以通过不同的I2C总线接口分别耦合触摸传感器280K,充电器,闪光灯,摄像头293等。例如:处理器210可以通过I2C接口耦合触摸传感器280K,使处理器210与触摸传感器280K通过I2C总线接口通信,实现终端设备200的触摸功能。The I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 210 may include multiple sets of I2C buses. The processor 210 may be coupled to the touch sensor 280K, charger, flash, camera 293, etc., respectively through different I2C bus interfaces. For example, the processor 210 may couple the touch sensor 280K through an I2C interface, so that the processor 210 and the touch sensor 280K communicate through the I2C bus interface to implement the touch function of the terminal device 200.
I2S接口可以用于音频通信。在一些实施例中,处理器210可以包含多组I2S总线。处理器210可以通过I2S总线与音频模块270耦合,实现处理器210与音频模块270之间的通信。在一些实施例中,音频模块270可以通过I2S接口向无线通信模块260传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 210 may include multiple sets of I2S buses. The processor 210 may be coupled with the audio module 270 through an I2S bus to implement communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 may transmit audio signals to the wireless communication module 260 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块270与无线通信模块260可以通过PCM总线接口耦合。在一些实施例中,音频模块270也可以通过PCM接口向无线通信模块260传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 270 and the wireless communication module 260 may be coupled through a PCM bus interface. In some embodiments, the audio module 270 may also transmit audio signals to the wireless communication module 260 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器210与无线通信模块260。例如:处理器210通过UART接口与无线通信模块260中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块270可以通过UART接口向无线通信模块260传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 210 and the wireless communication module 260. For example, the processor 210 communicates with the Bluetooth module in the wireless communication module 260 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 270 may transmit audio signals to the wireless communication module 260 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器210与显示屏294,摄像头293等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器210和摄像头293通过CSI接口通信,实现终端设备200的拍摄功能。处理器210和显示屏294通过DSI接口通信,实现终端设备200的显示功能。The MIPI interface can be used to connect the processor 210 with the display screen 294, the camera 293 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 210 and the camera 293 communicate through a CSI interface to implement the shooting function of the terminal device 200. The processor 210 and the display screen 294 communicate through a DSI interface to realize the display function of the terminal device 200.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器210与摄像头293,显示屏294,无线通信模块260,音频模块270,传感器模块280等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 with the camera 293, the display screen 294, the wireless communication module 260, the audio module 270, the sensor module 280, and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口230是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口230可以用于连接充电器为终端设备200充电,也可以用于终端设备200与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 230 is an interface that complies with the USB standard specifications, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 230 can be used to connect a charger to charge the terminal device 200, and can also be used to transfer data between the terminal device 200 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other terminal devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备200的结构限定。在本申请另一些实施例中,终端设备200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the terminal device 200. In other embodiments of the present application, the terminal device 200 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块240可以通过终端设备200的无线充电线圈接收无线充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为终端设备供电。The charging management module 240 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive the charging input of the wired charger through the USB interface 230. In some embodiments of wireless charging, the charging management module 240 may receive the wireless charging input through the wireless charging coil of the terminal device 200. While the charging management module 240 charges the battery 242, it can also supply power to the terminal device through the power management module 241.
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,显示屏294,摄像头293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 241 may also be provided in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 may also be provided in the same device.
终端设备200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端设备200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块250可以提供应用在终端设备200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。The mobile communication module 250 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 250 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 250 may be provided in the processor 210. In some embodiments, at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器270A,受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through the display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be provided in the same device as the mobile communication module 250 or other functional modules.
无线通信模块260可以提供应用在终端设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 260 can provide applications on the terminal device 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be sent from the processor 210, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,终端设备200的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得终端设备200可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 200 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the terminal device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
终端设备200通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 200 implements a display function through a GPU, a display screen 294, and an application processor. The GPU is an image processing microprocessor, which is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(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)等。在一些实施例中,终端设备200可以包括1个或N个显示屏294,N为大于1的正整数。本申请实施例中,终端设备的显示屏294包括第一屏幕和第二屏幕。第一屏幕可以为主屏幕,第二屏幕可以为副屏幕。终端设备可以包括折叠屏,折叠屏包括第一屏幕和第二屏幕。在第一屏幕和第二屏幕之间的折叠角度达到180°时,第一屏幕和第二屏幕为完全背靠背的形式。此时,第一屏幕用于展示前台状态的应用的界面。或者,第一屏幕和第二屏幕也可不属于折叠屏。终端设备包括一块显示屏,该显示屏不可折叠,将该显示屏进行逻辑划分,得到两 个逻辑划分的屏幕,分别为第一屏幕和第二屏幕。The display screen 294 is used to display images, videos, and the like. The display screen 294 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). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 200 may include one or N display screens 294, and N is a positive integer greater than one. In this embodiment of the application, the display screen 294 of the terminal device includes a first screen and a second screen. The first screen can be the main screen, and the second screen can be the secondary screen. The terminal device may include a folding screen, and the folding screen includes a first screen and a second screen. When the folding angle between the first screen and the second screen reaches 180°, the first screen and the second screen are in a completely back-to-back form. At this time, the first screen is used to display the interface of the application in the foreground state. Or, the first screen and the second screen may not belong to the folding screen. The terminal device includes a display screen that is not foldable. The display screen is logically divided to obtain two logically divided screens, namely the first screen and the second screen.
终端设备200可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。The terminal device 200 can implement a shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.
ISP用于处理摄像头293反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头293中。The ISP is used to process the data fed back by the camera 293. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 293.
摄像头293用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备200可以包括1个或N个摄像头293,N为大于1的正整数。The camera 293 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the terminal device 200 may include 1 or N cameras 293, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备200在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 200 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备200可以支持一种或多种视频编解码器。这样,终端设备200可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 200 may support one or more video codecs. In this way, the terminal device 200 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备200的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the terminal device 200 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在内部存储器221的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备200的各种功能应用以及数据处理。The internal memory 221 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 221 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 200. In addition, the internal memory 221 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 210 executes various functional applications and data processing of the terminal device 200 by running instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
终端设备200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 200 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone interface 270D, and an application processor. For example, music playback, recording, etc.
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器 210中。The audio module 270 is used for converting digital audio information into an analog audio signal for output, and also for converting an analog audio input into a digital audio signal. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be provided in the processor 210, or part of the functional modules of the audio module 270 may be provided in the processor 210.
扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备200可以通过扬声器270A收听音乐,或收听免提通话。The speaker 270A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device 200 can listen to music through the speaker 270A, or listen to a hands-free call.
受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备200接听电话或语音信息时,可以通过将受话器270B靠近人耳接听语音。The receiver 270B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 200 answers a call or voice message, it can receive the voice by bringing the receiver 270B close to the human ear.
麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风270C发声,将声音信号输入到麦克风270C。终端设备200可以设置至少一个麦克风270C。在另一些实施例中,终端设备200可以设置两个麦克风270C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备200还可以设置三个,四个或更多麦克风270C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 270C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 270C through the human mouth, and input the sound signal into the microphone 270C. The terminal device 200 may be provided with at least one microphone 270C. In some other embodiments, the terminal device 200 may be provided with two microphones 270C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal device 200 may also be provided with three, four or more microphones 270C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口270D用于连接有线耳机。耳机接口270D可以是USB接口230,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 270D is used to connect wired earphones. The earphone interface 270D may be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器280A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器280A可以设置于显示屏294。压力传感器280A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器280A,电极之间的电容改变。终端设备200根据电容的变化确定压力的强度。当有触摸操作作用于显示屏294,终端设备200根据压力传感器280A检测所述触摸操作强度。终端设备200也可以根据压力传感器280A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A may be provided on the display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 280A, the capacitance between the electrodes changes. The terminal device 200 determines the strength of the pressure according to the change in capacitance. When a touch operation acts on the display screen 294, the terminal device 200 detects the intensity of the touch operation according to the pressure sensor 280A. The terminal device 200 may also calculate the touched position based on the detection signal of the pressure sensor 280A. In some embodiments, 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 of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器280B可以用于确定终端设备200的运动姿态。在一些实施例中,可以通过陀螺仪传感器280B确定终端设备200围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器280B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器280B检测终端设备200抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备200的抖动,实现防抖。陀螺仪传感器280B还可以用于导航,体感游戏场景。The gyro sensor 280B may be used to determine the movement posture of the terminal device 200. In some embodiments, the angular velocity of the terminal device 200 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 280B. The gyro sensor 280B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 280B detects the shaking angle of the terminal device 200, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens can counteract the shaking of the terminal device 200 through a reverse movement to achieve anti-shake. The gyroscope sensor 280B can also be used for navigation and somatosensory game scenes.
气压传感器280C用于测量气压。在一些实施例中,终端设备200通过气压传感器280C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 280C is used to measure air pressure. In some embodiments, the terminal device 200 calculates the altitude based on the air pressure value measured by the air pressure sensor 280C to assist positioning and navigation.
磁传感器280D包括霍尔传感器。终端设备200可以利用磁传感器280D检测翻盖皮套的开合。在一些实施例中,当终端设备200是翻盖机时,终端设备200可以根据磁传感器280D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 280D includes a Hall sensor. The terminal device 200 may use the magnetic sensor 280D to detect the opening and closing of the flip holster. In some embodiments, when the terminal device 200 is a flip machine, the terminal device 200 can detect the opening and closing of the flip according to the magnetic sensor 280D. Furthermore, according to the detected opening and closing state of the holster or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器280E可检测终端设备200在各个方向上(一般为三轴)加速度的大小。当终端设备200静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 280E can detect the magnitude of the acceleration of the terminal device 200 in various directions (generally three axes). When the terminal device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, applied to horizontal and vertical screen switching, pedometer and other applications.
距离传感器280F,用于测量距离。终端设备200可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备200可以利用距离传感器280F测距以实现快速对焦。Distance sensor 280F, used to measure distance. The terminal device 200 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 200 may use the distance sensor 280F to measure the distance to achieve fast focusing.
接近光传感器280G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备200通过发光二极管向外发射红外光。终端设备200使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备200附近有物体。当检测到不充分的反射光时,终端设备200可以确定终端设备200附近没有物体。终端设备200可以利用接近光传感器280G检测用户手持终端设备200贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器280G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 280G 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 terminal device 200 emits infrared light to the outside through the light emitting diode. The terminal device 200 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 terminal device 200. When insufficient reflected light is detected, the terminal device 200 may determine that there is no object near the terminal device 200. The terminal device 200 can use the proximity light sensor 280G to detect that the user holds the terminal device 200 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 280G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器280L用于感知环境光亮度。终端设备200可以根据感知的环境光亮度自适应调节显示屏294亮度。环境光传感器280L也可用于拍照时自动调节白平衡。环境光传感器280L还可以与接近光传感器280G配合,检测终端设备200是否在口袋里,以防误触。The ambient light sensor 280L is used to sense the brightness of the ambient light. The terminal device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived brightness of the ambient light. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the terminal device 200 is in a pocket to prevent accidental touch.
指纹传感器280H用于采集指纹。终端设备200可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 280H is used to collect fingerprints. The terminal device 200 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器280J用于检测温度。在一些实施例中,终端设备200利用温度传感器280J检测的温度,执行温度处理策略。例如,当温度传感器280J上报的温度超过阈值,终端设备200执行降低位于温度传感器280J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备200对电池242加热,以避免低温导致终端设备200异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备200对电池242的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 280J is used to detect temperature. In some embodiments, the terminal device 200 uses the temperature detected by the temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280J exceeds a threshold, the terminal device 200 performs a reduction in the performance of the processor located near the temperature sensor 280J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 200 heats the battery 242 to avoid abnormal shutdown of the terminal device 200 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal device 200 boosts the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
触摸传感器280K,也称“触控器件”。触摸传感器280K可以设置于显示屏294,由触摸传感器280K与显示屏294组成触摸屏,也称“触控屏”。触摸传感器280K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏294提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器280K也可以设置于终端设备200的表面,与显示屏294所处的位置不同。The touch sensor 280K is also called "touch device". The touch sensor 280K may be disposed on the display screen 294, and a touch screen composed of the touch sensor 280K and the display screen 294 is also called a “touch screen”. The touch sensor 280K 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 294. In other embodiments, the touch sensor 280K may also be disposed on the surface of the terminal device 200, which is different from the position of the display screen 294.
骨传导传感器280M可以获取振动信号。在一些实施例中,骨传导传感器280M可以获取人体声部振动骨块的振动信号。骨传导传感器280M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器280M也可以设置于耳机中,结合成骨传导耳机。音频模块270可以基于所述骨传导传感器280M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器280M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 280M can acquire vibration signals. In some embodiments, the bone conduction sensor 280M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 280M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 280M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 270 can parse out the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 280M to 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 280M, and realize the heart rate detection function.
按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。终端设备200可以接收按键输入,产生与终端设备200的用户设置以及功能控制有关的键信号输入。The button 290 includes a power-on button, a volume button, and so on. The button 290 may be a mechanical button. It can also be a touch button. The terminal device 200 may receive key input, and generate key signal input related to user settings and function control of the terminal device 200.
马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏294不同区域的触摸操作,马达291也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 291 can generate vibration prompts. The motor 291 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations that act on different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 294, the motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 292 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和终端设备200的接触和分离。终端设备200可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口295可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口295也可以兼容不同类型的SIM卡。SIM卡接口295也可以兼容外部存储卡。终端设备200通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备200采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备200中,不能和终端设备200分离。The SIM card interface 295 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 295 or pulled out from the SIM card interface 295 to achieve contact and separation with the terminal device 200. The terminal device 200 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 295 may support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 295 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 295 can also be compatible with different types of SIM cards. The SIM card interface 295 may also be compatible with external memory cards. The terminal device 200 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 200 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 200 and cannot be separated from the terminal device 200.
以下对终端设备200的软件系统进行详细介绍:The following describes the software system of the terminal device 200 in detail:
终端设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明终端设备200的软件结构。The software system of the terminal device 200 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal device 200 by way of example.
如图3所示,图3是本发明实施例的终端设备200的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。As shown in FIG. 3, FIG. 3 is a software structure block diagram of a terminal device 200 according to an embodiment of the present invention. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer can include a series of application packages. As shown in Figure 3, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 3, 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, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include 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. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供终端设备200的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the terminal device 200. 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 disappear automatically after a short stay without user interaction. For example, 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, prompt text information in the status bar, sound a prompt tone, terminal equipment vibration, flashing indicator light, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心 库。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.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。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 a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。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.
下面结合捕获拍照场景,示例性说明终端设备200软件以及硬件的工作流程。In the following, the working procedures of the software and hardware of the terminal device 200 will be exemplified in conjunction with capturing a photo scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头293捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into the original input event (including touch coordinates, time stamp of the touch operation, etc.). The original input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera 293 captures still images or videos.
下面进一步对本申请提供的应用状态切换方法进行介绍。The following further introduces the application state switching method provided by this application.
请参见图4,图4是本申请实施例提供的一种应用状态切换方法的流程示意图。如图4所示,该应用状态切换方法包括如下步骤401和步骤402,其中:Please refer to FIG. 4, which is a schematic flowchart of an application state switching method provided by an embodiment of the present application. As shown in FIG. 4, the application state switching method includes the following steps 401 and 402, where:
401、终端设备接收用户对第二屏幕的第一触摸操作。401. The terminal device receives a user's first touch operation on the second screen.
如前述所述,终端设备包括第一屏幕和第二屏幕。第一屏幕和第二屏幕具有两种方式。As mentioned above, the terminal device includes a first screen and a second screen. There are two ways for the first screen and the second screen.
方式一:终端设备具有折叠屏,该折叠屏是一种显示屏,其具有可折叠的特点。如图5所示,该折叠屏是一整块屏,但可将该折叠屏划分为两块区域,一块区域为第一屏幕,另一块区域为第二屏幕。如图5所示,折叠屏的左半部分为第一屏幕,右半部分为第二屏幕。第一屏幕和第二屏幕之间可以进行折叠。如图6所示,将第二屏幕向远离第一屏幕的方向旋转180°时,第一屏幕和第二屏幕以背靠背的方式重叠。Method 1: The terminal device has a foldable screen, which is a display screen that is foldable. As shown in FIG. 5, the folding screen is a whole screen, but the folding screen can be divided into two areas, one area is the first screen, and the other area is the second screen. As shown in Figure 5, the left half of the folding screen is the first screen, and the right half is the second screen. The first screen and the second screen can be folded. As shown in FIG. 6, when the second screen is rotated 180° in a direction away from the first screen, the first screen and the second screen overlap in a back-to-back manner.
第一屏幕可以为主屏幕,第二屏幕可以为副屏幕。当第一屏幕与第二屏幕之间的折叠角度达到预设角度时,第一屏幕可以用于显示处于前台状态的应用(即前台应用)的界面,并且第一屏幕可以接收用户对前台应用的界面的点击操作。其中,该预设角度可以大于或等于90°,且小于或等于180°。The first screen can be the main screen, and the second screen can be the secondary screen. When the folding angle between the first screen and the second screen reaches the preset angle, the first screen can be used to display the interface of the application in the foreground (ie, the foreground application), and the first screen can receive the user’s request to the foreground application. Click on the interface. Wherein, the preset angle can be greater than or equal to 90° and less than or equal to 180°.
可选的,当第一屏幕和第二屏幕为折叠屏的屏幕时,当终端设备的第一屏幕与第二屏幕之间的折叠角度达到预设角度时,终端设备接收用户对第二屏幕的第一触摸操作。Optionally, when the first screen and the second screen are folding screens, when the folding angle between the first screen and the second screen of the terminal device reaches a preset angle, the terminal device receives the user’s request for the second screen. The first touch operation.
当第一屏幕与第二屏幕之间的折叠角度达到该预设角度时,终端设备可检测用户对第二屏幕的第一触摸操作。如果检测到该第一触摸操作,则终端设备将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。其中,第一触摸操作可以 是点击操作、双击操作、按压操作或滑动操作等。后文均以第一触摸操作为双击操作进行举例说明。例如,当第一屏幕与第二屏幕之间的折叠角度达到180°时,用户可对第二屏幕进行双击操作。终端设备检测到该双击操作时,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。When the folding angle between the first screen and the second screen reaches the preset angle, the terminal device can detect the user's first touch operation on the second screen. If the first touch operation is detected, the terminal device switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen. Among them, the first touch operation may be a click operation, a double-tap operation, a pressing operation, or a sliding operation. In the following text, the first touch operation is the double-click operation for example. For example, when the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen. When detecting the double-click operation, the terminal device switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen.
可选的,用户可对第二屏幕的预设位置进行双击操作。例如,用户通常使用右手持拿手机,可以设置预设位置第二屏幕的右上角,这样便于用户在正对第一屏幕时,就可便捷地通过右手手指双击第二屏幕。或者,该预设位置还可以是第二屏幕的中间位置或其他位置。Optionally, the user can perform a double-click operation on the preset position of the second screen. For example, the user usually uses the right hand to hold the mobile phone and can set the preset position of the upper right corner of the second screen, so that when the user is facing the first screen, the user can conveniently double-tap the second screen with his right finger. Alternatively, the preset position may also be the middle position of the second screen or other positions.
方式二:第一屏幕和第二屏幕不属于折叠屏。终端设备包括一块显示屏,该显示屏不可折叠,将该显示屏进行逻辑划分,得到两个逻辑划分的屏幕,分别为第一屏幕和第二屏幕。Method 2: The first screen and the second screen are not folding screens. The terminal device includes a display screen that is not foldable. The display screen is logically divided to obtain two logically divided screens, namely the first screen and the second screen.
例如,如图19所示,终端设备包括一个显示屏,该对该显示屏进行逻辑划分,得到第一屏幕和第二屏幕。第一屏幕为主屏幕,第二屏幕可以为副屏幕。第一屏幕用于显示前台应用的界面,第二屏幕用于接收用户的第一触摸操作,以进行应用切换。例如,用户需要进行应用切换时,可对第二屏幕进行双击操作。终端设备检测到该双击操作时,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。关于第一触摸操作的描述可参见方式一中的描述,在此不赘述。其中,第二屏幕可以在第一屏幕下方,或者在第一屏幕上方,或者在第一屏幕左方,或者在第一屏幕右方,本申请实施例不做限定。图19以第二屏幕在第一屏幕下方为例。For example, as shown in FIG. 19, the terminal device includes a display screen, and the display screen is logically divided to obtain the first screen and the second screen. The first screen is the main screen, and the second screen can be the sub-screen. The first screen is used to display the interface of the foreground application, and the second screen is used to receive the user's first touch operation for application switching. For example, when the user needs to switch applications, he can double-click the second screen. When detecting the double-click operation, the terminal device switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen. For the description of the first touch operation, please refer to the description in Manner 1, which is not repeated here. The second screen may be below the first screen, or above the first screen, or to the left of the first screen, or to the right of the first screen, which is not limited in this embodiment of the application. Figure 19 takes the second screen below the first screen as an example.
402、响应第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。402. In response to the first touch operation, switch the state of the first application from the non-foreground state to the foreground state, and display the interface of the first application on the first screen.
其中,第一应用为已启动的处于非前台状态的应用。其中,非前台状态可以为后台状态或准前台状态。同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态下的功能。对准前台状态的描述具体可参见下面相应的描述,在此不赘述。Among them, the first application is an application that has been started and is in a non-foreground state. Among them, the non-foreground state can be a background state or a quasi-foreground state. The same application has more functions in the quasi-foreground state than in the background state, and less than that in the foreground state. For the description of the status of the alignment foreground, please refer to the corresponding description below, which will not be repeated here.
可见,通过实施图4所描述的方法,用户对第二屏幕进行触摸操作就可将第一应用切换至前台。提高了应用状态切换的便捷性。It can be seen that by implementing the method described in FIG. 4, the user can switch the first application to the foreground by performing a touch operation on the second screen. Improve the convenience of application state switching.
下面对第一应用的几种具体方式进行详细介绍:Several specific methods of the first application are described in detail below:
方式一、第一应用为终端设备中任意一个已启动的,且处于非前台状态的应用。Manner 1: The first application is an application that has been started by any terminal device and is not in the foreground.
方式二、第一应用为用户预先设置的准前台常用应用,该准前台常用应用的非前台状态为准前台状态,同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态下的功能。也就是说,如果第一应用为用户预先设置的准前台常用应用,那么,终端设备响应第一触摸操作,将第一应用的状态从准前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。Method 2: The first application is a quasi-foreground commonly used application preset by the user. The non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state. The same application has more functions in the quasi-foreground state than in the background state, and less For the function in the foreground. That is to say, if the first application is a quasi-foreground commonly used application preset by the user, the terminal device responds to the first touch operation to switch the state of the first application from the quasi-foreground state to the foreground state, and displays the first application on the first screen. An application interface.
其中,用户可以预先设置一个或多个准前台常用应用。也就是说,用户可以预先选择设置一个或多个应用为准前台常用应用。例如,用户可以选择应用1、应用2设置为准前台常用应用。可选的,准前台常用应用也可以为终端设备根据用户对各个应用的使用情况自动设置的。第一应用可以是预先设置的一个或多个准前台常用应用中的任意一个。准前台常用应用处于前台状态时,可将准前台常用应用切换至准前台状态。准前台常用应用处于准前台状态时,可将准前台常用应用切换为前台状态。Among them, the user can pre-set one or more quasi-front desk frequently used applications. In other words, the user can pre-select and set one or more applications as frequently used applications in the foreground. For example, the user can select Application 1 and Application 2 and set them as frequently used applications in the foreground. Optionally, the frequently used applications in the prospective foreground may also be automatically set by the terminal device according to the user's usage of each application. The first application may be any one of one or more pre-set frequently used applications in the foreground. When the frequently used applications of the prospective foreground are in the foreground state, the frequently used applications of the prospective foreground can be switched to the prospective foreground state. When the frequently used applications in the near foreground are in the near foreground state, the frequently used applications in the near foreground can be switched to the foreground state.
其中,同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态 下的功能。例如,应用在前台状态、准前台状态和后台状态下的功能分别如下表1所示。如下表1所示,应用在前台状态时是可见的,即终端设备可以输出应用的显示界面。并且应用在前台状态时可以处理点击事件,可以访问网络,可以通过传感器进行监听,可以提供定位服务,可以进行拍照录音,可以播放音视频,以及可以保活。保活是指保持应用存活。应用在准前台状态时,用户可以设置是否显示准前台应用的界面。应用在准前台状态时,不可以处理点击事件,可以访问网络,可以通过传感器进行监听,可以提供定位服务,可以进行拍照录音,可以播放音视频,以及可以保活。应用在后台状态时,不能输出应用的界面,不可以处理点击事件。访问网络,监听传感器服务,定位服务,拍照录音,音视频播放以及保活等功能可能被限制。Among them, the functions of the same application in the quasi-foreground state are more than those in the background state and less than those in the foreground state. For example, the functions of the application in the foreground, quasi-foreground, and background states are shown in Table 1 below. As shown in Table 1 below, the application is visible in the foreground state, that is, the terminal device can output the display interface of the application. And when the application is in the foreground state, it can handle click events, can access the network, can monitor through sensors, can provide location services, can take pictures and record, can play audio and video, and can keep alive. Keep alive refers to keeping the application alive. When the application is in the quasi-foreground state, the user can set whether to display the interface of the quasi-foreground application. When the application is in the quasi-foreground state, it cannot handle click events, can access the network, can monitor through sensors, can provide location services, can take pictures and record, can play audio and video, and can keep alive. When the application is in the background state, the interface of the application cannot be output, and the click event cannot be processed. Access to the network, monitoring of sensor services, location services, photo recording, audio and video playback, and keep-alive functions may be restricted.
表1Table 1
Figure PCTCN2020111198-appb-000001
Figure PCTCN2020111198-appb-000001
举例来说,用户预先设置了一个准前台常用应用,该准前台常用应用为应用1。如图7所示,应用2处于前台状态,由第一屏幕显示应用2的界面。应用1处于准前台状态,由第二屏幕显示应用1的界面。当第一屏幕与第二屏幕之间的折叠角度达到180°时,用户可对第二屏幕进行双击操作。终端设备检测到该双击操作时,将应用1的状态从准前台状态切换为前台状态,并在第一屏幕显示应用1的界面。将应用2的状态从前台状态切换为后台状态。可选的,用户可对第二屏幕的预设位置进行双击操作。例如,用户通常使用右手持拿手机,可以设置预设位置第二屏幕的右上角,这样便于用户在正对第一屏幕时,就可便捷地通过右手手指双击第二屏幕。或者,该预设位置还可以是第二屏幕的中间位置或其他位置。图7以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, the user presets a quasi-foreground commonly used application, and the quasi-frontal commonly used application is application 1. As shown in Figure 7, Application 2 is in the foreground, and the interface of Application 2 is displayed on the first screen. Application 1 is in the quasi-foreground state, and the interface of Application 1 is displayed on the second screen. When the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen. When the terminal device detects the double-click operation, it switches the state of application 1 from the quasi-foreground state to the foreground state, and displays the interface of application 1 on the first screen. Switch the state of application 2 from the foreground state to the background state. Optionally, the user can perform a double-click operation on the preset position of the second screen. For example, the user usually uses the right hand to hold the mobile phone and can set the preset position of the upper right corner of the second screen, so that when the user is facing the first screen, the user can conveniently double-tap the second screen with his right finger. Alternatively, the preset position may also be the middle position of the second screen or other positions. FIG. 7 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
准前台常用应用在从前台状态切换至准前台状态时,很多功能无需关闭。例如,准前台常用应用在从前台状态切换至准前台状态时,可见性、访问网络、传感器监听、定位服务、拍照录音和音视频等功能不会关闭,终端设备不会释放这些功能相关的资源。因此,在将准前台常用应用切换为前台状态时,无需为这些功能重新分配相关资源。这样有利于快速地将准前台常用应用切换至前台状态,并有利于提高终端设备的性能和节省资源。例如,在将准前台常用应用切换为前台状态时,可以不用再分配相关资源重新对准前台常用应用的界面进行布局和绘图,可以直接将第二屏幕显示的准前台常用应用的界面显示于第一屏幕中,这样可以更加快速地将准前台常用应用切换至前台状态。Many functions do not need to be closed when frequently used applications of the quasi-foreground switch from the foreground to the quasi-foreground state. For example, when frequently used applications in the quasi-foreground switch from the foreground state to the quasi-foreground state, functions such as visibility, network access, sensor monitoring, location services, photo recording, audio and video will not be turned off, and the terminal device will not release resources related to these functions. Therefore, there is no need to reallocate related resources for these functions when switching frequently used applications in the foreground to the foreground state. This helps to quickly switch the quasi-foreground frequently used applications to the foreground state, and helps to improve the performance of the terminal device and save resources. For example, when the quasi-foreground frequently used applications are switched to the foreground state, there is no need to allocate related resources to re-align the interface of the front-end frequently used applications for layout and drawing, and the interface of the quasi-foreground frequently used applications displayed on the second screen can be directly displayed on the first screen. In one screen, the frequently used applications in the foreground can be switched to the foreground state more quickly.
方式三、第一应用为用户预先设置的后台常用应用,后台常用应用的非前台状态为后台状态。也就是说,如果第一应用为用户预先设置的后台常用应用,那么,终端设备响应 第一触摸操作,将第一应用的状态从后台状态切换为前台状态,并在第一屏幕显示第一应用的界面。Manner 3: The first application is a commonly used background application preset by the user, and the non-foreground state of the commonly used background application is a background state. In other words, if the first application is a commonly used background application preset by the user, the terminal device responds to the first touch operation to switch the state of the first application from the background state to the foreground state, and displays the first application on the first screen Interface.
其中,用户可以预先设置一个或多个后台常用应用。也就是说,用户可以预先选择设置一个或多个应用为后台常用应用。例如,用户可以选择应用1、应用2为后台常用应用。可选的,后台常用应用也可以为终端设备根据用户对各个应用的使用请求自动设置的。第一应用可以是预先设置的一个或多个后台常用应用中的任意一个。后台常用应用处于前台状态时,可将后台常用应用切换至后台状态。后台常用应用处于后台状态时,可将后台常用应用切换为前台状态。Among them, the user can preset one or more commonly used background applications. In other words, the user can pre-select and set one or more applications as commonly used background applications. For example, the user can select Application 1 and Application 2 as frequently used applications in the background. Optionally, common background applications can also be automatically set by the terminal device according to the user's request for use of each application. The first application may be any one of one or more commonly used background applications set in advance. When the frequently used background applications are in the foreground, you can switch the frequently used background applications to the background state. When the frequently used background applications are in the background state, the frequently used background applications can be switched to the foreground state.
举例来说,用户预先设置了一个后台常用应用,该后台常用应用为应用1。如图8所示,应用2处于前台状态,由第一屏幕显示应用2的界面。应用1处于后台状态,此时第二屏幕不会显示应用1的界面。当第一屏幕与第二屏幕之间的折叠角度达到180°时,用户可对第二屏幕进行双击操作。终端设备检测到该双击操作时,将应用1的状态从后台状态切换为前台状态,并在第一屏幕显示应用1的界面。将应用2的状态从前台状态切换为后台状态。图8以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, the user presets a commonly used background application, and the commonly used background application is application 1. As shown in Figure 8, Application 2 is in the foreground, and the interface of Application 2 is displayed on the first screen. Application 1 is in the background state, and the interface of Application 1 will not be displayed on the second screen at this time. When the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen. When the terminal device detects the double-click operation, it switches the state of Application 1 from the background state to the foreground state, and displays the interface of Application 1 on the first screen. Switch the state of application 2 from the foreground state to the background state. FIG. 8 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
通过将将常用应用设置为后台常用应用,有利于快速地、便捷地对常用应用状态进行切换。By setting frequently used applications as background frequently used applications, it is beneficial to quickly and conveniently switch the status of frequently used applications.
方式四、第一应用为处于非前台状态的应用中最早切换为非前台状态的应用。Manner 4: The first application is the first application that is switched to the non-foreground state among the applications in the non-foreground state.
举例来说,终端设备中目前存在3个应用处于后台状态,分别为应用1、应用2和应用3。其中,应用1最早切换为后台状态,应用2切换为后台状态的时间晚于应用1,应用3切换为后台状态的时间晚于应用2。如图9所示,当第一屏幕与第二屏幕之间的折叠角度达到180°时,用户可对第二屏幕进行双击操作。终端设备检测到该双击操作时,将应用4的状态从前台状态切换为后台状态,并将应用1的状态从后台状态切换为前台状态,并在第一屏幕显示应用1的界面。如果用户继续对第二屏幕进行双击操作,则终端设备将应用1的状态从前台状态切换为后台状态,并将应用2的状态从后台状态切换为前台状态,并在第一屏幕显示应用2的界面。依次类推,直到切换到用户想要的应用至前台。可选的,用户可对第二屏幕的预设位置进行双击操作。关于预设位置的描述可参见上述相关描述,在此不赘述。通过第四种方式,用户可进行多次双击操作来不断切换前台应用,当切换到想要的应用至前台时,用户可停止对第二屏幕进行双击操作。图9以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, there are currently three applications in the background state in the terminal device, namely, application 1, application 2, and application 3. Among them, the application 1 is switched to the background state at the earliest, the time when the application 2 is switched to the background state is later than the application 1, and the time when the application 3 is switched to the background state is later than the application 2. As shown in FIG. 9, when the folding angle between the first screen and the second screen reaches 180°, the user can perform a double-tap operation on the second screen. When the terminal device detects the double-click operation, it switches the state of application 4 from the foreground state to the background state, and switches the state of application 1 from the background state to the foreground state, and displays the interface of application 1 on the first screen. If the user continues to double-click the second screen, the terminal device will switch the state of application 1 from the foreground state to the background state, and switch the state of application 2 from the background state to the foreground state, and display the status of application 2 on the first screen. interface. And so on, until the application that the user wants is switched to the foreground. Optionally, the user can perform a double-click operation on the preset position of the second screen. For the description of the preset position, please refer to the above related description, which will not be repeated here. In the fourth method, the user can perform multiple double-click operations to continuously switch the foreground application. When the desired application is switched to the foreground, the user can stop the double-click operation on the second screen. FIG. 9 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
方式五、第二屏幕中包括一个或多个显示区域,该一个或多个显示区域中的显示区域与预先设置的常用应用一一对应,预先设置的常用应用包括准前台常用应用和/或后台常用应用,该第一应用具体为触摸操作触摸的显示区域对应的常用应用。Manner 5. The second screen includes one or more display areas, and the display areas in the one or more display areas correspond one-to-one with preset commonly used applications, and the preset commonly used applications include quasi-front-end frequently-used applications and/or back-end applications Common applications, the first application is specifically a common application corresponding to the display area touched by the touch operation.
举例来说,如图10所示,第二屏幕中包括4个显示区域。显示区域1对应应用1,应用1为准前台常用应用。显示区域2对应应用2,应用2为后台常用应用。显示区域3对应应用3,应用3为后台常用应用。显示区域4对应应用4,应用4为后台常用应用。如图10所示,当第一屏幕与第二屏幕之间的折叠角度达到180°时,若用户对显示区域1进行双击操作,则终端设备将应用1从准前台状态切换至前台状态,并在第一屏幕显示应用1的界面。用户可以对显示区域1的预设位置进行双击操作。该预设位置可以是显示区域 1的左上角、右上角、左下角、右下角或中心位置或其他位置。For example, as shown in FIG. 10, the second screen includes 4 display areas. Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground. Display area 2 corresponds to application 2, and application 2 is a commonly used background application. Display area 3 corresponds to application 3, which is a commonly used background application. Display area 4 corresponds to application 4, which is a commonly used background application. As shown in Figure 10, when the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the display area 1, the terminal device will switch the application 1 from the quasi-foreground state to the foreground state, and The interface of Application 1 is displayed on the first screen. The user can double-click the preset position of the display area 1. The preset position can be the upper left corner, upper right corner, lower left corner, lower right corner, or center position of the display area 1, or other positions.
同理,当第一屏幕与第二屏幕之间的折叠角度达到180°时,若用户对显示区域2进行双击操作,则终端设备将应用2从后台状态切换至前台状态,并在第一屏幕显示应用2的界面。当第一屏幕与第二屏幕之间的折叠角度达到180°时,若用户对显示区域3进行双击操作,则终端设备将应用3从后台状态切换至前台状态,并在第一屏幕显示应用3的界面。当第一屏幕与第二屏幕之间的折叠角度达到180°时,若用户对显示区域4进行双击操作,则终端设备将应用4从后台状态切换至前台状态,并在第一屏幕显示应用4的界面。In the same way, when the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the display area 2, the terminal device will switch the application 2 from the background state to the foreground state and display it on the first screen. The interface of application 2 is displayed. When the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the display area 3, the terminal device will switch the application 3 from the background state to the foreground state, and display the application 3 on the first screen Interface. When the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the display area 4, the terminal device switches the application 4 from the background state to the foreground state, and displays the application 4 on the first screen Interface.
再如,如图20所示,第二屏幕中包括4个显示区域。显示区域1对应应用1,应用1为准前台常用应用。显示区域2对应应用2,应用2为后台常用应用。显示区域3对应应用3,应用3为后台常用应用。显示区域4对应应用4,应用4为后台常用应用。如图20所示,若用户对显示区域1进行双击操作,则终端设备将应用1从准前台状态切换至前台状态,并在第一屏幕显示应用1的界面。用户可以对显示区域1的预设位置进行双击操作。该预设位置可以是显示区域1的左上角、右上角、左下角、右下角或中心位置或其他位置。应用2、应用3和应用4的切换原理相同,在此不赘述。For another example, as shown in FIG. 20, the second screen includes 4 display areas. Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground. Display area 2 corresponds to application 2, and application 2 is a commonly used background application. Display area 3 corresponds to application 3, which is a commonly used background application. Display area 4 corresponds to application 4, which is a commonly used background application. As shown in FIG. 20, if the user double-clicks the display area 1, the terminal device switches the application 1 from the quasi-foreground state to the foreground state, and displays the interface of the application 1 on the first screen. The user can double-click the preset position of the display area 1. The preset position may be the upper left corner, the upper right corner, the lower left corner, the lower right corner, or the center position of the display area 1, or other positions. The switching principles of application 2, application 3 and application 4 are the same, and will not be repeated here.
可选的,第二屏幕中各个显示区域对应的应用还可以均为准前台常用应用。例如,第二屏幕中包括4个显示区域。显示区域1对应应用1,应用1为准前台常用应用。显示区域2对应应用2,应用2为准前台常用应用。显示区域3对应应用3,应用3为准前台常用应用。显示区域4对应应用4,应用4为准前台常用应用。Optionally, the applications corresponding to each display area in the second screen may also be commonly used applications in the prospective foreground. For example, the second screen includes 4 display areas. Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground. Display area 2 corresponds to application 2, and application 2 is a frequently used application in the foreground. Display area 3 corresponds to application 3, and application 3 is a frequently used application in the foreground. The display area 4 corresponds to the application 4, which is a frequently used application in the foreground.
或者,第二屏幕中各个显示区域对应的应用还可以均为后台常用应用。例如,第二屏幕中包括4个显示区域。显示区域1对应应用1,应用1为后台常用应用。显示区域2对应应用2,应用2为后台常用应用。显示区域3对应应用3,应用3为后台常用应用。显示区域4对应应用4,应用4为后台常用应用。Or, the applications corresponding to each display area in the second screen may also be common background applications. For example, the second screen includes 4 display areas. Display area 1 corresponds to application 1, and application 1 is a commonly used background application. Display area 2 corresponds to application 2, and application 2 is a commonly used background application. Display area 3 corresponds to application 3, which is a commonly used background application. Display area 4 corresponds to application 4, which is a commonly used background application.
作为一种可选的实施方式,在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。As an optional implementation manner, the interface or icon or name of the frequently-used applications in the front-end is displayed in the display area corresponding to the frequently-used applications in the front-end, and/or the icons of the frequently-used applications in the background are displayed in the display area corresponding to the frequently-used applications in the background Or name.
举例来说,如图11所示,第二屏幕中包括4个显示区域。显示区域1对应应用1,应用1为准前台常用应用。显示区域2对应应用2,应用2为后台常用应用。显示区域3对应应用3,应用3为后台常用应用。显示区域4对应应用4,应用4为后台常用应用。For example, as shown in FIG. 11, the second screen includes 4 display areas. Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground. Display area 2 corresponds to application 2, and application 2 is a commonly used background application. Display area 3 corresponds to application 3, which is a commonly used background application. Display area 4 corresponds to application 4, which is a commonly used background application.
其中,显示区域1中可显示应用1的界面或图标或名称。图11以在显示区域1中显示应用1的界面为例。可选的,如果应用1是已启动的状态,且处于准前台状态,则在显示区域1中显示应用1的界面。如果应用1未启动,则在显示区域1中显示应用1的图标或名称。可选的,应用1未启动时,显示区域1中显示的应用1的图标或名称的颜色可以为灰色。或者,在应用1未启动时,也可以在显示区域1中不显示任何信息。Wherein, the interface or icon or name of application 1 can be displayed in the display area 1. FIG. 11 takes the interface of application 1 displayed in the display area 1 as an example. Optionally, if the application 1 is in the started state and is in the quasi-foreground state, the interface of the application 1 is displayed in the display area 1. If the application 1 is not started, the icon or name of the application 1 is displayed in the display area 1. Optionally, when the application 1 is not started, the color of the icon or name of the application 1 displayed in the display area 1 may be gray. Or, when the application 1 is not started, no information may be displayed in the display area 1.
或者,无论应用1是否启动,均在显示区域1中显示应用1的图标或名称。可选的,应用1已启动时,显示区域1中显示的应用1的图标或名称的颜色为彩色。应用1未启动时,显示区域1中显示的应用1的图标或名称的颜色为灰色。或者,在应用1未启动时,也可以在显示区域1中不显示任何信息。Or, regardless of whether the application 1 is started or not, the icon or name of the application 1 is displayed in the display area 1. Optionally, when the application 1 is started, the color of the icon or name of the application 1 displayed in the display area 1 is colored. When application 1 is not started, the color of the icon or name of application 1 displayed in display area 1 is gray. Or, when the application 1 is not started, no information may be displayed in the display area 1.
其中,显示区域2中可显示应用2的图标或名称。图11以在显示区域2中显示应用2的图标和名称为例。可选的,应用2已启动时,显示区域2中显示的应用2的图标或名称的颜色为彩色。应用2未启动时,显示区域2中显示的应用2的图标或名称的颜色为灰色。 或者,在应用2未启动时,也可以在显示区域2中不显示任何信息。显示区域3和显示区域4与显示区域2的显示原理相同,在此不赘述。图11以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。Among them, the display area 2 can display the icon or name of the application 2. FIG. 11 takes the display of the icon and name of application 2 in the display area 2 as an example. Optionally, when the application 2 is started, the color of the icon or name of the application 2 displayed in the display area 2 is colored. When the application 2 is not started, the color of the icon or name of the application 2 displayed in the display area 2 is gray. Or, when the application 2 is not started, no information may be displayed in the display area 2. The display principle of the display area 3 and the display area 4 is the same as that of the display area 2, and will not be repeated here. In FIG. 11, the first screen and the second screen are screens included in the folding screen as an example. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
可选的,用户可对显示区域的应用界面或图标或名称进行第一触摸操作,以切换对应的应用的状态。Optionally, the user may perform a first touch operation on the application interface or icon or name in the display area to switch the state of the corresponding application.
作为一种可选的实施方式,第一屏幕和第二屏幕为折叠屏包括的屏幕时,当检测到第二屏幕朝上时,在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。As an optional implementation manner, when the first screen and the second screen are screens included in the folding screen, when it is detected that the second screen is facing upwards, the information of the frequently used applications of the prospective foreground is displayed in the display area corresponding to the frequently used applications of the prospective foreground. The interface or icon or name, and/or, the icon or name of the frequently used background application is displayed in the display area corresponding to the commonly used background application.
可选的,可通过传感器检测第二屏幕是否朝上。或者,可通过配置于第二屏幕的摄像头进行人脸识别,如果识别到人脸,则确定第二屏幕朝上。Optionally, a sensor can be used to detect whether the second screen faces upward. Or, face recognition can be performed through a camera configured on the second screen, and if a human face is recognized, it is determined that the second screen faces upward.
在该实施方式中,如果第二屏幕朝下,则证明用户并不想看第二屏幕中的内容,因此可以不用在各个显示区域中显示任何内容。在检测到第二屏幕朝上时,才在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。通过实施该实施方式,有利于节省终端设备的电能。In this embodiment, if the second screen is facing down, it proves that the user does not want to see the content in the second screen, and therefore, it is not necessary to display any content in each display area. When it is detected that the second screen is facing up, the interface or icon or name of the frequently used applications in the foreground will be displayed in the display area corresponding to the frequently used applications in the foreground, and/or the frequently used applications in the background will be displayed in the display area corresponding to the frequently used applications in the background Icon or name. By implementing this embodiment, it is beneficial to save the power of the terminal equipment.
作为一种可选的实施方式,终端设备设置显示区域对应的应用的具体实施方式可以为:终端设备接收用户对第二屏幕的一个或多个显示区域中的目标区域的第二触摸操作;终端设备响应第二触摸操作,输出应用列表,该应用列表中包括多个应用;终端设备接收用户对该应用列表中应用的选择操作;终端设备将选择操作选择的应用设置为目标区域对应的常用应用。其中,第二触摸操作可以是点击操作、双击操作或滑动操作等。其中,目标区域可以是第二屏幕的一个或多个显示区域中的任意一个显示区域。As an optional implementation manner, a specific implementation manner for the terminal device to set the application corresponding to the display area may be: the terminal device receives a user's second touch operation on a target area in one or more display areas of the second screen; the terminal; In response to the second touch operation, the device outputs an application list, which includes multiple applications; the terminal device receives the user's selection operation of the application in the application list; the terminal device sets the application selected by the selection operation as the common application corresponding to the target area . Among them, the second touch operation may be a click operation, a double-tap operation, or a sliding operation. The target area may be any one of the one or more display areas of the second screen.
举例来说,如图12所示,第二屏幕中包括4个显示区域。当显示区域没有设置对应的应用时,显示区域中可显示应用添加符号。例如,终端设备接收到用户对显示区域1中应用添加符号的点击操作时,输出应用列表。该应用列表中包括多个应用。可选的,该应用列表中包括终端设备安装的所有应用,或者包括终端设备安装的未与任何显示区域对应的应用。可选的,应用列表还可以根据用户的使用时长或频率进行排序。使用时长大或使用频率高的应用可以排在前列。这样便于用户可以快速地选择到常用应用。如图12所示,应用列表中包括应用1~应用5。用户选择应用1之后,终端设备将应用1设置为显示区域1对应的应用。图12以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, as shown in FIG. 12, the second screen includes 4 display areas. When the corresponding application is not set in the display area, the application addition symbol can be displayed in the display area. For example, when the terminal device receives a user's click operation to add a symbol to an application in the display area 1, it outputs an application list. The application list includes multiple applications. Optionally, the application list includes all applications installed on the terminal device, or includes applications installed on the terminal device that do not correspond to any display area. Optionally, the application list can also be sorted according to the user's usage time or frequency. Applications that have been used for a long time or are used frequently can be ranked in the forefront. This makes it easy for users to quickly select frequently used applications. As shown in Figure 12, the application list includes application 1 to application 5. After the user selects application 1, the terminal device sets application 1 as the application corresponding to display area 1. In FIG. 12, the first screen and the second screen are screens included in the folding screen as an example. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
可选的,如果用户需要替换显示区域1对应的应用。那么,用户也可以对显示区域1中进行预设力度的按压操作。终端设备检测到该按压操作之后,输出应用列表。该应用列表包括应用1~应用5。用户选择应用2之后,终端设备先解除显示区域1与应用1的对应关系,再设置显示区域1与应用2对应。Optionally, if the user needs to replace the application corresponding to the display area 1. Then, the user can also perform a pressing operation on the display area 1 with a preset intensity. After detecting the pressing operation, the terminal device outputs the application list. The application list includes application 1 to application 5. After the user selects application 2, the terminal device first releases the corresponding relationship between display area 1 and application 1, and then sets display area 1 to correspond to application 2.
当然,终端设备还可通过其他方式来设置各个显示区域对应的应用,本申请实施例不做限定。Of course, the terminal device may also set the application corresponding to each display area in other ways, which is not limited in the embodiment of the present application.
可选的,用户还可通过以下两种方式解除显示区域与应用的对应关系。Optionally, the user can also release the corresponding relationship between the display area and the application in the following two ways.
方式一:终端设备接收用户对目标区域中显示的应用界面或图标或名称的长按操作。终端设备在目标区域中显示删除按钮。终端设备检测到用户点击该删除按钮之后,终端设备解除目标区域与当前对应的应用的对应关系。Method 1: The terminal device receives the user's long-press operation on the application interface or icon or name displayed in the target area. The terminal device displays a delete button in the target area. After the terminal device detects that the user clicks the delete button, the terminal device cancels the correspondence between the target area and the currently corresponding application.
例如,如图13所示,显示区域1与应用1具有对应关系,用户可对显示区域1中应用的界面进行长按操作。终端设备检测到该长按操作之后,可在显示区域1中显示删除按钮。终端设备检测到用户点击该删除按钮之后,终端设备解除显示区域1与应用1的对应关系。图13以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, as shown in FIG. 13, the display area 1 and the application 1 have a corresponding relationship, and the user can perform a long press operation on the interface of the application in the display area 1. After detecting the long-press operation, the terminal device can display the delete button in the display area 1. After the terminal device detects that the user clicks the delete button, the terminal device cancels the corresponding relationship between the display area 1 and the application 1. FIG. 13 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
方式二:终端设备接收用户对目标区域中显示的应用界面或图标或名称的拖动操作。终端设备检测到用户将目标区域中显示的应用界面或图标或名称拖动到第二屏幕的边缘之后,终端设备解除目标区域与当前对应的应用的对应关系。Manner 2: The terminal device receives the user's drag operation on the application interface or icon or name displayed in the target area. After the terminal device detects that the user drags the application interface or icon or name displayed in the target area to the edge of the second screen, the terminal device releases the corresponding relationship between the target area and the currently corresponding application.
例如,如图14所示,显示区域1与应用1具有对应关系,用户可对显示区域1中应用1的界面进行拖动操作。终端设备检测到用户将应用1的界面拖动到第二屏幕的上边缘之后,终端设备解除显示区域1与应用1的对应关系。图14以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, as shown in FIG. 14, the display area 1 and the application 1 have a corresponding relationship, and the user can drag the interface of the application 1 in the display area 1. After the terminal device detects that the user drags the interface of the application 1 to the upper edge of the second screen, the terminal device releases the corresponding relationship between the display area 1 and the application 1. FIG. 14 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
或者,终端设备还可通过其他方式解除显示区域与应用的对应关系,本申请实施例不做限定。Alternatively, the terminal device may also release the corresponding relationship between the display area and the application in other ways, which is not limited in the embodiment of the present application.
作为一种可选的实施方式,各个显示区域的位置可以是固定的,或者显示区域可以移动。As an optional implementation manner, the position of each display area may be fixed, or the display area may be movable.
例如,如图15所示,用户可对显示区域1进行拖动操作。当终端设备检测到用户拖动显示区域1与显示区域2重叠时,终端设备将显示区域1的位置和显示区域2的位置进行互换。或者,用户也可拖动显示区域1中应用1的图标。当终端设备检测到用户拖动显示区域1应用1的图标与显示区域2中应用2的图标重叠时,终端设备设置显示区域1与应用2对应,显示区域2与应用1对应,即交互两个显示区域的应用对应关系。图15以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, as shown in FIG. 15, the user can perform a drag operation on the display area 1. When the terminal device detects that the user drags the display area 1 and the display area 2 to overlap, the terminal device exchanges the position of the display area 1 and the position of the display area 2. Alternatively, the user can also drag the application 1 icon in the display area 1. When the terminal device detects that the user drags the icon of the application 1 in the display area 1 and overlaps the icon of the application 2 in the display area 2, the terminal device sets the display area 1 to correspond to the application 2, and the display area 2 to correspond to the application 1, that is, two interactions The application corresponding relationship of the display area. FIG. 15 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
作为一种可选的实施方式,第二屏幕中的显示区域的数量可以是固定的。显示区域不能删除或者再增加。用户可以对每个显示区域设置一个对应的常用应用,或者,用户可只对部分显示区域设置对应的常用应用。As an optional implementation manner, the number of display areas in the second screen may be fixed. The display area cannot be deleted or added. The user may set a corresponding common application for each display area, or the user may set the corresponding common application for only part of the display area.
例如,第二屏幕中显示区域的数量固定为4个。其中,显示区域1对应应用1,显示区域2对应应用2,显示区域3对应应用3,显示区域4对应应用4。或者,显示区域1对应应用1,显示区域2对应应用2,显示区域3对应应用3,显示区域4未设置对应的应用。For example, the number of display areas in the second screen is fixed at four. Among them, display area 1 corresponds to application 1, display area 2 corresponds to application 2, display area 3 corresponds to application 3, and display area 4 corresponds to application 4. Or, display area 1 corresponds to application 1, display area 2 corresponds to application 2, display area 3 corresponds to application 3, and display area 4 is not provided with a corresponding application.
作为一种可选的实施方式,第二屏幕中的显示区域的数量可以是非固定的。可以对显示区域进行增加或删除。As an optional implementation manner, the number of display areas in the second screen may be non-fixed. You can add or delete the display area.
例如,如图16所示,第二屏幕当前只有3个显示区域。用户可点击第二屏幕的区域增加符号。终端设备检测到用户点击区域增加符号之后,终端设备创建一个新的显示区域。如图16所示,终端设备创建了新的显示区域4。可选的,第二屏幕具有显示区域的数量不能超过预设数量。例如,第二屏幕最多只能包括4个显示区域。那么在终端设备创建了显示区域4之后,终端设备就不再显示区域增加符号,终端设备不再继续创建显示区域。图16以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。For example, as shown in Figure 16, the second screen currently has only 3 display areas. The user can click on the area of the second screen to add symbols. After the terminal device detects that the user clicks on the area to add a symbol, the terminal device creates a new display area. As shown in Figure 16, the terminal device creates a new display area 4. Optionally, the number of display areas on the second screen cannot exceed a preset number. For example, the second screen can only include 4 display areas at most. Then, after the terminal device creates the display area 4, the terminal device no longer displays the area adding symbols, and the terminal device no longer continues to create the display area. FIG. 16 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
再如,如图17所示,第二屏幕当前具有4个显示区域。终端设备检测到用户将显示区域4拖动到第二屏幕的边缘之后,终端设备可将该显示区域4删除。其他显示区域同理, 在此不赘述。图17以第一屏幕和第二屏幕为折叠屏包括的屏幕为例。当第一屏幕和第二屏幕不为折叠屏的屏幕时原理类似,在此不赘述。As another example, as shown in FIG. 17, the second screen currently has 4 display areas. After the terminal device detects that the user drags the display area 4 to the edge of the second screen, the terminal device can delete the display area 4. The other display areas are the same, so I won’t repeat them here. FIG. 17 takes the first screen and the second screen as an example of screens included in the folding screen. When the first screen and the second screen are not folding screens, the principle is similar, which will not be repeated here.
作为一种可选的实施方式,终端设备响应第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面的具体实施方式为:响应第一触摸操作,确定第一应用是否启动;若第一应用已启动,并且第一应用的状态为非前台状态,则将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。As an optional implementation manner, the terminal device responds to the first touch operation, switches the state of the first application from the non-foreground state to the foreground state, and displays the interface of the first application on the first screen. The specific implementation manner is: response The first touch operation determines whether the first application is started; if the first application is started, and the state of the first application is not the foreground state, the state of the first application is switched from the non-foreground state to the foreground state, and the first application The screen displays the interface of the first application.
若第一应用未启动,则启动第一应用,并在第一屏幕显示第一应用的界面。If the first application is not started, the first application is started, and the interface of the first application is displayed on the first screen.
举例来说,第二屏幕中包括4个显示区域。显示区域1对应应用1,应用1为准前台常用应用。显示区域2对应应用2,应用2为后台常用应用。显示区域3对应应用3,应用3为后台常用应用。显示区域4对应应用4,应用4为后台常用应用。其中,显示区域1显示了应用1的界面,显示区域2显示应用2的图标,显示区域3显示应用3的图标,显示区域4显示应用4的图标。当第一屏幕与第二屏幕之间的折叠角度达到180°时,若用户对显示区域2的图标进行双击操作,则终端设备确定应用2是否已经启动,并且应用2的状态是否为后台状态。若是,则将应用2从后台状态切换至前台状态,并在第一屏幕显示应用2的界面。若应用2未启动,则启动应用2,并在第一屏幕中显示应用2的界面。For example, the second screen includes 4 display areas. Display area 1 corresponds to application 1, and application 1 is a frequently used application in the foreground. Display area 2 corresponds to application 2, and application 2 is a commonly used background application. Display area 3 corresponds to application 3, which is a commonly used background application. Display area 4 corresponds to application 4, which is a commonly used background application. Among them, the display area 1 displays the interface of the application 1, the display area 2 displays the icon of the application 2, the display area 3 displays the icon of the application 3, and the display area 4 displays the icon of the application 4. When the folding angle between the first screen and the second screen reaches 180°, if the user double-clicks the icon in the display area 2, the terminal device determines whether the application 2 has been started, and whether the state of the application 2 is the background state. If yes, switch Application 2 from the background state to the foreground state, and display the interface of Application 2 on the first screen. If application 2 is not started, application 2 is started, and the interface of application 2 is displayed on the first screen.
通过实施该实施方式,在用户切换应用至前台时,如果应用未启动,也可启动应用,并使应用在前台显示。By implementing this embodiment, when the user switches the application to the foreground, if the application is not started, the application can also be started, and the application can be displayed in the foreground.
本发明实施例可以根据上述方法示例对设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention may divide the device into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present invention is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
请参见图18,图18示出了本申请实施例的一种终端设备的结构示意图。图18所示的终端设备1800可以用于执行上述方法实施例中终端设备所执行的操作。图18所示的终端设备1800可以包括接收单元1801和切换单元1802。其中:Please refer to FIG. 18, which shows a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 1800 shown in FIG. 18 may be used to perform operations performed by the terminal device in the foregoing method embodiment. The terminal device 1800 shown in FIG. 18 may include a receiving unit 1801 and a switching unit 1802. among them:
接收单元1801,用于接收用户对第二屏幕的第一触摸操作;切换单元1802,用于响应第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面。The receiving unit 1801 is used to receive the user's first touch operation on the second screen; the switching unit 1802 is used to respond to the first touch operation to switch the state of the first application from the non-foreground state to the foreground state, and to switch to the foreground state on the first screen The interface of the first application is displayed.
作为一种可选的实施方式,终端设备具有折叠屏,折叠屏包括第一屏幕和第二屏幕,接收单元1801接收用户对第二屏幕的第一触摸操作的方式具体为:当第一屏幕与第二屏幕之间的折叠角度达到预设角度时,接收用户对第二屏幕的第一触摸操作。As an optional implementation manner, the terminal device has a folding screen, the folding screen includes a first screen and a second screen, and the manner in which the receiving unit 1801 receives the user's first touch operation on the second screen is specifically as follows: When the folding angle between the second screens reaches the preset angle, receiving the user's first touch operation on the second screen.
作为一种可选的实施方式,第一应用为用户预先设置的准前台常用应用,准前台常用应用的非前台状态为准前台状态,同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态下的功能;或者,第一应用为用户预先设置的后台常用应用,后台常用应用的非前台状态为后台状态;或者,第一应用为处于非前台状态的应用中最早切换为非前台状态的应用。As an optional implementation manner, the first application is a quasi-foreground commonly used application preset by the user, and the non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state. The same application has more functions in the quasi-foreground state than in the background state The function is less than the function in the foreground state; or, the first application is a common background application preset by the user, and the non-foreground state of the common background application is the background state; or the first application is an application that is not in the foreground state The first application to switch to a non-foreground state.
作为一种可选的实施方式,第一应用为准前台常用应用或后台常用应用;第二屏幕中包括一个或多个显示区域,一个或多个显示区域中的显示区域与预先设置的常用应用一一对应,预先设置的常用应用包括准前台常用应用和/或后台常用应用,第一应用具体为触摸 操作触摸的显示区域对应的常用应用。As an optional implementation manner, the first application is a frequently used application in the foreground or a frequently used background application; the second screen includes one or more display areas, and the display areas in the one or more display areas and preset common applications One-to-one correspondence, the preset common applications include quasi-front-end common applications and/or back-end common applications, and the first application is specifically the common application corresponding to the display area touched by the touch operation.
作为一种可选的实施方式,终端设备还包括:显示单元,用于在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。As an optional implementation manner, the terminal device further includes: a display unit for displaying the interface or icon or name of the frequently used application in the prospective foreground in the display area corresponding to the frequently used application in the prospective foreground, and/or corresponding to the frequently used application in the background The icons or names of frequently used background applications are displayed in the display area of.
作为一种可选的实施方式,显示单元具体用于:当检测到第二屏幕朝上时,在准前台常用应用对应的显示区域中显示准前台常用应用的界面或图标或名称,和/或,在后台常用应用对应的显示区域中显示后台常用应用的图标或名称。As an optional implementation manner, the display unit is specifically configured to: when it is detected that the second screen is facing upwards, display the interface or icon or name of the frequently used application of the prospective foreground in the display area corresponding to the frequently used application of the prospective foreground, and/or To display the icons or names of frequently used background applications in the display area corresponding to the frequently used background applications.
作为一种可选的实施方式,终端设备还包括输出单元和设置单元,其中:As an optional implementation manner, the terminal device further includes an output unit and a setting unit, wherein:
接收单元1801,还用于接收用户对一个或多个显示区域中的目标区域的第二触摸操作;The receiving unit 1801 is further configured to receive a second touch operation of a user on a target area in one or more display areas;
输出单元,用于响应第二触摸操作,输出应用列表,应用列表中包括多个应用;The output unit is configured to output an application list in response to the second touch operation, and the application list includes multiple applications;
接收单元1801,还用于接收用户对应用列表中应用的选择操作;The receiving unit 1801 is further configured to receive a user's selection operation of an application in the application list;
设置单元,用于将选择操作选择的应用设置为目标区域对应的常用应用。The setting unit is used to set the application selected by the selection operation as the common application corresponding to the target area.
作为一种可选的实施方式,切换单元1802具体用于:响应第一触摸操作,确定第一应用是否启动;若第一应用已启动,并且第一应用的状态为非前台状态,则将第一应用的状态从非前台状态切换为前台状态,并在第一屏幕显示第一应用的界面;终端设备还包括启动单元;启动单元,用于若第一应用未启动,则启动第一应用,并在第一屏幕显示第一应用的界面。As an optional implementation manner, the switching unit 1802 is specifically configured to: in response to the first touch operation, determine whether the first application is started; if the first application has been started and the state of the first application is not in the foreground, the first application The state of an application is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen; the terminal device also includes a starting unit; the starting unit is configured to start the first application if the first application is not started, And the interface of the first application is displayed on the first screen.
基于同一发明构思,本申请实施例中提供的终端设备解决问题的原理与本申请方法实施例中终端设备解决问题的原理相似,因此各设备的实施可以参见方法的实施,为简洁描述,在这里不再赘述。Based on the same inventive concept, the principle of solving the problem of the terminal device provided in the embodiment of this application is similar to the principle of solving the problem of the terminal device in the embodiment of the method of this application. Therefore, the implementation of each device can refer to the implementation of the method. For concise description, here No longer.
需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。It should be noted that, in the foregoing embodiments, the description of each embodiment has its own focus, and for parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention can be adjusted, merged, and deleted in order according to actual needs.
本发明实施例终端设备中的模块可以根据实际需要进行合并、划分和删减。The modules in the terminal device of the embodiment of the present invention can be combined, divided, and deleted according to actual needs.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. range.

Claims (17)

  1. 一种应用状态切换方法,应用于终端设备,所述终端设备包括第一屏幕和第二屏幕,其特征在于,所述方法包括:An application state switching method is applied to a terminal device, the terminal device includes a first screen and a second screen, and is characterized in that the method includes:
    接收用户对所述第二屏幕的第一触摸操作;Receiving a user's first touch operation on the second screen;
    响应所述第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在所述第一屏幕显示所述第一应用的界面。In response to the first touch operation, the state of the first application is switched from the non-foreground state to the foreground state, and the interface of the first application is displayed on the first screen.
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备具有折叠屏,所述折叠屏包括所述第一屏幕和所述第二屏幕,所述接收用户对所述第二屏幕的第一触摸操作,包括:The method according to claim 1, wherein the terminal device has a folding screen, the folding screen includes the first screen and the second screen, and the receiving user's first screen on the second screen One touch operation, including:
    当所述第一屏幕与所述第二屏幕之间的折叠角度达到预设角度时,接收用户对所述第二屏幕的第一触摸操作。When the folding angle between the first screen and the second screen reaches a preset angle, receiving a user's first touch operation on the second screen.
  3. 根据权利要求1或2所述的方法,其特征在于,The method according to claim 1 or 2, characterized in that:
    所述第一应用为用户预先设置的准前台常用应用,所述准前台常用应用的非前台状态为准前台状态,同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态下的功能;The first application is a quasi-foreground commonly used application preset by the user, the non-foreground state of the quasi-foreground commonly used application is the quasi-foreground state, and the same application has more functions in the quasi-foreground state than in the background state, and less Functions in the foreground;
    或者,所述第一应用为用户预先设置的后台常用应用,所述后台常用应用的非前台状态为后台状态;Alternatively, the first application is a background commonly used application preset by the user, and the non-frontend state of the background commonly used application is a background state;
    或者,所述第一应用为处于非前台状态的应用中最早切换为非前台状态的应用。Or, the first application is the application that is switched to the non-foreground state earliest among the applications in the non-foreground state.
  4. 根据权利要求3所述的方法,其特征在于,所述第一应用为所述准前台常用应用或所述后台常用应用;所述第二屏幕中包括一个或多个显示区域,所述一个或多个显示区域中的显示区域与预先设置的常用应用一一对应,所述预先设置的常用应用包括所述准前台常用应用和/或所述后台常用应用,所述第一应用具体为所述触摸操作触摸的显示区域对应的常用应用。The method according to claim 3, wherein the first application is the quasi-foreground common application or the background common application; the second screen includes one or more display areas, and the one or The display areas in the multiple display areas correspond one-to-one with preset commonly used applications. The preset commonly used applications include the quasi-front-end commonly used applications and/or the background commonly-used applications, and the first application is specifically the The commonly used applications corresponding to the touched display area of the touch operation.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    在所述准前台常用应用对应的显示区域中显示所述准前台常用应用的界面或图标或名称,和/或,在所述后台常用应用对应的显示区域中显示所述后台常用应用的图标或名称。Display the interface or icon or name of the frequently-used application in the prospective foreground in the display area corresponding to the frequently-used application in the prospective foreground, and/or display the icon or the icon of the frequently-used background application in the display area corresponding to the frequently-used background application in the background or name.
  6. 根据权利要求5所述的方法,其特征在于,所述在所述准前台常用应用对应的显示区域中显示所述准前台常用应用的界面或图标或名称,和/或,在所述后台常用应用对应的显示区域中显示所述后台常用应用的图标或名称,包括:The method according to claim 5, wherein the interface or icon or name of the frequently used application in the prospective foreground is displayed in the display area corresponding to the frequently used application in the prospective foreground, and/or the interface or icon or name of the frequently used application in the prospective foreground is displayed. The icon or name of the frequently used background application displayed in the display area corresponding to the application includes:
    当检测到所述第二屏幕朝上时,在所述准前台常用应用对应的显示区域中显示所述准前台常用应用的界面或图标或名称,和/或,在所述后台常用应用对应的显示区域中显示所述后台常用应用的图标或名称。When it is detected that the second screen is facing upwards, the interface or icon or name of the frequently used application in the prospective foreground is displayed in the display area corresponding to the frequently used application in the prospective foreground, and/or the corresponding frequently used application in the background The icon or name of the frequently used background application is displayed in the display area.
  7. 根据权利要求4~6中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 4 to 6, wherein the method further comprises:
    接收用户对所述一个或多个显示区域中的目标区域的第二触摸操作;Receiving a second touch operation of the user on the target area in the one or more display areas;
    响应所述第二触摸操作,输出应用列表,所述应用列表中包括多个应用;Outputting an application list in response to the second touch operation, the application list including multiple applications;
    接收用户对所述应用列表中应用的选择操作;Receiving a user's selection operation of an application in the application list;
    将所述选择操作选择的应用设置为所述目标区域对应的常用应用。The application selected by the selection operation is set as a common application corresponding to the target area.
  8. 根据权利要求1~7中任意一项所述的方法,其特征在于,所述响应所述第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在所述第一屏幕显示所述第一应用的界面,包括:The method according to any one of claims 1 to 7, wherein in response to the first touch operation, the state of the first application is switched from a non-foreground state to a foreground state, and the state of the first application is switched to the foreground state in response to the first touch operation. The interface of the first application displayed on the screen includes:
    响应所述第一触摸操作,确定所述第一应用是否启动;In response to the first touch operation, determining whether the first application is started;
    若所述第一应用已启动,并且所述第一应用的状态为非前台状态,则将第一应用的状态从非前台状态切换为前台状态,并在所述第一屏幕显示所述第一应用的界面;If the first application has been started, and the state of the first application is not the foreground state, the state of the first application is switched from the non-foreground state to the foreground state, and the first application is displayed on the first screen. Application interface;
    所述方法还包括:The method also includes:
    若所述第一应用未启动,则启动所述第一应用,并在所述第一屏幕显示所述第一应用的界面。If the first application is not started, the first application is started, and the interface of the first application is displayed on the first screen.
  9. 一种终端设备,所述终端设备包括第一屏幕和第二屏幕,其特征在于,所述终端设备包括:A terminal device, the terminal device includes a first screen and a second screen, and is characterized in that the terminal device includes:
    接收单元,用于接收用户对所述第二屏幕的第一触摸操作;A receiving unit, configured to receive a user's first touch operation on the second screen;
    切换单元,用于响应所述第一触摸操作,将第一应用的状态从非前台状态切换为前台状态,并在所述第一屏幕显示所述第一应用的界面。The switching unit is configured to respond to the first touch operation, switch the state of the first application from the non-foreground state to the foreground state, and display the interface of the first application on the first screen.
  10. 根据权利要求9所述的终端设备,其特征在于,所述终端设备具有折叠屏,所述折叠屏包括所述第一屏幕和所述第二屏幕,所述接收单元接收用户对所述第二屏幕的第一触摸操作的方式具体为:The terminal device according to claim 9, wherein the terminal device has a foldable screen, the foldable screen includes the first screen and the second screen, and the receiving unit receives a user's response to the second screen. The specific method of the first touch operation of the screen is as follows:
    当所述第一屏幕与所述第二屏幕之间的折叠角度达到预设角度时,接收用户对所述第二屏幕的第一触摸操作。When the folding angle between the first screen and the second screen reaches a preset angle, receiving a user's first touch operation on the second screen.
  11. 根据权利要求9或10所述的终端设备,其特征在于,所述第一应用为用户预先设置的准前台常用应用,所述准前台常用应用的非前台状态为准前台状态,同一应用在准前台状态下的功能多于在后台状态下的功能,且少于在前台状态下的功能;The terminal device according to claim 9 or 10, wherein the first application is a quasi-foreground commonly used application preset by a user, and the non-foreground state of the quasi-foreground commonly used application is a quasi-foreground state, and the same application is in the standard foreground. The functions in the foreground state are more than those in the background state and less than those in the foreground state;
    或者,所述第一应用为用户预先设置的后台常用应用,所述后台常用应用的非前台状态为后台状态;Alternatively, the first application is a background commonly used application preset by the user, and the non-frontend state of the background commonly used application is a background state;
    或者,所述第一应用为处于非前台状态的应用中最早切换为非前台状态的应用。Or, the first application is the application that is switched to the non-foreground state earliest among the applications in the non-foreground state.
  12. 根据权利要求11所述的终端设备,其特征在于,所述第一应用为所述准前台常用应用或所述后台常用应用;所述第二屏幕中包括一个或多个显示区域,所述一个或多个显示区域中的显示区域与预先设置的常用应用一一对应,所述预先设置的常用应用包括所述准前台常用应用和/或所述后台常用应用,所述第一应用具体为所述触摸操作触摸的显示区域对应的常用应用。The terminal device according to claim 11, wherein the first application is the quasi-foreground commonly used application or the background commonly used application; the second screen includes one or more display areas, and the one Or the display areas in the multiple display areas correspond one-to-one with preset common applications. The preset common applications include the quasi-foreground common applications and/or the background common applications, and the first application is specifically all The common applications corresponding to the display area touched by the touch operation are described.
  13. 根据权利要求12所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 12, wherein the terminal device further comprises:
    显示单元,用于在所述准前台常用应用对应的显示区域中显示所述准前台常用应用的界面或图标或名称,和/或,在所述后台常用应用对应的显示区域中显示所述后台常用应用的图标或名称。The display unit is configured to display the interface or icon or name of the frequently used application in the front desk in the display area corresponding to the frequently used application in the front desk, and/or display the background in the display area corresponding to the frequently used application in the back desk Icons or names of frequently used applications.
  14. 根据权利要求13所述的终端设备,其特征在于,所述显示单元具体用于:The terminal device according to claim 13, wherein the display unit is specifically configured to:
    当检测到所述第二屏幕朝上时,在所述准前台常用应用对应的显示区域中显示所述准前台常用应用的界面或图标或名称,和/或,在所述后台常用应用对应的显示区域中显示所述后台常用应用的图标或名称。When it is detected that the second screen is facing upwards, the interface or icon or name of the frequently used application in the prospective foreground is displayed in the display area corresponding to the frequently used application in the prospective foreground, and/or the corresponding frequently used application in the background The icon or name of the frequently used background application is displayed in the display area.
  15. 根据权利要求12~14中任意一项所述的终端设备,其特征在于,所述终端设备还包括输出单元和设置单元,其中:The terminal device according to any one of claims 12 to 14, wherein the terminal device further comprises an output unit and a setting unit, wherein:
    所述接收单元,还用于接收用户对所述一个或多个显示区域中的目标区域的第二触摸操作;The receiving unit is further configured to receive a second touch operation of the user on the target area in the one or more display areas;
    所述输出单元,用于响应所述第二触摸操作,输出应用列表,所述应用列表中包括多个应用;The output unit is configured to output an application list in response to the second touch operation, and the application list includes multiple applications;
    所述接收单元,还用于接收用户对所述应用列表中应用的选择操作;The receiving unit is further configured to receive a user's selection operation of an application in the application list;
    所述设置单元,用于将所述选择操作选择的应用设置为所述目标区域对应的常用应用。The setting unit is configured to set the application selected by the selection operation as a common application corresponding to the target area.
  16. 根据权利要求9~15中任意一项所述的终端设备,其特征在于,The terminal device according to any one of claims 9-15, wherein:
    所述切换单元具体用于:The switching unit is specifically used for:
    响应所述第一触摸操作,确定所述第一应用是否启动;In response to the first touch operation, determining whether the first application is started;
    若所述第一应用已启动,并且所述第一应用的状态为非前台状态,则将第一应用的状态从非前台状态切换为前台状态,并在所述第一屏幕显示所述第一应用的界面;If the first application has been started, and the state of the first application is not the foreground state, the state of the first application is switched from the non-foreground state to the foreground state, and the first application is displayed on the first screen. Application interface;
    所述终端设备还包括启动单元;The terminal device also includes a starting unit;
    所述启动单元,用于若所述第一应用未启动,则启动所述第一应用,并在所述第一屏幕显示所述第一应用的界面。The starting unit is configured to start the first application if the first application is not started, and display the interface of the first application on the first screen.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时使所述处理器执行如权利要求1~8任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the The method described in any one of 1-8.
PCT/CN2020/111198 2019-08-30 2020-08-26 Method for switching state of application, and terminal device WO2021037034A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910817903.1A CN110609650B (en) 2019-08-30 2019-08-30 Application state switching method and terminal equipment
CN201910817903.1 2019-08-30

Publications (1)

Publication Number Publication Date
WO2021037034A1 true WO2021037034A1 (en) 2021-03-04

Family

ID=68890655

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/111198 WO2021037034A1 (en) 2019-08-30 2020-08-26 Method for switching state of application, and terminal device

Country Status (2)

Country Link
CN (1) CN110609650B (en)
WO (1) WO2021037034A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609650B (en) * 2019-08-30 2023-06-02 华为技术有限公司 Application state switching method and terminal equipment
CN114063852A (en) * 2021-11-15 2022-02-18 珠海读书郎软件科技有限公司 Background application management and quick opening method based on double-screen telephone watch

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015181894A1 (en) * 2014-05-27 2015-12-03 株式会社日立製作所 Method for supporting creation of automatic execution service
CN105353936A (en) * 2015-09-14 2016-02-24 联想(北京)有限公司 Display method and electronic device
CN108345422A (en) * 2018-01-15 2018-07-31 广东欧珀移动通信有限公司 Application control method, apparatus, mobile terminal and computer-readable medium
CN108958936A (en) * 2018-06-28 2018-12-07 努比亚技术有限公司 Application programe switch-over method, mobile terminal and computer readable storage medium
CN108984064A (en) * 2018-07-03 2018-12-11 Oppo广东移动通信有限公司 Multi-screen display method, device, storage medium and electronic equipment
CN110609650A (en) * 2019-08-30 2019-12-24 华为技术有限公司 Application state switching method and terminal equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094673A (en) * 2015-03-31 2015-11-25 努比亚技术有限公司 Rapid starting method and apparatus for applications
CN106775391B (en) * 2016-11-29 2020-04-21 努比亚技术有限公司 Interface switching device and method
CN107045420B (en) * 2017-04-27 2021-01-05 南通易通网络科技有限公司 Application program switching method, mobile terminal and storage medium
CN108769784A (en) * 2018-06-28 2018-11-06 努比亚技术有限公司 screen recording method, mobile terminal and storage medium
CN109782944A (en) * 2018-12-11 2019-05-21 华为技术有限公司 A kind of response method and electronic equipment of touch screen
CN109766053B (en) * 2019-01-15 2020-12-22 Oppo广东移动通信有限公司 User interface display method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015181894A1 (en) * 2014-05-27 2015-12-03 株式会社日立製作所 Method for supporting creation of automatic execution service
CN105353936A (en) * 2015-09-14 2016-02-24 联想(北京)有限公司 Display method and electronic device
CN108345422A (en) * 2018-01-15 2018-07-31 广东欧珀移动通信有限公司 Application control method, apparatus, mobile terminal and computer-readable medium
CN108958936A (en) * 2018-06-28 2018-12-07 努比亚技术有限公司 Application programe switch-over method, mobile terminal and computer readable storage medium
CN108984064A (en) * 2018-07-03 2018-12-11 Oppo广东移动通信有限公司 Multi-screen display method, device, storage medium and electronic equipment
CN110609650A (en) * 2019-08-30 2019-12-24 华为技术有限公司 Application state switching method and terminal equipment

Also Published As

Publication number Publication date
CN110609650B (en) 2023-06-02
CN110609650A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
US11785329B2 (en) Camera switching method for terminal, and terminal
WO2021017889A1 (en) Display method of video call appliced to electronic device and related apparatus
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
WO2020134869A1 (en) Electronic device operating method and electronic device
WO2020000448A1 (en) Flexible screen display method and terminal
WO2021036770A1 (en) Split-screen processing method and terminal device
WO2020062159A1 (en) Wireless charging method and electronic device
WO2020173370A1 (en) Method for moving application icons, and electronic device
WO2022042770A1 (en) Method for controlling communication service state, terminal device and readable storage medium
WO2021238370A1 (en) Display control method, electronic device, and computer-readable storage medium
WO2022037726A1 (en) Split-screen display method and electronic device
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
CN113891009B (en) Exposure adjusting method and related equipment
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
CN113452945A (en) Method and device for sharing application interface, electronic equipment and readable storage medium
WO2021042878A1 (en) Photography method and electronic device
CN114115770A (en) Display control method and related device
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
WO2021037034A1 (en) Method for switching state of application, and terminal device
WO2022052740A1 (en) Folding device and method for controlling opening and closing thereof
WO2021052388A1 (en) Video communication method and video communication apparatus
CN113438366A (en) Information notification interaction method, electronic device and storage medium
WO2021129453A1 (en) Screenshot method and related device
WO2022042774A1 (en) Profile picture display method and electronic device

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: 20857902

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20857902

Country of ref document: EP

Kind code of ref document: A1