[go: up one dir, main page]

CN107291491B - Split screen starting method, terminal and computer readable storage medium - Google Patents

Split screen starting method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN107291491B
CN107291491B CN201710348367.6A CN201710348367A CN107291491B CN 107291491 B CN107291491 B CN 107291491B CN 201710348367 A CN201710348367 A CN 201710348367A CN 107291491 B CN107291491 B CN 107291491B
Authority
CN
China
Prior art keywords
screen
split
split screen
desktop
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710348367.6A
Other languages
Chinese (zh)
Other versions
CN107291491A (en
Inventor
安占磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710348367.6A priority Critical patent/CN107291491B/en
Publication of CN107291491A publication Critical patent/CN107291491A/en
Application granted granted Critical
Publication of CN107291491B publication Critical patent/CN107291491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1431Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller

Landscapes

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

Abstract

The invention discloses a split screen starting method, a terminal and a computer readable storage medium, wherein the split screen starting method is applied to the terminal and comprises the following steps: receiving a split screen starting request; starting a desktop process according to the split screen starting request; displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process; by adopting the scheme, after a request of a user for starting the screen splitting function is received, only one desktop process is started, and the screen splitting display of at least two screen splitting desktops on the terminal is realized by the desktop process, namely the at least two screen splitting desktops share the same desktop process, so that the memory is saved, the first starting speed of the screen splitting is improved, and the use experience of the user is greatly improved.

Description

Split screen starting method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a split screen starting method, a terminal, and a computer-readable storage medium.
Background
Currently, with the increase of the screen size of the smart terminal, a user may start a split screen function to browse or operate multiple apps (applications) simultaneously, for example, the user may operate other apps while watching a video. In fact, in the country, manufacturers support split-screen browsing on large-size mobile phones earlier, which is very good for the user experience.
The android7.0 native system can support a transverse screen to display two apps side by side in a split screen mode, or a vertical screen to display the two apps in a split screen mode, as shown in fig. 1, fig. 1 is a schematic diagram of split screen display provided by the prior art, two apps are arranged in the vertical screen mode in fig. 1, the upper split screen runs one hundred-degree apps, and the lower split screen runs one internet cloud music apps.
Referring to fig. 2, fig. 2 is a schematic diagram of a split-screen bottom layer implementation provided in the prior art, where two desktop processes and other processes are in a process stack, and the two desktop processes run separately; the operation between the two split screens is independent and not influenced mutually, the window level of each split screen is maintained independently, each split screen is provided with a window stack, pages in the window stacks correspond to independent processes, and the window stacks are provided with a plurality of windows including desktop windows and other application windows; in fig. 2, a DeskTop window DeskTop top and windows of other applications, which are respectively marked as a-1 … S-1, are located in a window stack corresponding to a DeskTop process; and a DeskTop window DeskTop and windows of other applications are respectively marked as B-1 … T-1 and the like in a window stack corresponding to the other DeskTop process. The split-screen desktop has two identical desktop processes in a process stack, and the two identical desktop processes respectively correspond to the split-screen desktop of the upper split-screen desktop and the split-screen desktop of the lower split-screen desktop. The scheme greatly simplifies the complexity of screen splitting, and is a good design scheme, and certainly, the experience is good under the condition of screen splitting.
However, when the split screens are started, because of the independence of the two split screens, the two split screens correspond to the desktop processes of the user respectively, and two processes which are the same in a same mode need to be started. In this case, except wasting a certain memory, the response speed is the biggest influence on the user, the two processes are started simultaneously, the consumed time is quite long, the two split screens are both black screens, and the duration is as long as about 3 seconds; in addition, after the split screen exits, the desktop process is considered as an idle process, has a lower priority, and is recycled by a GC (Garbage Collection); the starting duration of about 3 seconds is still needed when the split screen is started again; thus, a certain trouble is caused to the good use experience of the user.
Disclosure of Invention
The invention mainly aims to provide a split screen starting method, a split screen starting terminal and a computer readable storage medium, and aims to solve the problems that two desktop processes which are identical in a mode need to be started when split screens are started, memory is wasted, and time consumption is long in the prior art.
In order to solve the technical problem, the invention provides a split screen starting method which is applied to a terminal and comprises the following steps:
receiving a split screen starting request;
starting a desktop process according to the split screen starting request;
and displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process.
After receiving the split-screen starting request, the split-screen starting method further comprises the following steps:
acquiring attribute information of all current split screens;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
and adjusting the display mode of each split screen desktop according to the attribute information.
The acquiring of the attribute information of all the current split screens comprises the following steps: acquiring screen splitting proportions and screen splitting position information of all current split screens;
adjusting the display mode of each split screen desktop according to the attribute information comprises: and adjusting the display size and the display position of each split screen desktop according to the split screen proportion and the split screen position information.
After starting a desktop process according to the split-screen starting request, the split-screen starting method further comprises the following steps:
setting the priority of the desktop process as high level;
and continuously running the desktop process for the high level according to the priority of the desktop process.
The implementation mode of displaying at least two split screen desktops on the terminal in a split screen mode according to a preset rule comprises the following steps:
starting at least two split screen desktops;
and respectively putting the split screen desktops into the corresponding split screen window stacks for display.
Further, the present invention provides a terminal comprising a memory and a processor;
the processor is used for executing the split screen starting program stored in the memory so as to realize the following steps:
receiving a split screen starting request;
starting a desktop process according to the split screen starting request;
and displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process.
Wherein, after receiving the split screen start request, the processor is further configured to execute a split screen start program stored in the memory to implement the following steps:
acquiring attribute information of all current split screens;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
and adjusting the display mode of each split screen desktop according to the attribute information.
Wherein, after starting a desktop process according to the split screen start request, the processor is further configured to execute the split screen start program stored in the memory to implement the following steps:
setting the priority of the desktop process as high level;
and continuously running the desktop process for the high level according to the priority of the desktop process.
Further, the present invention provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
receiving a split screen starting request;
starting a desktop process according to the split screen starting request;
and displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process.
Wherein, after receiving the split screen initiation request, the one or more programs are further executable by the one or more processors to perform the steps of:
acquiring attribute information of all current split screens;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
and adjusting the display mode of each split screen desktop according to the attribute information.
Advantageous effects
The invention provides a split screen starting method, a terminal and a computer readable storage medium, wherein the split screen starting method is applied to the terminal and comprises the following steps: receiving a split screen starting request; starting a desktop process according to the split screen starting request; displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process; by adopting the scheme, after a request of a user for starting the screen splitting function is received, only one desktop process is started, and the screen splitting display of at least two screen splitting desktops on the terminal is realized by the desktop process, namely the at least two screen splitting desktops share the same desktop process, so that the memory is saved, the first starting speed of the screen splitting is improved, and the use experience of the user is greatly improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a schematic diagram of a split-screen display provided in the prior art;
FIG. 2 is a schematic diagram of a bottom implementation of a split screen provided in the prior art;
fig. 3 is a schematic diagram of a hardware structure of an optional terminal for implementing various embodiments of the present invention;
fig. 4 is a flowchart of a split screen starting method according to a first embodiment of the present invention;
FIG. 5 is a schematic diagram of a split-screen display provided in various embodiments of the present invention;
FIG. 6 is a schematic diagram of a bottom implementation of a split screen provided in various embodiments of the present invention;
FIG. 7 is a schematic view of another split-screen display provided in accordance with various embodiments of the present invention;
fig. 8 is a flowchart of another split-screen starting method according to the first embodiment of the present invention;
fig. 9 is a schematic diagram of a terminal according to a second embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
It will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Referring to fig. 3, which is a schematic diagram of a hardware structure of an optional terminal for implementing various embodiments of the present invention, the terminal 300 may include: an RF (Radio Frequency) unit 301, a WiFi module 302, an audio output unit 303, an a/V (audio/video) input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, and a processor 310. Those skilled in the art will appreciate that the terminal structure shown in fig. 3 is not intended to be limiting and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following describes the various components of the terminal in detail with reference to fig. 3:
the radio frequency unit 301 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 130; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA3000(Code Division Multiple Access 3000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 302, and provides wireless broadband internet access for the user.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the WiFi module 302 or stored in the memory 309 into an audio signal and output as sound when the terminal 300 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 may include a speaker, a buzzer, and the like.
The a/V input unit 304 is for receiving an audio or video signal. The a/V input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the WiFi module 302. The microphone 3042 can receive sounds (audio data) via the microphone 3042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of a phone call mode. The microphone 3042 may implement various types of noise canceling (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting an audio signal.
The terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal 300. Specifically, the user input unit 307 may include a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 3071 using any suitable object or accessory such as a finger, a stylus, etc.) thereon or nearby, and drive the corresponding connection device according to a preset program. The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 130, and can receive and execute commands sent by the processor 130. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. In particular, the other input devices 3072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Further, the touch panel 3071 may cover the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 130 to determine the type of the touch event, and then the processor 130 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 3 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 308 serves as an interface through which at least one external device is connected to the terminal 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 300 or may be used to transmit data between the terminal 300 and an external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the terminal 300, connects various parts of the entire terminal 300 using various interfaces and lines, performs various functions of the terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby monitoring the entire terminal 300. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
Although not shown in fig. 3, the terminal 300 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the above terminal hardware structure, the present invention is described in detail below by specific embodiments.
First embodiment
The present embodiment provides a split-screen starting method, referring to fig. 4, fig. 4 is a flowchart of the split-screen starting method provided in the present embodiment, where the split-screen starting method is applied to a terminal, and the split-screen starting method includes the following steps:
s401: receiving a split screen starting request;
the user can start the split screen function to realize simultaneous browsing or operation of multiple apps, and receives a split screen starting request initiated by the user.
S402: starting a desktop process according to the split screen starting request;
requesting AMS to start a page after receiving a split screen starting request of a user, and at the moment, requesting the AMS to start only one desktop process, wherein the desktop process is used for displaying at least two split screen desktops on a terminal in a split screen mode according to a preset rule;
according to the scheme provided by the embodiment, after the split screen starting request of the user is received, only one desktop process is started, and one desktop process is started, so that the split screen starting speed is increased, and the use experience of the user is greatly improved; instead of starting two desktop processes as in fig. 2 in the prior art, the starting of two desktop processes may take a long time, which lasts for as long as about 3 seconds, and the scheme provided in this embodiment only starts one desktop process, so that the time for starting split screens for the first time can be shortened by about 50%.
S403: displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process;
in S403, the implementation manner of displaying at least two split-screen desktops on the terminal in a split-screen manner according to the preset rule includes:
starting at least two split screen desktops;
respectively putting the split screen desktops into the corresponding split screen window stacks for display;
for example, referring to fig. 5, fig. 5 is a schematic diagram of a split-screen display provided in this embodiment, and in fig. 5, an upper split-screen desktop and a lower split-screen desktop are displayed on a terminal in a split-screen manner.
According to the scheme of the embodiment, a split screen management mechanism is added on a framework layer, split screens are interfered, and a plurality of split screen desktops share the same desktop process.
Exemplarily, referring to fig. 6, fig. 6 is a schematic diagram of a split-screen bottom layer implementation provided in this embodiment, a desktop process and other processes are provided in a process stack, window hierarchies of two split screens are maintained by the desktop process, each split screen has its own window stack, pages in the window stacks are controlled by the desktop process, and a plurality of windows, including desktop windows and windows of other applications, are provided in the window stacks;
in fig. 6, a DeskTop window DeskTop top and windows of other applications, which are respectively marked as a-1 … S-1, are located in the window stack of the upper split screen corresponding to the DeskTop process; the window stack of the lower split screen corresponding to the DeskTop process is provided with a DeskTop window DeskTop top and windows of other applications, which are respectively marked as B-1 … T-1 and the like.
In the scheme of fig. 6, it is not necessary to start a desktop process for each of the upper and lower split-screen desktops, but the upper and lower split-screen desktops share the same desktop process, and the window stack maintains respective pages, that is, the pages of the split-screen desktops are placed in the window stacks of the two split-screen desktops.
Optionally, after receiving the split-screen starting request in S401, the split-screen starting method further includes:
acquiring attribute information of all current split screens;
the acquiring of the attribute information of all the current split screens comprises the following steps: acquiring screen splitting proportions and screen splitting position information of all current split screens;
the screen splitting proportion and the screen splitting position information of all the split screens can be defaults or can be set according to the will of a user;
in S403, displaying at least two split-screen desktops according to a preset rule includes:
adjusting the display mode of each split screen desktop according to the attribute information;
wherein, adjusting the display mode of each split screen desktop according to the attribute information comprises: and adjusting the display size and the display position of each split screen desktop according to the split screen proportion and the split screen position information.
For example, the terminal may support two split-screen desktops, the split-screen position information of the two split-screen desktops is an upper split screen and a lower split screen when the terminal is in a vertical screen state, and the split-screen ratio of the upper split screen and the lower split screen is 1 to 2, see fig. 7, where fig. 7 is another schematic diagram of split-screen display provided in this embodiment, in fig. 7, the upper and lower split-screen desktops are displayed on the terminal in a split-screen manner, and the split-screen ratio of the upper split screen and the lower split screen is 1 to 2.
Optionally, after S402 starts a desktop process according to the split-screen start request, the split-screen start method further includes:
setting the priority of the desktop process as high level;
continuously running the desktop process for a high level according to the priority of the desktop process;
in the execution sequence of the steps, the step of setting the priority of the desktop process as high-level may be performed simultaneously with the step of S403 displaying at least two split-screen desktops on the terminal in a split-screen manner according to the preset rule according to the desktop process;
in the above scheme, the priority of the desktop process is improved to enable the desktop process to run continuously, so that the desktop process is prevented from being killed by a system after the desktop process exits from split screen, meanwhile, the response speed of subsequent split screen starting is improved, and the use experience of a user is improved.
The present solution is further illustrated below by way of a specific example.
Referring to fig. 8, fig. 8 is a flowchart of another split-screen starting method provided in this embodiment, where the split-screen starting method is applied to a terminal, and the terminal has a split-screen display function and supports displaying two split-screen desktops simultaneously, and the split-screen starting method includes the following steps:
s801: receiving a split screen starting request initiated by a user;
s802: acquiring the screen splitting ratio and the screen splitting position information of the two current screen splitting desktops, wherein the screen splitting position information of the two screen splitting desktops is an upper screen splitting ratio and a lower screen splitting ratio when the terminal is in a vertical screen state, and the screen splitting ratio of the upper screen splitting ratio to the lower screen splitting ratio is 1 to 1;
s803: starting a desktop process according to the split screen starting request;
s804: displaying an upper split screen desktop and a lower split screen desktop on the terminal in a split screen mode according to the desktop process, wherein the split screen ratio of the upper split screen to the lower split screen is 1 to 1; and setting the priority of the desktop process as high level, and continuously running the desktop process for high level according to the priority of the desktop process.
Through the implementation of the embodiment, after a request of a user for starting the screen splitting function is received, only one desktop process is started, and the desktop process realizes that at least two screen splitting desktops are displayed on the terminal in a screen splitting mode according to a preset rule, namely the at least two screen splitting desktops share the same desktop process, so that the memory is saved, and the first screen splitting starting speed is increased;
furthermore, the priority of the desktop process is improved, so that the desktop process can run continuously, the desktop process is prevented from being killed by a system after the desktop process quits the split screen, the response speed of subsequent split screen starting is improved, and the use experience of a user is improved.
Second embodiment
The present embodiment provides a terminal, referring to fig. 9, fig. 9 is a schematic diagram of a terminal provided in the present embodiment, where the terminal includes the memory 309 and the processor 310 in fig. 3;
processor 310 is configured to execute the split screen boot program stored in memory 309 to implement the following steps:
receiving a split screen starting request;
the user can start the split screen function to realize simultaneous browsing or operation of multiple apps, and receives a split screen starting request initiated by the user.
Starting a desktop process according to the split screen starting request;
requesting AMS to start a page after receiving a split screen starting request of a user, and at the moment, requesting the AMS to start only one desktop process, wherein the desktop process is used for displaying at least two split screen desktops on a terminal in a split screen mode according to a preset rule;
according to the scheme provided by the embodiment, after the split screen starting request of the user is received, only one desktop process is started, and one desktop process is started, so that the split screen starting speed is increased, and the use experience of the user is greatly improved; instead of starting two desktop processes as in fig. 2 in the prior art, the starting of two desktop processes may take a long time, which lasts for as long as about 3 seconds, and the scheme provided in this embodiment only starts one desktop process, so that the time for starting split screens for the first time can be shortened by about 50%.
Displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process;
the implementation mode of displaying at least two split screen desktops on the terminal in a split screen mode according to a preset rule comprises the following steps:
starting at least two split screen desktops;
respectively putting the split screen desktops into the corresponding split screen window stacks for display;
for example, referring to fig. 5, fig. 5 is a schematic diagram of a split-screen display provided in this embodiment, and in fig. 5, an upper split-screen desktop and a lower split-screen desktop are displayed on a terminal in a split-screen manner.
According to the scheme of the embodiment, a split screen management mechanism is added on a framework layer, split screens are interfered, and a plurality of split screen desktops share the same desktop process.
Exemplarily, referring to fig. 6, fig. 6 is a schematic diagram of a split-screen bottom layer implementation provided in this embodiment, a desktop process and other processes are provided in a process stack, window hierarchies of two split screens are maintained by the desktop process, each split screen has its own window stack, pages in the window stacks are controlled by the desktop process, and a plurality of windows, including desktop windows and windows of other applications, are provided in the window stacks;
in fig. 6, a DeskTop window DeskTop top and windows of other applications, which are respectively marked as a-1 … S-1, are located in the window stack of the upper split screen corresponding to the DeskTop process; the window stack of the lower split screen corresponding to the DeskTop process is provided with a DeskTop window DeskTop top and windows of other applications, which are respectively marked as B-1 … T-1 and the like.
In the scheme of fig. 6, it is not necessary to start a desktop process for each of the upper and lower split-screen desktops, but the upper and lower split-screen desktops share the same desktop process, and the window stack maintains respective pages, that is, the pages of the split-screen desktops are placed in the window stacks of the two split-screen desktops.
Optionally, after receiving the split screen start request, the processor 310 is further configured to execute a split screen start program stored in the memory 309, so as to implement the following steps:
acquiring attribute information of all current split screens;
the acquiring of the attribute information of all the current split screens comprises the following steps: acquiring screen splitting proportions and screen splitting position information of all current split screens;
the screen splitting proportion and the screen splitting position information of all the split screens can be defaults or can be set according to the will of a user;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
adjusting the display mode of each split screen desktop according to the attribute information;
wherein, adjusting the display mode of each split screen desktop according to the attribute information comprises: and adjusting the display size and the display position of each split screen desktop according to the split screen proportion and the split screen position information.
For example, the terminal may support two split-screen desktops, the split-screen position information of the two split-screen desktops is an upper split screen and a lower split screen when the terminal is in a vertical screen state, and the split-screen ratio of the upper split screen and the lower split screen is 1 to 2, see fig. 7, where fig. 7 is another schematic diagram of split-screen display provided in this embodiment, in fig. 7, the upper and lower split-screen desktops are displayed on the terminal in a split-screen manner, and the split-screen ratio of the upper split screen and the lower split screen is 1 to 2.
Optionally, after starting a desktop process according to the split-screen start request, the processor 310 is further configured to execute the split-screen start program stored in the memory 309, so as to implement the following steps:
setting the priority of the desktop process as high level;
continuously running the desktop process for a high level according to the priority of the desktop process;
the step of setting the priority of the desktop process as high-level in the execution sequence of the steps may be simultaneous with the step of split-screen displaying at least two split-screen desktops according to a preset rule on the terminal according to the desktop process;
in the above scheme, the priority of the desktop process is improved to enable the desktop process to run continuously, so that the desktop process is prevented from being killed by a system after the desktop process exits from split screen, meanwhile, the response speed of subsequent split screen starting is improved, and the use experience of a user is improved.
The present solution is further illustrated below by way of a specific example.
The terminal provided by the embodiment has a split-screen display function and supports displaying two split-screen desktops simultaneously, and includes the memory 309 and the processor 310 in fig. 3;
processor 310 is configured to execute the split screen boot program stored in memory 309 to implement the following steps:
receiving a split screen starting request initiated by a user;
acquiring the screen splitting ratio and the screen splitting position information of the two current screen splitting desktops, wherein the screen splitting position information of the two screen splitting desktops is an upper screen splitting ratio and a lower screen splitting ratio when the terminal is in a vertical screen state, and the screen splitting ratio of the upper screen splitting ratio to the lower screen splitting ratio is 1 to 1;
starting a desktop process according to the split screen starting request;
displaying an upper split screen desktop and a lower split screen desktop on the terminal in a split screen mode according to the desktop process, wherein the split screen ratio of the upper split screen to the lower split screen is 1 to 1; and setting the priority of the desktop process as high level, and continuously running the desktop process for high level according to the priority of the desktop process.
Through the implementation of the embodiment, after a request of a user for starting the screen splitting function is received, only one desktop process is started, and the desktop process realizes that at least two screen splitting desktops are displayed on the terminal in a screen splitting mode according to a preset rule, namely the at least two screen splitting desktops share the same desktop process, so that the memory is saved, and the first screen splitting starting speed is increased;
furthermore, the priority of the desktop process is improved, so that the desktop process can run continuously, the desktop process is prevented from being killed by a system after the desktop process quits the split screen, the response speed of subsequent split screen starting is improved, and the use experience of a user is improved.
Third embodiment
The present embodiments provide a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
receiving a split screen starting request;
the user can start the split screen function to realize simultaneous browsing or operation of multiple apps, and receives a split screen starting request initiated by the user.
Starting a desktop process according to the split screen starting request;
requesting AMS to start a page after receiving a split screen starting request of a user, and at the moment, requesting the AMS to start only one desktop process, wherein the desktop process is used for displaying at least two split screen desktops on a terminal in a split screen mode according to a preset rule;
according to the scheme provided by the embodiment, after the split screen starting request of the user is received, only one desktop process is started, and one desktop process is started, so that the split screen starting speed is increased, and the use experience of the user is greatly improved; instead of starting two desktop processes as in fig. 2 in the prior art, the starting of two desktop processes may take a long time, which lasts for as long as about 3 seconds, and the scheme provided in this embodiment only starts one desktop process, so that the time for starting split screens for the first time can be shortened by about 50%.
Displaying at least two split-screen desktops on the terminal in a split-screen mode according to a preset rule according to the desktop process;
the implementation mode of displaying at least two split screen desktops on the terminal in a split screen mode according to a preset rule comprises the following steps:
starting at least two split screen desktops;
respectively putting the split screen desktops into the corresponding split screen window stacks for display;
for example, referring to fig. 5, fig. 5 is a schematic diagram of a split-screen display provided in this embodiment, and in fig. 5, an upper split-screen desktop and a lower split-screen desktop are displayed on a terminal in a split-screen manner.
According to the scheme of the embodiment, a split screen management mechanism is added on a framework layer, split screens are interfered, and a plurality of split screen desktops share the same desktop process.
Exemplarily, referring to fig. 6, fig. 6 is a schematic diagram of a split-screen bottom layer implementation provided in this embodiment, a desktop process and other processes are provided in a process stack, window hierarchies of two split screens are maintained by the desktop process, each split screen has its own window stack, pages in the window stacks are controlled by the desktop process, and a plurality of windows, including desktop windows and windows of other applications, are provided in the window stacks;
in fig. 6, a DeskTop window DeskTop top and windows of other applications, which are respectively marked as a-1 … S-1, are located in the window stack of the upper split screen corresponding to the DeskTop process; the window stack of the lower split screen corresponding to the DeskTop process is provided with a DeskTop window DeskTop top and windows of other applications, which are respectively marked as B-1 … T-1 and the like.
In the scheme of fig. 6, it is not necessary to start a desktop process for each of the upper and lower split-screen desktops, but the upper and lower split-screen desktops share the same desktop process, and the window stack maintains respective pages, that is, the pages of the split-screen desktops are placed in the window stacks of the two split-screen desktops.
Optionally, after receiving the split screen initiation request, the one or more programs are further executable by the one or more processors to perform the steps of:
acquiring attribute information of all current split screens;
the acquiring of the attribute information of all the current split screens comprises the following steps: acquiring screen splitting proportions and screen splitting position information of all current split screens;
the screen splitting proportion and the screen splitting position information of all the split screens can be defaults or can be set according to the will of a user;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
adjusting the display mode of each split screen desktop according to the attribute information;
wherein, adjusting the display mode of each split screen desktop according to the attribute information comprises: and adjusting the display size and the display position of each split screen desktop according to the split screen proportion and the split screen position information.
For example, the terminal may support two split-screen desktops, the split-screen position information of the two split-screen desktops is an upper split screen and a lower split screen when the terminal is in a vertical screen state, and the split-screen ratio of the upper split screen and the lower split screen is 1 to 2, see fig. 7, where fig. 7 is another schematic diagram of split-screen display provided in this embodiment, in fig. 7, the upper and lower split-screen desktops are displayed on the terminal in a split-screen manner, and the split-screen ratio of the upper split screen and the lower split screen is 1 to 2.
Optionally, after starting a desktop process according to the split screen start request, the one or more programs may be further executable by the one or more processors to implement the steps of:
setting the priority of the desktop process as high level;
continuously running the desktop process for a high level according to the priority of the desktop process;
the step of setting the priority of the desktop process as high-level in the execution sequence of the steps may be simultaneous with the step of split-screen displaying at least two split-screen desktops according to a preset rule on the terminal according to the desktop process;
in the above scheme, the priority of the desktop process is improved to enable the desktop process to run continuously, so that the desktop process is prevented from being killed by a system after the desktop process exits from split screen, meanwhile, the response speed of subsequent split screen starting is improved, and the use experience of a user is improved.
The present solution is further illustrated below by way of a specific example.
The terminal provided by the embodiment has a split screen display function, and supports simultaneous display of two split screen desktops, and one or more programs can be further executed by one or more processors to implement the following steps:
receiving a split screen starting request initiated by a user;
acquiring the screen splitting ratio and the screen splitting position information of the two current screen splitting desktops, wherein the screen splitting position information of the two screen splitting desktops is an upper screen splitting ratio and a lower screen splitting ratio when the terminal is in a vertical screen state, and the screen splitting ratio of the upper screen splitting ratio to the lower screen splitting ratio is 1 to 1;
starting a desktop process according to the split screen starting request;
displaying an upper split screen desktop and a lower split screen desktop on the terminal in a split screen mode according to the desktop process, wherein the split screen ratio of the upper split screen to the lower split screen is 1 to 1; and setting the priority of the desktop process as high level, and continuously running the desktop process for high level according to the priority of the desktop process.
Through the implementation of the embodiment, after a request of a user for starting the screen splitting function is received, only one desktop process is started, and the desktop process realizes that at least two screen splitting desktops are displayed on the terminal in a screen splitting mode according to a preset rule, namely the at least two screen splitting desktops share the same desktop process, so that the memory is saved, and the first screen splitting starting speed is increased;
furthermore, the priority of the desktop process is improved, so that the desktop process can run continuously, the desktop process is prevented from being killed by a system after the desktop process quits the split screen, the response speed of subsequent split screen starting is improved, and the use experience of a user is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A split screen starting method is applied to a terminal and comprises the following steps:
receiving a split screen starting request;
the terminal only starts one desktop process according to the split screen starting request;
displaying at least two split screen desktops on the terminal in a split screen mode according to the desktop process and preset rules; the at least two split-screen desktops share the same desktop process.
2. The split screen activation method as claimed in claim 1, wherein after said receiving a split screen activation request, the split screen activation method further comprises:
acquiring attribute information of all current split screens;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
and adjusting the display mode of each split screen desktop according to the attribute information.
3. The split-screen starting method as claimed in claim 2, wherein the acquiring attribute information of all current split screens includes: acquiring screen splitting proportions and screen splitting position information of all current split screens;
the adjusting the display mode of each split screen desktop according to the attribute information comprises: and adjusting the display size and the display position of each split screen desktop according to the split screen proportion and the split screen position information.
4. The split screen startup method according to any one of claims 1 to 3, wherein after the startup of a desktop process according to the split screen startup request, the split screen startup method further comprises:
setting the priority of the desktop process as high level;
and continuously running the desktop process for the high level according to the priority of the desktop process.
5. The split screen starting method as claimed in any one of claims 1 to 3, wherein the implementation manner of split screen displaying at least two split screen desktops on the terminal according to the preset rule comprises:
starting at least two split screen desktops;
and respectively putting the split screen desktops into the corresponding split screen window stacks for display.
6. A terminal, characterized in that the terminal comprises a memory and a processor;
the processor is used for executing the split screen starting program stored in the memory so as to realize the following steps:
receiving a split screen starting request;
only one desktop process is started according to the split screen starting request;
displaying at least two split screen desktops on the terminal in a split screen mode according to the desktop process and preset rules; the split-screen desktops share the same desktop process.
7. The terminal of claim 6, wherein after said receiving a split screen activation request, said processor is further configured to execute a split screen activation program stored in memory to implement the steps of:
acquiring attribute information of all current split screens;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
and adjusting the display mode of each split screen desktop according to the attribute information.
8. The terminal of claim 6 or 7, wherein after the starting of a desktop process according to the split screen start request, the processor is further configured to execute a split screen start program stored in the memory to implement the following steps:
setting the priority of the desktop process as high level;
and continuously running the desktop process for the high level according to the priority of the desktop process.
9. A computer-readable storage medium applied to a terminal, the computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of:
receiving a split screen starting request;
only one desktop process is started according to the split screen starting request;
displaying at least two split screen desktops on the terminal in a split screen mode according to the desktop process and preset rules; the split-screen desktops share the same desktop process.
10. The computer-readable storage medium recited in claim 9, wherein after the receiving a split screen launch request, the one or more programs are further executable by the one or more processors to implement the steps of:
acquiring attribute information of all current split screens;
the split-screen display of at least two split-screen desktops according to preset rules comprises:
and adjusting the display mode of each split screen desktop according to the attribute information.
CN201710348367.6A 2017-05-17 2017-05-17 Split screen starting method, terminal and computer readable storage medium Active CN107291491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710348367.6A CN107291491B (en) 2017-05-17 2017-05-17 Split screen starting method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710348367.6A CN107291491B (en) 2017-05-17 2017-05-17 Split screen starting method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107291491A CN107291491A (en) 2017-10-24
CN107291491B true CN107291491B (en) 2021-01-26

Family

ID=60095217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710348367.6A Active CN107291491B (en) 2017-05-17 2017-05-17 Split screen starting method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107291491B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967151A (en) * 2017-11-23 2018-04-27 上海博泰悦臻电子设备制造有限公司 More applications start method and system, storage medium, car-mounted terminal at the same time on car-mounted terminal
CN117724640B (en) * 2023-06-06 2025-01-10 荣耀终端有限公司 Split screen display method, electronic equipment and storage medium
CN119902847A (en) * 2025-01-22 2025-04-29 成都长城汽车研发有限公司 Card display method, device and equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9213365B2 (en) * 2010-10-01 2015-12-15 Z124 Method and system for viewing stacked screen displays using gestures
US8698751B2 (en) * 2010-10-01 2014-04-15 Z124 Gravity drop rules and keyboard display on a multiple screen device
JP4712786B2 (en) * 2007-12-13 2011-06-29 京セラ株式会社 Information processing device
US20170256031A1 (en) * 2014-09-16 2017-09-07 Nec Corporation Method of enlarging content in divided screen, information processing apparatus, and control method and control program of information processing apparatus
CN105224276A (en) * 2015-10-29 2016-01-06 维沃移动通信有限公司 A kind of multi-screen display method and electronic equipment
CN106201167A (en) * 2016-06-24 2016-12-07 北京奇虎科技有限公司 The multi-screen display method of terminal screen, device and terminal
CN106201166A (en) * 2016-06-25 2016-12-07 深圳市金立通信设备有限公司 A kind of multi-screen display method and terminal

Also Published As

Publication number Publication date
CN107291491A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US11243653B2 (en) Method for display control and mobile terminal
WO2019196707A1 (en) Mobile terminal control method and mobile terminal
WO2019141243A1 (en) Method for starting application program and mobile terminal
CN110837327B (en) A message viewing method and terminal
US11543935B2 (en) Information processing method and terminal device
CN107704185B (en) Split screen desktop display method, terminal and computer readable storage medium
CN107613095B (en) Incoming call processing method and mobile terminal
CN108898552B (en) Picture splicing method, double-screen terminal and computer readable storage medium
CN108196776B (en) Terminal screen splitting method, terminal and computer readable storage medium
CN109284144B (en) Fast application processing method and mobile terminal
US20220318076A1 (en) Application sharing method, first electronic device, and computer-readable storage medium
CN107765941B (en) Icon display method, terminal and computer readable storage medium
WO2019076377A1 (en) Image viewing method and mobile terminal
WO2019169991A1 (en) Display method and mobile terminal
CN108055392B (en) Display area adjusting method, mobile terminal and computer readable storage medium
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN108491148A (en) A kind of application sharing method and terminal
CN108196753B (en) Interface switching method and mobile terminal
CN107291491B (en) Split screen starting method, terminal and computer readable storage medium
CN109947323B (en) A terminal display method and terminal
CN110018772B (en) Wallpaper setting method, terminal and computer-readable storage medium
CN109947298B (en) System calling method, terminal and computer readable storage medium
CN107506103A (en) A kind of terminal control method, terminal and computer-readable recording medium
CN109597546A (en) A kind of icon processing method and terminal device
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant