CN112905091A - Application program starting method and device and electronic equipment - Google Patents
- ️Fri Jun 04 2021
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a method for starting an application program according to an embodiment of the present application through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
The starting method of the application program is suitable for performing split screen control operation on the foldable electronic equipment. It should be noted that the electronic device suitable for the method includes N screen regions, where N is a positive integer greater than 1.
One possible case is that the electronic device may be an electronic device including a flexible screen, in which case the electronic device includes 1 screen, but the flexible screen may be folded due to the flexible characteristic of the flexible screen, and the folded flexible screen forms at least 2 screen areas, and displays interfaces corresponding to different applications in different screen areas.
Another possible case is that the electronic device may be an electronic device including a foldable screen, in which case, 1 screen of the electronic device may be regarded as 1 screen area of the electronic device, and for example, if the foldable screen of the foldable electronic device is composed of 2 screens, the number of screen areas of the foldable electronic device may be determined to be 2.
In the above case, there may be multiple screen regions in 1 screen of the electronic device, for example, if the content corresponding to the application a and the content corresponding to the application B can be displayed on 1 screen, it may be determined that the screen includes 2 screen regions.
For clarity of illustration of the technical solution, the following description will be made by taking the foldable electronic device as an electronic device including a foldable screen, the foldable screen includes 2 screens, and each screen is regarded as 1 screen area, and the technical contents in the following embodiments are also applicable to foldable electronic devices including more than 2 screen areas. It should be understood that the technical content in the subsequent embodiments is also applicable to the split screen control of the electronic device comprising the flexible screen, and it should be understood that the electronic devices in the subsequent embodiments all represent foldable electronic devices comprising a folding screen.
A mode for starting a plurality of application programs on a foldable electronic device in a split screen mode is that a user starts one application program, and the folding angle of a folding screen is adjusted, so that the user can execute the operation on the application program on one screen; subsequently, another application is started so that the user can perform an operation on the application on another screen. Therefore, the user needs to perform at least 3 operations to start the multiple applications in a split screen manner, which results in a complex process of starting the applications in a split screen manner.
Based on the above possible technical problems, the present application proposes the following technical concepts:
under the condition of receiving an input of a user, the electronic equipment automatically adjusts the folding angle of the folding screen, executes different application programs on different screens, and improves the convenience of starting the application programs by reducing the operation times of the user in the process of starting the application programs in a split screen mode.
Referring to fig. 1, fig. 1 is a flowchart of a method for starting an application according to an embodiment of the present application. The starting method of the application program provided by the embodiment of the application program comprises the following steps:
s101, when the first input is received, target information is acquired.
The target information comprises a target folding angle of the folding screen and application program information.
In this step, the application information represents M applications corresponding to N screen regions, where M is greater than or equal to N.
It should be understood that in some embodiments, one screen region may correspond to multiple applications, for example, screen region a corresponds to applications a and B and screen region B corresponds to application C, in which case the application information includes a mapping of screen region a and applications a and B and a mapping of screen region B to application C.
The first input may be a touch input of a user for a control displayed on the folding screen, for example, the folding screen displays a plurality of controls, each control corresponds to one piece of target information, the touch input of the user for one control is received, and the target information corresponding to the control is acquired.
It will be appreciated that in some embodiments, the first input described above may also be a voice input by the user.
S102, responding to the first input, and adjusting the folding angle of the foldable electronic equipment to be a target folding angle.
In this step, the electronic device responds to the first input, and adjusts the folding angle of the folding screen through a folding driving device built in the electronic device. In one embodiment, after receiving the first input, the electronic device adjusts the folding angle of the folding screen so that the folding angle of the folding screen is the target folding angle.
S103, starting M application programs represented by the application program information, and displaying the started interface of the corresponding application program in each screen area.
In this step, an optional implementation manner is that, in response to the first input, the electronic device starts an application program corresponding to the application program information in a split screen manner while adjusting the folding angle of the folding screen.
Another optional implementation manner is that, after the electronic device responds to the first input and adjusts the folding angle of the folding screen to the target folding angle, the electronic device starts an application program corresponding to the application program information in a split screen manner.
In yet another alternative embodiment, after the electronic device responds to the first input and starts the application corresponding to the application information in the split screen, the folding angle of the folding screen is adjusted to the target folding angle.
The technical essence of the application program corresponding to the split screen startup application program information is described below:
as described above, the application information characterizes applications corresponding to all screen regions in the electronic device.
Illustratively, the application information includes a mapping relationship between the screen area a and the application a, and a mapping relationship between the screen area B and the application B, in which case, the application a and the application B are started, an interface after the application a is started is displayed in the screen area a, and an interface after the application B is started is displayed in the screen area B.
In the embodiment of the application, under the condition of receiving a first input, target information is obtained, wherein the target information comprises a target folding angle and application program information; responding to the first input, adjusting the folding angle of the foldable electronic equipment, and adjusting the folding angle of the foldable electronic equipment to be a target folding angle; and starting a plurality of application programs represented by the application program information, and displaying the interface of the started corresponding application program in each screen area. In the embodiment of the application, a user can start the application program in a split screen mode only through one-time operation, a plurality of application programs are started, and the corresponding interface after the application program is started is displayed on each screen.
In the following, how to create the target information is explained specifically:
optionally, in the case that the first input is received, before the target information is acquired, the method further includes:
under the condition that the foldable electronic equipment starts M application programs in a split screen mode, determining the folding angle of the foldable electronic equipment as a target folding angle, and determining the mapping relation between each screen area of the foldable electronic equipment and the corresponding application program as application program information; and generating target information based on the target folding angle and the application program information.
In this embodiment, if the electronic device starts a plurality of application programs in a split screen manner, the folding angle of the folding screen in this state and the mapping relationship between each screen area and the application program corresponding to each screen area are obtained. It should be understood that if the content displayed in a screen area is an interface after an application program is started, the screen area is determined to correspond to the application program.
And determining the mapping relation between each screen area and the application program corresponding to each screen area as application program information, and combining and packaging the target folding angle and the application program information to obtain target information.
For example, in the process of using the electronic device, if the user adjusts the folding angle of the folding screen of the electronic device to 90 degrees, starts the application program a in the screen area a, and starts the application program B in the screen area B, in this case, it is determined that the target folding angle is 90 degrees; the mapping relationship between the screen area a and the application a, and the mapping relationship between the screen area B and the application B are taken as application information. And generating target information based on the application information and the target folding angle.
Therefore, under the condition that the first input is received, the target information is obtained, the folding angle of the folding screen is 90 degrees, the interface after the application program A is started is displayed in the screen area A, the interface after the application program B is started is displayed in the screen area B, and the split screen starting of the application program is achieved.
It should be understood that, in some embodiments, in the case that the duration of the electronic device starting the multiple applications in a split screen mode is longer than the preset duration, the folding angle of the folded screen and the application corresponding to each screen are obtained, and the target information is generated accordingly.
It should be appreciated that in other embodiments, the target information may be custom created by the user and pre-stored by the user to the electronic device.
Optionally, the adjusting the folding angle of the foldable electronic device to the target folding angle includes:
judging whether the foldable electronic equipment is in a preset space posture or not according to the target information; and under the condition that the foldable electronic equipment is in a preset space posture, adjusting the folding angle of the foldable electronic equipment to the target folding angle.
In this embodiment, whether the electronic device is in the preset space posture is determined according to the target information, where the preset space posture is a space posture in which the folding angle of the folding screen can be adjusted to reach the target folding angle. Please refer to the following embodiments for a specific technical solution for determining whether the electronic device is in the preset spatial attitude.
Under the condition that electronic equipment is in the space gesture of predetermineeing, it is in reasonable space gesture to show folding screen, folds folding screen under above-mentioned space gesture, can avoid electronic equipment to damage at folding in-process, for example, can avoid electronic equipment to drop at the in-process of adjustment folding angle.
In this embodiment, the folding screen is folded only when the electronic device is in the preset spatial posture, so that the electronic device is prevented from being damaged in the process of adjusting the folding angle.
Optionally, the determining, according to the target information, whether the foldable electronic device is in a preset spatial posture includes:
acquiring a starting space attitude and a target space attitude of the foldable electronic equipment, and determining that the foldable electronic equipment is in a preset space attitude under the condition that the starting space attitude is the same as the target space attitude.
In this embodiment, the target information further includes target spatial posture information, and the target information may be analyzed to obtain a target spatial posture of the electronic device, where the target spatial posture is a spatial posture of the electronic device when the folding angle of the foldable electronic device is the target folding angle.
It should be understood that the target spatial positions of the foldable screen generally include a first spatial position and a second spatial position, for example, referring to fig. 2, the foldable screen of the electronic device in the first spatial position in fig. 2 is in a vertical screen position; the folding screen of the electronic device in the second spatial posture is in a landscape screen posture.
It is also understood that in the case where the target spatial attitude of the electronic device is the second spatial attitude, the at least one screen of the electronic device is parallel to the horizontal plane; in the case that the target space of the electronic device is in the first spatial attitude, all screens of the electronic device are perpendicular to the horizontal plane.
In this embodiment, the spatial attitude of the electronic device may be acquired by a gyroscope or other elements built in the electronic device. The starting spatial attitude is a spatial attitude of the electronic device before the folding angle is adjusted, and it should be understood that the starting spatial attitude also includes a first spatial attitude and a second spatial attitude, which are the same as the target spatial attitude.
For clarity of illustration of the present embodiment, please refer to fig. 2, the target spatial posture of the electronic device shown in fig. 2 is a second spatial posture, and the foldable screen is placed in a landscape mode in the second spatial posture.
As shown in fig. 2, the starting spatial gesture of the electronic device may include 2 gestures, and in a case that the target spatial gesture of the electronic device is the second spatial gesture shown in fig. 2, if the starting spatial gesture of the electronic device is the first spatial gesture, the starting spatial gesture of the electronic device is different from the target spatial gesture, and in this case, adjusting the folding angle of the folding screen may cause the electronic device to drop during the process of separately starting a plurality of applications, thereby causing device damage.
In the case that the target spatial posture of the electronic device is the second spatial posture shown in fig. 2, if the starting spatial posture of the electronic device is also the second spatial posture, then the starting spatial posture and the target spatial posture of the electronic device are the same, and the folding angle of the folding screen can be adjusted. As shown in fig. 2, the folding angle of the electronic device may be adjusted to the target folding angle θ, and the interface after the application a is started is displayed in one screen, and the interface after the application B is started is displayed in another screen.
It should be understood that, in some embodiments, after receiving the first input and acquiring the target information, the electronic device folds the folding screen directly according to the target information, and starts different applications in a split screen manner, without determining whether the electronic device is in the preset spatial posture.
Optionally, the method further comprises:
under the condition that the foldable electronic equipment receives a call request and receives input for adjusting the folding angle of the foldable electronic equipment, determining the folding angle of the foldable electronic equipment before adjustment as a target folding angle, and determining the mapping relation between each screen area of the foldable electronic equipment before adjustment and a corresponding application program as application program information; and under the condition that the foldable electronic equipment is not in a call state and the folding angle of the foldable electronic equipment is a target folding angle, starting an application program corresponding to each screen area of the foldable electronic equipment according to the application program information, and displaying an interface of the started corresponding application program in each screen area.
The starting method of the application program provided by the application program can be further applied to the following scenes:
and the user sets the folding angle of the folding screen to be 90 degrees, and starts an application program A and an application program B, wherein the content of the started application program A is displayed in a screen area A, and the content of the started application program B is displayed in a screen area B. And under the condition that the electronic equipment receives a call request, the user adjusts the folding angle of the folding screen to be 180 degrees, exits the application program A and the application program B, and executes corresponding operation on the electronic equipment based on the call request so as to answer the call.
In the above case, the electronic device sets the target folding angle to 90 degrees, and takes the mapping relationship between the screen region a and the application a and the mapping relationship between the screen region B and the application B as the application information. Target information is generated based on the target fold angle and the application information.
After the user finishes the call, if the electronic device detects that the folding angle of the folding screen is 90 degrees, the application program A and the application program B are started, the interface after the application program A is started is displayed on the screen area A, and the interface after the application program B is started is displayed on the screen area B.
Optionally, after determining whether the foldable electronic device is in the preset spatial posture, the method further includes:
and sending a reminding message to prompt a user to adjust the foldable electronic equipment under the condition that the foldable electronic equipment is not in the preset space posture so as to enable the foldable electronic equipment to be in the preset space state.
In this embodiment, when the electronic device is not in the preset spatial posture, it indicates that the foldable screen is in the unreasonable spatial posture, and if the foldable screen is folded in the spatial posture, the electronic device may fall down in the process of adjusting the folding angle, thereby damaging the electronic device.
In this case, a prompt message is sent to prompt the user to adjust the electronic device to the preset space state.
In an alternative embodiment, an animation may be displayed on a folding screen of the electronic device, and the user is guided to adjust the spatial posture of the electronic device by means of animation demonstration.
In another optional implementation mode, a reminding voice can be sent out, so that the user can adjust the spatial posture of the electronic equipment according to the operation indicated by the reminding voice.
In another alternative embodiment, text information is displayed on the folding screen of the electronic device, so that the user can adjust the spatial posture of the electronic device according to the text information.
In this embodiment, when the electronic device is not in the preset spatial posture, the corresponding prompt information is sent to prompt the user to adjust the spatial posture of the electronic device to the preset spatial posture, so that the electronic device is prevented from being damaged in the process of adjusting the folding angle, and the safety of the electronic device in the process of starting a plurality of application programs in a split screen mode is guaranteed.
As shown in fig. 3, the
apparatus200 for starting an application includes:
a
receiving module201, configured to obtain target information when a first input is received;
a
folding module202, configured to adjust a folding angle of the foldable electronic device to the target folding angle in response to the first input;
the
first starting module203 is configured to start M application programs represented by the application program information, and display a corresponding interface after the application program is started in each screen area.
Optionally, the
starting apparatus200 of the application further includes:
the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining the folding angle of the foldable electronic equipment as a target folding angle under the condition that the foldable electronic equipment starts M application programs in a split screen mode, and determining the mapping relation between each screen area of the foldable electronic equipment and the corresponding application program as application program information;
and the generating module is used for generating target information based on the target folding angle and the application program information.
Optionally, the
folding module202 comprises:
the judging unit is used for judging whether the foldable electronic equipment is in a preset space posture or not according to the target information;
a folding unit, configured to adjust a folding angle of the foldable electronic device to the target folding angle when the foldable electronic device is in a preset spatial posture.
Optionally, the determining unit is further configured to:
acquiring a starting space attitude and a target space attitude of the foldable electronic equipment, and determining that the foldable electronic equipment is in a preset space attitude under the condition that the starting space attitude is the same as the target space attitude.
Optionally, the
starting apparatus200 of the application further includes:
the second determining module is used for determining the folding angle of the foldable electronic equipment before adjustment as a target folding angle under the conditions that the foldable electronic equipment receives a call request and receives input for adjusting the folding angle of the foldable electronic equipment, and determining the mapping relation between each screen area of the foldable electronic equipment before adjustment and a corresponding application program as application program information;
and the second starting module is used for starting the application program corresponding to each screen area of the foldable electronic equipment according to the application program information and displaying the interface of the started corresponding application program in each screen area under the condition that the foldable electronic equipment is not in a call state and the folding angle of the foldable electronic equipment is a target folding angle.
The starting device of the application program in the embodiment of the present application may be a mobile terminal, or may be a component, an integrated circuit, or a chip in the terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The starting device of the application program in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The starting device of the application program provided in the embodiment of the present application can implement each process implemented by the starting method of the application program in the method embodiment of fig. 1, and is not described here again to avoid repetition.
In the embodiment of the application, under the condition of receiving a first input, target information is obtained, wherein the target information comprises a target folding angle and application program information; responding to the first input, adjusting the folding angle of the foldable electronic equipment, and adjusting the folding angle of the foldable electronic equipment to be a target folding angle; and starting a plurality of application programs represented by the application program information, and displaying the interface of the started corresponding application program in each screen area. In the embodiment of the application, a user can start the application program in a split screen mode only through one-time operation, a plurality of application programs are started, and the corresponding interface after the application program is started is displayed on each screen.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a
processor310, a
memory309, and a program or an instruction stored in the
memory309 and capable of being executed on the
processor310, where the program or the instruction is executed by the
processor310 to implement each process of the foregoing starting method embodiment of the application, and can achieve the same technical effect, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The
electronic device300 includes, but is not limited to:
radio frequency unit301,
network module302,
audio output unit303,
input unit304,
sensor305,
display unit306,
user input unit307,
interface unit308,
memory309, and
processor310.
Those skilled in the art will appreciate that the
electronic device300 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the
processor310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The
processor310 is configured to, in a case that a first input is received, obtain target information;
adjusting a folding angle of the foldable electronic device to a target folding angle in response to the first input;
and starting M application programs represented by the application program information, and displaying the interfaces of the started corresponding application programs in each screen area.
Optionally, the
processor310 is further configured to determine, when the foldable electronic device starts M applications in a split screen manner, a folding angle of the foldable electronic device as a target folding angle, and determine a mapping relationship between each screen area of the foldable electronic device and a corresponding application as application information;
and generating target information based on the target folding angle and the application program information.
Optionally, the
processor310 is further configured to determine whether the foldable electronic device is in a preset spatial posture according to the target information;
and under the condition that the foldable electronic equipment is in a preset space posture, adjusting the folding angle of the foldable electronic equipment to the target folding angle.
Optionally, the
processor310 is further configured to obtain a starting spatial posture and a target spatial posture of the foldable electronic device, and determine that the foldable electronic device is in a preset spatial posture under the condition that the starting spatial posture is the same as the target spatial posture.
Optionally, the
processor310 is further configured to, when the foldable electronic device receives a call request and receives an input for adjusting a folding angle of the foldable electronic device, determine the folding angle of the foldable electronic device before adjustment as a target folding angle, and determine a mapping relationship between each screen area of the foldable electronic device before adjustment and a corresponding application as application information;
and under the condition that the foldable electronic equipment is not in a call state and the folding angle of the foldable electronic equipment is a target folding angle, starting an application program corresponding to each screen area of the foldable electronic equipment according to the application program information, and displaying an interface of the started corresponding application program in each screen area.
In the embodiment of the application, under the condition of receiving a first input, target information is obtained, wherein the target information comprises a target folding angle and application program information; responding to the first input, adjusting the folding angle of the foldable electronic equipment, and adjusting the folding angle of the foldable electronic equipment to be a target folding angle; and starting a plurality of application programs represented by the application program information, and displaying the interface of the started corresponding application program in each screen area. In the embodiment of the application, a user can start the application program in a split screen mode only through one-time operation, a plurality of application programs are started, and the corresponding interface after the application program is started is displayed on each screen.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned method for starting an application program, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the starting method of the application program, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 (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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.