CN108170362B - Application running state control method and mobile terminal - Google Patents
Application running state control method and mobile terminal Download PDFInfo
- Publication number
- CN108170362B CN108170362B CN201711462829.3A CN201711462829A CN108170362B CN 108170362 B CN108170362 B CN 108170362B CN 201711462829 A CN201711462829 A CN 201711462829A CN 108170362 B CN108170362 B CN 108170362B
- Authority
- CN
- China
- Prior art keywords
- application
- foreground
- touch
- switched
- applications
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides an application running state control method and a mobile terminal, wherein the method comprises the following steps: receiving touch operation of a user, and determining foreground application running on a current foreground; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue running, so that a user can control other applications on the foreground, and user experience is improved; in addition, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the operation experience of the user is improved.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an application running state control method and a mobile terminal.
Background
At present, with the rapid development of mobile communication technology, mobile terminals (such as mobile phones) have become indispensable electronic consumer products in people's daily life, and with the increasing popularization of smart phones, smart phones have been integrated into various aspects of life, for example, smart phones have become main electronic products for information interaction between people. Meanwhile, the smart phone application also brings more profit opportunities to more service providers, each service provider develops respective application programs, and users install corresponding application programs, such as game applications, video applications, chat applications, shopping applications and the like, in the smart phone according to respective actual requirements.
Currently, related technologies provide an application running state control method, which mainly includes: judging whether the target application is foreground application, if the target application is determined to be foreground application, setting the current state of the target application to be an operating state, and displaying an interactive interface of the target application on a display screen frame by frame; and if the target application is determined to be the background application, setting the current state of the target application to be a suspended state (dormant state), and enabling the interactive interface of the target application to be still. When a certain application of the mobile terminal is actually operated, a certain invalid information interface may exist in the running process of the application, for example, for a video application, an advertisement playing interface may be regarded as an invalid information interface, for example, for a game application, a process of waiting for other participants to operate a game may be regarded as an invalid information interface, and for any application, an interactive interface which is not interested or concerned by a user may exist, and such an interactive interface may be regarded as an invalid information interface. Aiming at the condition that a target application runs in a foreground and receives an instruction for switching a new application to the foreground, the target application is covered by the new application and is automatically adjusted to the background as the new application is switched to the foreground, and the target application enters a pause state (a sleep state), so that an invalid information interface of the application can be displayed on a display screen frame by frame only when the application is positioned in the foreground; and once the application is tuned to the background, the application stays in a certain invalid information interface until the application is tuned to the foreground again, and the application is restored from the suspended state to the running state.
In summary, for any application of the mobile terminal, after the application is switched from the foreground application to the background application, the state of the application is automatically switched to the suspended state. Therefore, the application can be kept running only when the application is the foreground application, so that the user cannot operate other applications in the process of keeping the running state of the application, and the user experience is reduced.
Disclosure of Invention
The embodiment of the invention aims to provide an application running state control method and a mobile terminal, so as to solve the problem that a user cannot operate other applications and the user experience is reduced in the process that the application keeps a running state.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an application running state control method, including:
receiving touch operation of a user, and determining foreground application running on a current foreground;
determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application;
and if the foreground application is a first application and the target application is a second application, controlling the foreground application to be switched to a background and then to continue to run, and controlling the target application to be transferred to the foreground to run, wherein the second application is a related application of the first application.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the touch operation receiving module is used for receiving touch operation of a user;
the foreground application determining module is used for determining the foreground application which is currently running in the foreground;
the target application determining module is used for determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application;
and the application running control module is used for controlling the foreground application to be switched to the background and then to continue running and controlling the target application to be switched to the foreground to run if the foreground application is the first application and the target application is the second application, wherein the second application is the associated application of the first application.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the application execution state control method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the application running state control method according to the first aspect are implemented.
The application running state control method and the mobile terminal in the embodiment of the invention receive the touch operation of a user and determine the foreground application running on the current foreground; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating an application running state control method according to an embodiment of the present invention;
fig. 2a is a schematic diagram illustrating a first effect of a display interface of a mobile terminal according to an embodiment of the present invention;
fig. 2b is a schematic diagram illustrating a first effect of a foreground and background application interface of a mobile terminal according to an embodiment of the present invention;
fig. 2c is a schematic diagram illustrating a second effect of a foreground and background application interface of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating an application running state control method according to an embodiment of the present invention;
fig. 4a is a first schematic diagram of a touch operation performed on a touch screen of a mobile terminal according to an embodiment of the present invention;
fig. 4b is a second schematic diagram of a touch operation performed on a touch screen of a mobile terminal according to an embodiment of the present invention;
fig. 4c is a third schematic diagram of a touch operation performed on a touch screen of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a second effect of a display interface of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a first module composition of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a second module composition of the mobile terminal according to the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. 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 invention.
Fig. 1 is a first flowchart of an application running state control method according to an embodiment of the present invention, and as shown in fig. 1, the method at least includes the following steps:
s101, receiving a touch operation of a user, and determining a foreground application currently running on a foreground, where the touch operation may be a sliding operation along a preset direction, or other touch operations, and the foreground application includes: applications that need to remain running in the background.
And S102, determining the target application to be switched to the foreground for running according to the received touch operation and the determined foreground application. For example, when a video application is running in the foreground, if a preset touch operation input by a user is received, one application associated with the video application is used as a target application to be switched to the foreground for running.
And S103, if the foreground application is a first application and the target application is a second application, controlling the foreground application to be switched to the background and then to continue to run, and controlling the target application to be switched to the foreground to run, wherein the first application is an application which keeps running after being switched to the background from the foreground, and the second application is a related application of the first application.
In the embodiment provided by the invention, the touch operation of a user is received, and the foreground application which is running on the current foreground is determined; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
Wherein, for a certain application, the state of the application includes: the first application is in a running state no matter in the foreground or in the background, and the keeping running means controlling the first application to continue running in the background. When the first application keeps running in the background, the display coordinate range where the interactive interface of the first application is located is not within the coordinate range of the display screen, at the moment, the interactive interface of the second application is displayed on the display screen, and the interactive interface of the first application and the interactive interface of the second application are not overlapped; or the display coordinate range of the interactive interface of the first application is within the coordinate range of the display screen, the interactive interface of the second application is displayed on the uppermost layer of the display screen at the moment, and the interactive interface of the first application is not covered by the interactive interface of the second application, so that the interactive interface of the first application cannot be displayed on the display screen during background operation, and the operation parameters of the first application during background operation are the same as the operation parameters of the first application during foreground operation. For example, for a foreground application of a mobile terminal, when the foreground application is running an invalid information interface, other applications can be called to the foreground, so that a user can operate the other applications, at this time, the original foreground application is moved to the background, changed into a background application without displaying an interactive interface on a display screen or changed into a background application without displaying the interactive interface on the top layer of the display screen, and meanwhile, the application is kept running continuously on the background, so that the time for the user to wait for the interactive interface to be displayed on the display screen frame by frame is reduced.
Specifically, in step S103, if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue to operate after being switched to the background, and controlling the target application to be tuned to the foreground for operation specifically includes:
and moving the first application from the foreground stack to a target stack, wherein the target stack is created in advance, the hierarchy of the target stack is the same as that of the foreground stack, and the display parameters, corresponding to the foreground stack and the target stack, for indicating the size of the application display interface are all consistent with the size of the display screen. In specific implementation, the target stack and the foreground stack are two different stacks, and at least two applications can be run simultaneously by adopting a stack splitting management mode.
Controlling the first application to continue running in the target stack, controlling the second application to run in the foreground stack, controlling the interactive interface of the second application to be displayed on the display screen, and controlling the display coordinate range of the interactive interface of the first application not to be within the coordinate range of the display screen, or controlling the display coordinate range of the interactive interface of the first application to be within the coordinate range of the display screen and the interactive interface of the second application to be displayed on the uppermost layer of the display screen.
Specifically, as the level of the target stack is the same as that of the foreground stack, and the target stack contains one application, the application in the target stack cannot be shielded because the application is transferred to the background and is always in a visible state, so that the application in the target stack cannot lose focus, and the system automatically controls the first application to continue to run in the background; meanwhile, the display parameters which correspond to the foreground stack and the target stack and are used for indicating the size of the application display interface are consistent with the size of the display screen, so that the interactive interface of the application which is transferred to the foreground can be displayed in a full screen mode.
In addition, considering that each stack may only include one application or may include a plurality of applications, and in case that the target stack includes a plurality of applications, after moving the first application from the foreground stack to the target stack, the method further includes:
placing the first application at the topmost end of the target stack; that is to say, not only the level of the target stack is the same as the level of the foreground stack, but also the first application needs to be placed at the topmost end of the target stack, so that the stack where the first application is located is in a visible state, and the first application is also in a visible state, and at this time, the system automatically controls the first application to continue to run in the background.
Specifically, when detecting that a certain application is to enter a background from a foreground, judging whether the application needs to be kept running in the background, if so, moving the application from the foreground stack to a target stack, placing the application at the topmost end of the target stack, and controlling the application to run in the target stack. The target stack is the same as the foreground stack in level, so that the application switched to the background is kept running.
Specifically, the following application scenarios are described, and the first application and the second application corresponding to each application scenario specifically are:
for example, when a user watches a certain video by using a video application, an advertisement with preset time is usually played at the beginning or in the middle, during the period, the user may need to call a chat application to receive and send messages or to brush friends to view the latest dynamic state, after the advertisement is played, the user needs to switch back to the video application to watch a video film, so that the video application and the chat application are switched back and forth, and the video application and the chat application are ensured to run at the same time in the foreground and background, and for the application scene, the video application is a main application, namely a first application, and the chat application is a related application of the video application, namely a second application;
as shown in fig. 2a, an application currently running in the foreground is a video application, when the video application cannot skip an advertisement during playing the advertisement, a user needs to operate the chat application in the foreground to check a latest dynamic state around friends, and wants the video application to continue playing the video advertisement in the background, the user can execute a first touch operation on the touch display screen, and at this time, after receiving the first touch operation, the mobile terminal automatically identifies that the chat application needs to be called out to the foreground; as shown in fig. 2b, the video application is retracted and hidden to the background, the video application continues to play the advertisement, and meanwhile, the chat application is tuned to the foreground for operation, after the advertisement of the video application is played, the user can execute a second touch operation on the touch display screen, and at this time, after receiving the second touch operation, the mobile terminal automatically identifies that the video application needs to be tuned out to the foreground; as shown in fig. 2c, the video application is switched back to foreground operation and the chat application is switched to background.
For another example, when a user uses a game application to play a multiplayer online game, a process of waiting for other participants to operate the game generally exists, during which the user may need to call the information application to view real-time news information, and when the user needs to operate a game character, the user needs to switch back to the game application to realize switching between the game application and the information application, and ensure that the game application and the information application run simultaneously in the foreground and background, for the application scenario, the game application is a primary application, i.e., a first application, and the information application is a secondary application, i.e., a related application of the game application.
It should be noted that the above application scenarios are specific examples provided for easy understanding, and do not limit the technical solution of the present invention.
As shown in fig. 3, before receiving the touch operation of the user in S101 and determining the foreground application currently running on the foreground, the method further includes:
and S104, setting at least one application installed in the mobile terminal as a second application associated with the first application, wherein only the second application can be set, at this time, a foreground application before the second application is called for the first time is regarded as the first application, and the second application and the first application have an association relationship.
Specifically, based on the above application scenario, in consideration that different main applications may correspond to different associated applications, in order to implement accurate switching between the main applications and the associated applications, a corresponding relationship between the main applications and at least one associated application needs to be established in advance, that is, the number of the first applications is multiple, each first application corresponds to a respective second application, and based on this, the above S104 sets at least one application installed in the mobile terminal as the second application associated with the first application, and specifically includes:
setting at least one application installed in the mobile terminal as a second application associated with each first application;
and storing the corresponding relation between the first application and at least one second application.
Correspondingly, the step S102 of determining the target application to be switched to the foreground for operation according to the received touch operation and the determined foreground application specifically includes:
and determining the target application to be switched to the foreground for operation according to the pre-stored corresponding relation, the received touch operation and the determined foreground application.
Furthermore, in order to prevent the touch gesture for indicating to call out the second application or the touch gesture for indicating to call out the first application from colliding with the existing touch gesture, the situation of wrong response control due to misrecognition is avoided, the purpose of accurate response control is achieved, unnecessary trouble is avoided from being brought to a user, and user experience is improved. Based on the above, the touch display screen of the mobile terminal is a full screen, and the top end of the full screen is provided with a non-touch area with a preset shape;
and the received touch operation or the detected touch gesture acts on the touch area within the peripheral preset range of the non-touch area.
Specifically, one application may be set as a second application associated with a certain first application in advance according to actual requirements of different users, and multiple applications may also be set as second applications associated with a certain first application in advance, where the number of the second applications is one; correspondingly, the step S102 of determining the target application to be switched to the foreground for operation according to the received touch operation and the determined foreground application specifically includes:
if the touch control operation is a first touch control gesture and the foreground application is the first application, determining a second application corresponding to the first application as a target application to be switched to the foreground for operation;
the first touch gesture may be set as a gesture indicating to call out the second application in advance, as shown in fig. 4a, the first touch gesture may slide to the left and below at a preset angle, if the foreground application is the first application, the second application associated with the first application needs to be called out by indicating, and the first application is packed up.
Wherein, the number of the second applications is a plurality; correspondingly, the step S102 of determining the target application to be switched to the foreground for operation according to the received touch operation and the determined foreground application specifically includes:
(1) if the touch control operation is a second touch control gesture and the foreground application is the first application, taking the application with the minimum serial number in the second applications as a target application to be switched to the foreground for operation;
the second touch gesture may be the same as the first touch gesture, and at this time, the first touch gesture is used to instruct the second application to be called out in a positive sequence, and the first touch gesture may slide to the lower left at a preset angle, and if the foreground application is the first application and is called out in a positive sequence manner according to the first preset sequence, the foreground application instructs that the application with the smallest sequence number in the plurality of second applications associated with the first application needs to be called out, and the first application is retracted.
(2) Based on the foregoing manner of calling out the second application, considering that when the number of the second applications is large, if the second application with the largest sequence number needs to be called out currently, multiple sliding operations are required to call out the required second application, which results in low efficiency of calling out the second application, and based on this, the S102 determines, according to the received touch operation and the determined foreground application, the target application to be switched to the foreground for operation, specifically including:
if the touch control operation is a third touch control gesture and the foreground application is the first application, taking the application with the largest sequence number in the second applications as a target application to be switched to the foreground for operation;
the third touch gesture may be a gesture indicating that the second application is called out in a reverse order (in a case where the number of the second applications is multiple), the third touch gesture may slide to the lower right at a preset angle, and is different from the first touch gesture and the second touch gesture, if the foreground application is the first application and is called out in a reverse order manner according to a second preset order, the application with the largest sequence number in the multiple second applications associated with the first application is indicated to be called out, and the first application is retracted.
In the embodiment provided by the invention, when the number of the second applications is large, if the foreground application is the first application, the last second application can be quickly called out in a reverse order mode, the first second application can be quickly called out in a forward order mode, if the sequence of the second application to be called out is earlier, the second touch gesture is adopted for calling out, and if the sequence of the second application to be called out is later, the third touch gesture is adopted for calling out, so that a user can execute the corresponding touch gesture on the touch display screen based on the sequence condition of the second application which needs to be called out actually, and can quickly call out the needed second application by adopting the least sliding gesture even if the number of the second applications is large, thereby improving the calling-out speed of the second application.
Furthermore, after the second application is transferred to the foreground to run and the first application is switched to the background to keep running, the first application can be quickly transferred out through executing a corresponding touch gesture on the display screen, and the second application running in the foreground can be quickly retracted.
Specifically, for the case that the number of the second applications is one, after controlling the foreground application to switch to the background and then continue to run and controlling the target application to switch to the foreground and run in S103, the method further includes:
and if the fourth touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground for running.
The fourth touch gesture may be the same as the third touch gesture, where the third touch gesture is used to instruct to pack up the second application (in a case where the number of the second applications is one), as shown in fig. 4b, the third touch gesture may slide to the lower right at a preset angle, if the foreground application is the second application, the third touch gesture instructs to pack up the second application, and calls out the first application matched with the second application, and therefore, when the second application is running in the foreground, the user may quickly call out the first application corresponding to the second application by a next sliding operation.
Specifically, for the case that the number of the second applications is multiple, after controlling the foreground application to switch to the background and then continue to run and controlling the target application to tune to the foreground to run in S103, the method further includes:
(1) if the fifth touch gesture is detected and the foreground application is the second application, selecting one application from the plurality of second applications according to a first preset sequence to switch to the foreground operation;
the fifth touch gesture can be the same as the second touch gesture, because the second touch gesture can be the same as the first touch gesture, at the moment, the first touch gesture is used for indicating the second application to be called out in a positive sequence, the first touch gesture can slide to the lower left direction at a preset angle, if the foreground application is the second application, the second application which is one bit larger than the serial number of the foreground application in a plurality of second applications associated with the first application running in the current background is indicated to be called out, the second application running in the current foreground is packed up, and at the moment, the corresponding second applications can be sequentially called out in a positive sequence mode.
(2) Based on the above manner of calling out the second application, considering that when the number of the second applications is large, only the second applications are sequentially called out according to the first preset sequence, if the second applications with large sequence numbers need to be called out currently, multiple sliding operations are required to call out the required second applications, which results in low efficiency of calling out the second applications, and based on this, after S103 controls the foreground application to switch to the background and continue to operate, and controls the target application to switch to the foreground and operate, the method further includes:
if a sixth touch gesture is detected and the foreground application is the second application, selecting one application from the plurality of second applications according to a second preset sequence to switch to the foreground operation;
the sixth touch gesture may be the same as the third touch gesture, where the third touch gesture is used to instruct the second application to be called out in a reverse order (in a case where the number of the second applications is multiple), the third touch gesture may slide to the lower right at a preset angle, and if the foreground application is the second application, which is one bit smaller than the serial number of the foreground application, in the multiple second applications associated with the first application running in the current background is instructed to be called out to pack up the second application running in the current background, and at this time, the corresponding second applications may be sequentially called out in a reverse order.
In the embodiment of the present invention, when the number of the second applications is larger, if the foreground application is the second application, the second application with the sequence number smaller by one can be quickly called in a reverse order manner, the second application with the sequence number larger by one can be quickly called in a forward order manner, if the sequence of the second application to be called out is behind the second application running in the current foreground, calling out by adopting a second touch gesture, if the sequence of the second application to be called out is before the second application running in the current foreground, calling out by adopting a third touch gesture, therefore, the user can execute the corresponding touch gesture on the touch display screen based on the sorting condition of the second application which needs to be called out actually and the foreground application which is currently running in the foreground, even if the number of the second applications is large, the required second applications can be quickly called out by adopting the minimum sliding gestures, so that the calling-out speed of the second applications is improved.
(3) Considering that when the number of the second applications is large, the first application may need to be quickly called out under any second application, and based on this, after controlling the foreground application to switch to the background and continue to run, and controlling the target application to switch to the foreground and run in S103, the method further includes:
if the seventh touch gesture is detected and the foreground application is the second application, the first application corresponding to the second application is switched to the foreground for running, wherein the first application is controlled to be switched to the background for running continuously after the second application is switched to the foreground for running, and at the moment, the first application running in the background is switched to the foreground for running.
The seventh touch gesture may be set to a gesture indicating to call out the first application or a gesture indicating to fold up the second application in advance, as shown in fig. 4c, the seventh touch gesture may be a gesture sliding right below, and if the foreground application is any second application, it is indicated that the second application needs to be folded up, and the first application matched with the second application is called out.
Further, in order to realize that when the number of the second applications is large (greater than three), the user can quickly call out the required second application through a sliding operation, so as to improve the calling efficiency of the second application, based on this, the target application is determined by combining the touch parameters of the touch gesture, and correspondingly, the S102 determines the target application to be switched to the foreground for operation according to the received touch operation and the determined foreground application, and specifically includes:
if the touch control operation is an eighth touch control gesture, selecting one application from the plurality of second applications as a target application to be switched to the foreground for operation according to the touch control parameter of the eighth touch control gesture and the foreground application, wherein the touch control parameter comprises at least one of the following: sliding length, touch force and sliding direction.
The eighth touch gesture may be the same as the first touch gesture or the third touch gesture, or may be different from the first touch gesture or the third touch gesture.
Taking the sliding length as the touch parameter, in order to refer to the function of the reference prompt for the user, the receiving, by the S101, the touch operation of the user specifically includes:
after detecting an initial click operation acting on a touch area within a preset range around the non-touch area, displaying a sliding length scale on the touch display screen, taking a sliding operation of a user on the touch display screen as an eighth touch gesture, recording a sliding length corresponding to the sliding operation, and hiding the sliding length scale after detecting that the touch operation is completed, wherein the sliding length scale is used for indicating a serial number of a second application.
As shown in fig. 5, a schematic view of an effect of displaying a sliding length scale on a touch display screen is shown, where "1" in fig. 5 indicates that a sliding operation endpoint is at the position, a second application with a sequence number of 1 is called, and so on, so that a user can refer to the sliding length scale to perform a corresponding sliding operation on the touch display screen by using a sliding length corresponding to the second application to be called, and when the number of the second applications is large (greater than three), the user can quickly call the required second application by performing a sliding operation at a time, thereby improving the calling efficiency of the second application.
In addition, in order to further improve the subsequent calling-out speed of calling the second application from the background to the foreground again, the second application can be continuously operated after being switched to the background by controlling the second application, and the first application is controlled to be called to the foreground for operation, so that the second application can be directly called to the foreground for operation without waking up the second application.
Specifically, the controlling the second application to continue to operate after being switched to the background and controlling the first application to be tuned to the foreground to operate specifically includes:
controlling the first application to be unchanged in the target stack and the second application to be unchanged in the foreground stack, and controlling the interactive interface of the first application to be adjusted to the foreground for display, namely controlling the interactive interface of the first application to be displayed on the display screen;
before the second application enters a pause flow, judging whether the second application is visible in a foreground stack;
if so, controlling the second application to continue executing the running process (namely the resume process), and controlling the display coordinate range of the interactive interface of the second application not to be in the coordinate range of the display screen;
and if not, controlling the second application to enter a pause state.
Specifically, when the first application is switched to the foreground operation, the first application is not moved to the foreground stack, but the first application is kept unchanged in the target stack, and the second application is kept unchanged in the foreground stack, so that the second application in the foreground stack is not covered and is still in a visible state in the foreground stack. Therefore, even if the second application is moved to the background, the second application can be ensured to normally run in the background at the moment because the stack where the second application is located is the foreground stack and the second application is also visible.
After the second application is controlled to skip the pause process, considering that the Android system only allows one application program component (i.e., Activity) in one running state (i.e., resume state) to exist, when a new application is started, if it is determined that the Activity in the resume state already exists, it is determined whether a stack where the current application is located is a foreground stack and the application is visible in the foreground stack, if so, the resume process is continuously executed, and finally 2 applications are in the resume state.
Aiming at the condition that the first application is switched from background operation to foreground operation, the second application which is freely switched between the foreground and the background of the first application can be switched to the background and can also be kept in operation by controlling the first application to be unchanged in the target stack, so that the second application can be directly adjusted to the foreground operation without waking up the second application when the second application needs to be switched from the background to the foreground subsequently.
The application running state control method in the embodiment of the invention comprises the steps of firstly, receiving touch operation of a user and determining foreground application running on a current foreground; then, determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and finally, if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
Corresponding to the application running state control method provided in the foregoing embodiment, based on the same technical concept, an embodiment of the present invention further provides a mobile terminal, and fig. 6 is a schematic diagram illustrating a first module composition of the mobile terminal provided in the embodiment of the present invention, where the mobile terminal is configured to execute the application running state control method described in fig. 1 to 5, and as shown in fig. 6, the mobile terminal includes:
a touch operation receiving module 601, configured to receive a touch operation of a user;
a foreground application determining module 602, configured to determine a foreground application currently running in a foreground;
a target application determining module 603, configured to determine, according to the touch operation and the foreground application, a target application to be switched to a foreground for operation;
the application running control module 604 is configured to, if the foreground application is the first application and the target application is the second application, control the foreground application to continue running after being switched to the background, and control the target application to be tuned to the foreground running, where the second application is an associated application of the first application.
Optionally, as shown in fig. 7, the mobile terminal further includes:
a second application setting module 605, configured to set at least one application installed in the mobile terminal as a second application associated with the first application.
Optionally, the number of the second applications is one; the target application determining module 603 is specifically configured to:
and if the touch control operation is a first touch control gesture and the foreground application is a first application, determining a second application corresponding to the first application as a target application to be switched to the foreground for operation.
Optionally, the number of the second applications is plural; the target application determining module 603 is further specifically configured to:
if the touch control operation is a second touch control gesture and the foreground application is a first application, taking one application with the minimum sequence number in the second applications as a target application to be switched to the foreground for operation;
and if the touch control operation is a third touch control gesture and the foreground application is the first application, taking the application with the largest sequence number in the second applications as a target application to be switched to the foreground for operation.
Optionally, the number of the second applications is one, and the mobile terminal further includes:
and the first control module is used for continuing to operate after controlling the foreground application to be switched to the background and controlling the target application to be switched to the foreground for operation, and if a fourth touch gesture is detected and the foreground application is a second application, switching the first application corresponding to the second application to the foreground for operation.
Optionally, the number of the second applications is multiple, and the mobile terminal further includes:
the second control module is used for continuing to operate after controlling the foreground application to be switched to the background and controlling the target application to be switched to the foreground to operate, and if a fifth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications to be switched to the foreground to operate according to a first preset sequence;
if a sixth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications according to a second preset sequence to switch to the foreground operation;
and if the seventh touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground for running.
Optionally, the number of the second applications is plural; the target application determining module 603 is further specifically configured to:
if the touch operation is an eighth touch gesture and the foreground application is the first application, selecting one application from the plurality of second applications as a target application to be switched to the foreground for operation according to a touch parameter of the eighth touch gesture, wherein the touch parameter includes at least one of the following: sliding length, touch force and sliding direction.
Optionally, the touch display screen of the mobile terminal is a full screen, and a non-touch area in a preset shape is arranged at the top end of the full screen;
and the received touch operation or the detected touch gesture acts on the touch area within the peripheral preset range of the non-touch area.
The mobile terminal in the embodiment of the invention firstly receives the touch operation of a user and determines the foreground application running at the current foreground; then, determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and finally, if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
The mobile terminal provided by the embodiment of the present invention can implement each process in the embodiment corresponding to the application running state control method, and is not described herein again to avoid repetition.
Based on the same technical concept, an embodiment of the present invention further provides a mobile terminal corresponding to the application running state control method provided in the foregoing embodiment, where the device is configured to execute the application running state control method, fig. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, and the mobile terminal 100 shown in fig. 8 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to receive a touch operation of a user, and determine a foreground application currently running on a foreground;
determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application;
and if the foreground application is a first application and the target application is a second application, controlling the foreground application to be switched to a background and then to continue to run, and controlling the target application to be transferred to the foreground to run, wherein the second application is a related application of the first application.
In the embodiment provided by the invention, based on the recognition of foreground application and received touch operation, the corresponding target application is determined, namely, the second application can be rapidly called out, and the first application can be rapidly folded; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
Wherein, the processor 110 is further configured to:
before receiving touch operation of a user and determining a foreground application currently running on a foreground, setting at least one application installed in the mobile terminal as a second application associated with a first application, wherein the second application is an associated application of the first application, and the first application is a main application which needs to be controlled within a preset time period.
The processor 110 is specifically configured to:
the number of the second applications is one; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application, including:
and if the touch control operation is a first touch control gesture and the foreground application is a first application, determining a second application corresponding to the first application as a target application to be switched to the foreground for operation.
The processor 110 is specifically configured to:
the number of the second applications is multiple; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application, including:
if the touch control operation is a second touch control gesture and the foreground application is a first application, taking one application with the minimum sequence number in the second applications as a target application to be switched to the foreground for operation;
and if the touch control operation is a third touch control gesture and the foreground application is the first application, taking the application with the largest sequence number in the second applications as a target application to be switched to the foreground for operation.
Wherein, the processor 110 is further configured to:
and after controlling the foreground application to continue to run after switching to the background and controlling the target application to be turned to the foreground to run, if a fourth touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground to run.
Wherein, the processor 110 is further configured to:
the second applications are controlled to be switched to the background and then continue to run, and the target application is controlled to be switched to the foreground and run, if a fifth touch gesture is detected and the foreground application is the second application, one application is selected from the second applications according to a first preset sequence and switched to the foreground and run;
if a sixth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications according to a second preset sequence to switch to the foreground operation;
and if the seventh touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground for running.
The processor 110 is specifically configured to:
the number of the second applications is multiple; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application, including:
if the touch operation is an eighth touch gesture and the foreground application is the first application, selecting one application from the plurality of second applications as a target application to be switched to the foreground for operation according to a touch parameter of the eighth touch gesture, wherein the touch parameter includes at least one of the following: sliding length, touch force and sliding direction.
The processor 110 is specifically configured to:
the touch display screen of the mobile terminal is a full screen, and a non-touch area in a preset shape is arranged at the top end of the full screen;
and the received touch operation or the detected touch gesture acts on the touch area within the peripheral preset range of the non-touch area.
The mobile terminal 100 in the embodiment of the present invention first receives a touch operation of a user, and determines a foreground application currently running on a foreground; then, determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and finally, if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
It should be noted that, the mobile terminal 100 provided in the embodiment of the present invention is capable of implementing each process implemented by the mobile terminal in the foregoing method embodiments, and details are not described here to avoid repetition.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 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), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. 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 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program 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 109 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 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of being executed on the processor 110, where the computer program, when executed by the processor 110, implements each process of the foregoing application running state control method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
Further, corresponding to the application running state control method provided in the foregoing embodiment, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and when the computer program is executed by the processor 110, the steps of the foregoing application running state control method embodiment are implemented, and the same technical effects can be achieved, and in order to avoid repetition, details are not described here again. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The computer-readable storage medium in the embodiment of the invention firstly receives the touch operation of a user and determines the foreground application currently running on the foreground; then, determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application; and finally, if the foreground application is the first application and the target application is the second application, controlling the foreground application to continue running after being switched to the background, and controlling the target application to be switched to the foreground to run. Determining a corresponding target application based on the recognition of foreground application and received touch operation, namely realizing the quick calling of the second application and the quick retraction of the first application; the first application switched to the background is controlled to continue to run, so that the first application can also keep running when the first application is the background application, and a user can operate other applications in the foreground in the process of keeping running of a certain application, so that the time utilization rate of the user is improved, and the user experience is improved; in addition, for the mobile terminal with the limited screen size, the mode that the front and the back end simultaneously run in multiple tasks is adopted, the size of the display interface of the currently controlled application can be guaranteed to be unchanged, and the user operation experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
It should also 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.
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 (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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the spirit and scope of the invention as defined in the appended claims. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims (17)
1. An application running state control method is applied to a mobile terminal, and is characterized by comprising the following steps:
receiving touch operation of a user, and determining that the current foreground runs a foreground application of an invalid information interface in a user use mode;
determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application;
if the foreground application is a first application and the target application is a second application, controlling the foreground application to continue running after being switched to a background, and controlling the target application to be transferred to the foreground running, wherein a user use mode of the foreground application is associated with a display screen of the mobile terminal, the second application is an associated application of the first application, running parameters of the first application when the first application runs in the background are the same as running parameters of the first application when the first application runs in the user use mode in the foreground, and the invalid information interface is not displayed on the display screen of the mobile terminal or is not displayed on the uppermost layer of the display screen of the mobile terminal.
2. The method of claim 1, further comprising, before receiving a touch operation of a user and determining a foreground application currently running in a foreground:
setting at least one application installed in the mobile terminal as a second application associated with the first application.
3. The method of claim 2, wherein the number of second applications is one; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application, including:
and if the touch control operation is a first touch control gesture and the foreground application is a first application, determining a second application corresponding to the first application as a target application to be switched to the foreground for operation.
4. The method of claim 2, wherein the number of the second applications is plural; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application, including:
if the touch control operation is a second touch control gesture and the foreground application is a first application, taking one application with the minimum sequence number in the second applications as a target application to be switched to the foreground for operation;
and if the touch control operation is a third touch control gesture and the foreground application is the first application, taking the application with the largest sequence number in the second applications as a target application to be switched to the foreground for operation.
5. The method according to claim 2, wherein the number of the second applications is one, and after controlling the foreground application to switch to the background and continue to run and controlling the target application to turn to the foreground and run, the method further comprises:
and if the fourth touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground for running.
6. The method according to claim 2, wherein the number of the second applications is multiple, and after controlling the foreground application to switch to the background and continue to run and controlling the target application to turn to the foreground and run, the method further comprises:
if a fifth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications according to a first preset sequence and switching to the foreground operation;
if a sixth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications according to a second preset sequence to switch to the foreground operation;
and if the seventh touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground for running.
7. The method of claim 2, wherein the number of the second applications is plural; determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application, including:
if the touch operation is an eighth touch gesture and the foreground application is the first application, selecting one application from the plurality of second applications as a target application to be switched to the foreground for operation according to a touch parameter of the eighth touch gesture, wherein the touch parameter includes at least one of the following: sliding length, touch force and sliding direction.
8. The method according to any one of claims 1 to 7, wherein the touch display screen of the mobile terminal is a full screen, and a non-touch area with a preset shape is arranged at the top end of the full screen;
and the received touch operation or the detected touch gesture acts on the touch area within the peripheral preset range of the non-touch area.
9. An application running state control device, applied to a mobile terminal, includes:
the touch operation receiving module is used for receiving touch operation of a user;
the foreground application determining module is used for determining that the current foreground is running foreground application of the invalid information interface in a user use mode;
the target application determining module is used for determining a target application to be switched to a foreground for operation according to the touch operation and the foreground application;
and the application operation control module is used for controlling the foreground application to be continuously operated after being switched to the background and controlling the target application to be transferred to the foreground for operation if the foreground application is a first application and the target application is a second application, wherein the user use mode of the foreground application is associated with the display screen of the mobile terminal, the second application is the associated application of the first application, the operation parameters of the first application in the background operation in the user use mode are the same as the operation parameters of the first application in the foreground operation, and the invalid information interface is not displayed on the display screen of the mobile terminal or is not displayed on the uppermost layer of the display screen of the mobile terminal.
10. The apparatus of claim 9, further comprising:
and the second application setting module is used for setting at least one application installed in the mobile terminal as a second application associated with the first application.
11. The apparatus of claim 10, wherein the number of the second applications is one; the target application determination module is specifically configured to:
and if the touch control operation is a first touch control gesture and the foreground application is a first application, determining a second application corresponding to the first application as a target application to be switched to the foreground for operation.
12. The apparatus of claim 10, wherein the number of the second applications is plural; the target application determining module is further specifically configured to:
if the touch control operation is a second touch control gesture and the foreground application is a first application, taking one application with the minimum sequence number in the second applications as a target application to be switched to the foreground for operation;
and if the touch control operation is a third touch control gesture and the foreground application is the first application, taking the application with the largest sequence number in the second applications as a target application to be switched to the foreground for operation.
13. The apparatus of claim 10, wherein the number of the second applications is one, the apparatus further comprising:
and the first control module is used for continuing to operate after controlling the foreground application to be switched to the background and controlling the target application to be switched to the foreground for operation, and if a fourth touch gesture is detected and the foreground application is a second application, switching the first application corresponding to the second application to the foreground for operation.
14. The apparatus of claim 10, wherein the second application is plural in number, the apparatus further comprising:
the second control module is used for continuing to operate after controlling the foreground application to be switched to the background and controlling the target application to be switched to the foreground to operate, and if a fifth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications to be switched to the foreground to operate according to a first preset sequence;
if a sixth touch gesture is detected and the foreground application is the second application, selecting one application from the second applications according to a second preset sequence to switch to the foreground operation;
and if the seventh touch gesture is detected and the foreground application is the second application, switching the first application corresponding to the second application to the foreground for running.
15. The apparatus of claim 10, wherein the number of the second applications is plural; the target application determining module is further specifically configured to:
if the touch operation is an eighth touch gesture and the foreground application is the first application, selecting one application from the plurality of second applications as a target application to be switched to the foreground for operation according to a touch parameter of the eighth touch gesture, wherein the touch parameter includes at least one of the following: sliding length, touch force and sliding direction.
16. The device according to any one of claims 9 to 15, wherein the touch display screen of the mobile terminal is a full screen, and a non-touch area with a preset shape is arranged at the top end of the full screen;
and the received touch operation or the detected touch gesture acts on the touch area within the peripheral preset range of the non-touch area.
17. A mobile terminal, comprising: processor, memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the application execution state control method according to any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711462829.3A CN108170362B (en) | 2017-12-28 | 2017-12-28 | Application running state control method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711462829.3A CN108170362B (en) | 2017-12-28 | 2017-12-28 | Application running state control method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108170362A CN108170362A (en) | 2018-06-15 |
CN108170362B true CN108170362B (en) | 2020-04-28 |
Family
ID=62519566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711462829.3A Active CN108170362B (en) | 2017-12-28 | 2017-12-28 | Application running state control method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108170362B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381666B (en) * | 2018-12-27 | 2023-08-01 | 北京右划网络科技有限公司 | Control method and device based on sliding gesture, terminal equipment and storage medium |
CN110007936B (en) * | 2019-04-16 | 2022-04-29 | 上海连尚网络科技有限公司 | Data processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520845A (en) * | 2011-11-23 | 2012-06-27 | 优视科技有限公司 | Method and device for mobile terminal to call out thumbnail interface |
CN103902363A (en) * | 2012-12-18 | 2014-07-02 | 上海鼎为电子科技(集团)有限公司 | Electronic device supporting multiple-task switching and switching method |
CN104424484A (en) * | 2013-09-11 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and device for switching and adding entry information for application programs |
CN105630280A (en) * | 2015-10-29 | 2016-06-01 | 东莞酷派软件技术有限公司 | Multi-application switching method and apparatus |
CN105677231A (en) * | 2016-02-23 | 2016-06-15 | 努比亚技术有限公司 | Associated application split-screen display device and method as well as terminal |
CN105700776A (en) * | 2016-02-25 | 2016-06-22 | 努比亚技术有限公司 | Device and method for switching background programs |
CN106155869A (en) * | 2015-04-17 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | The running background control method of terminal applies and device thereof |
CN106371721A (en) * | 2016-08-24 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Application switching method and apparatus, and terminal |
-
2017
- 2017-12-28 CN CN201711462829.3A patent/CN108170362B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520845A (en) * | 2011-11-23 | 2012-06-27 | 优视科技有限公司 | Method and device for mobile terminal to call out thumbnail interface |
CN103902363A (en) * | 2012-12-18 | 2014-07-02 | 上海鼎为电子科技(集团)有限公司 | Electronic device supporting multiple-task switching and switching method |
CN104424484A (en) * | 2013-09-11 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and device for switching and adding entry information for application programs |
CN106155869A (en) * | 2015-04-17 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | The running background control method of terminal applies and device thereof |
CN105630280A (en) * | 2015-10-29 | 2016-06-01 | 东莞酷派软件技术有限公司 | Multi-application switching method and apparatus |
CN105677231A (en) * | 2016-02-23 | 2016-06-15 | 努比亚技术有限公司 | Associated application split-screen display device and method as well as terminal |
CN105700776A (en) * | 2016-02-25 | 2016-06-22 | 努比亚技术有限公司 | Device and method for switching background programs |
CN106371721A (en) * | 2016-08-24 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Application switching method and apparatus, and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108170362A (en) | 2018-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108062190B (en) | Application running state control method and mobile terminal | |
CN108055408B (en) | Application program control method and mobile terminal | |
US11258893B2 (en) | Method for prompting notification message and mobile terminal | |
US20220286503A1 (en) | Synchronization method and electronic device | |
CN108170361B (en) | Application running state control method and mobile terminal | |
WO2016066092A1 (en) | Multimedia playing controlling method and device, and storage medium | |
CN108196947B (en) | Application running state control method and mobile terminal | |
US11658932B2 (en) | Message sending method and terminal device | |
CN110837327B (en) | Message viewing method and terminal | |
CN107613146B (en) | Volume adjustment method and device and mobile terminal | |
CN110058836B (en) | Audio signal output method and terminal equipment | |
WO2021083256A1 (en) | Touch-control response method and electronic device | |
CN109085968B (en) | Screen capturing method and terminal equipment | |
US11165950B2 (en) | Method and apparatus for shooting video, and storage medium | |
CN107957843B (en) | Control method and mobile terminal | |
CN110673770B (en) | Message display method and terminal equipment | |
CN110162254B (en) | Display method and terminal equipment | |
CN110445924B (en) | Network task execution method and terminal equipment | |
CN110049486B (en) | SIM card selection method and terminal equipment | |
CN105094501B (en) | Method, device and system for displaying messages in mobile terminal | |
CN110597437A (en) | Screen capturing method and terminal equipment | |
CN108052258B (en) | Terminal task processing method, task processing device and mobile terminal | |
CN111399715B (en) | Interface display method and electronic equipment | |
CN110167006B (en) | Method for controlling application program to use SIM card and terminal equipment | |
CN109992192B (en) | Interface display method and terminal equipment |
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 |