CN108062190B - Application running state control method and mobile terminal - Google Patents

Application running state control method and mobile terminal Download PDF

Info

Publication number
CN108062190B
CN108062190B CN201711462849.0A CN201711462849A CN108062190B CN 108062190 B CN108062190 B CN 108062190B CN 201711462849 A CN201711462849 A CN 201711462849A CN 108062190 B CN108062190 B CN 108062190B
Authority
CN
China
Prior art keywords
application
icon
foreground
bar
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711462849.0A
Other languages
Chinese (zh)
Other versions
CN108062190A (en
Inventor
孙晨轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711462849.0A priority Critical patent/CN108062190B/en
Publication of CN108062190A publication Critical patent/CN108062190A/en
Application granted granted Critical
Publication of CN108062190B publication Critical patent/CN108062190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The embodiment of the invention provides an application running state control method and a mobile terminal, wherein the method comprises the following steps: when a first application runs in the foreground, receiving a first touch operation of a user for an icon of a second application in a pre-created application icon bar; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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

Application running state control method and mobile terminal
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:
when a first application runs in the foreground, receiving a first touch operation of a user for an icon of a second application in a pre-created application icon bar;
and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application to be switched to the foreground to run.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the first touch operation receiving module is used for receiving a first touch operation of a user for an icon of a second application in a pre-created application icon bar when the first application is running in the foreground;
and the first application running control module is used for responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application to be switched to the foreground to run.
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.
According to the application running state control method and the mobile terminal, when a first application runs in a foreground, a first touch operation of a user for an icon of a second application in a pre-created application icon bar is received; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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. 3a is a schematic diagram illustrating a first display effect of an application icon bar according to an embodiment of the present invention;
fig. 3b is a schematic diagram illustrating a second display effect of the application icon bar according to the embodiment of the present invention;
fig. 4a is a schematic diagram illustrating a first effect of a second application adding operation according to an embodiment of the present invention;
fig. 4b is a schematic diagram illustrating a second effect of the second application adding operation according to the embodiment of the present invention;
fig. 4c is a schematic diagram illustrating a third effect of the second application adding operation according to the embodiment of the present invention;
FIG. 4d is a diagram illustrating a first effect of a second application removal operation according to an embodiment of the present invention;
FIG. 4e is a diagram illustrating a second effect of the second application removal operation according to the embodiment of the present invention;
fig. 4f is a schematic diagram illustrating a first effect of the second application replacement operation according to the embodiment of the present invention;
fig. 4g is a schematic diagram illustrating a second effect of the second application replacement operation according to the embodiment of the present invention;
fig. 5 is a second flowchart illustrating an application running state control method 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.
The embodiment of the invention provides an application running state control method and a mobile terminal, wherein an application icon bar is added, and the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on an icon in the application icon bar; 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.
In the embodiment of the present invention, the mobile terminal may be a mobile phone, an intercom, etc., taking a mobile phone as an example, fig. 1 is a first flowchart of the method for controlling an application running state provided in the embodiment of the present invention, as shown in fig. 1, the method at least includes the following steps:
s101, when the first application is running in foreground, receiving a first touch operation of a user on an icon of a second application in a pre-created application icon bar, where the first touch operation may be a click operation on the icon.
In the process that a user operates a first application in a foreground, a second application needs to be called quickly and keeps the first application to be switched to the background and then continuously run, at the moment, a needed icon of the second application can be added to an application icon bar in advance, so that the user only needs to execute corresponding touch operation on the icon of the second application in the application icon bar created in advance, and after receiving the touch operation, the mobile terminal can automatically identify the second application which the user wants to be switched to the foreground.
And S102, responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run.
For example, an icon of a chat application can be added to an application icon bar in advance, and in the process of controlling a video application in the foreground by a user, if the chat application needs to be called out quickly and the video application is kept running after being switched to the background, the user only needs to click the icon of the chat application in the application icon bar, and after the chat application is switched to the foreground and runs, the video application is automatically switched to the background and kept running.
In the embodiment provided by the invention, when a first application runs in the foreground, a first touch operation of a user for an icon of a second application in a pre-created application icon bar is received; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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.
Further, considering that after the first application is switched to the background and continuously operated, the first application subsequently needs to be switched back to the foreground again for operation, based on this, the step S102 responds to the first touch operation, controls the first application to be switched to the background and continuously operated, and controls the second application corresponding to the touched icon to be switched to the foreground for operation, further includes:
when the second application is running in the foreground, receiving a second touch operation of a user for an icon of the second application running in the foreground in the pre-created application icon bar, wherein the second touch operation can also be a click operation on the icon, that is, the first application running in the background needs to be switched to the foreground to run, so that before the first application is moved to the foreground, the application running in the foreground is the second application, and the second application is switched to the background.
And responding to the second touch operation, controlling the second application corresponding to the touched icon to be switched to the background, and controlling the first application running at the background to be adjusted to the foreground to run. For example, when the chat application is running in the foreground, if the second touch operation is detected, the video application running in the background is automatically switched back to the foreground to run, and the chat application is switched to the background.
Specifically, taking a first application running in the foreground as a video application and a second application to be switched to the foreground as a chat application as an example, wherein an icon of the chat application is added to an application icon bar in advance, so that a user can call and pack the chat application by executing corresponding touch operation on the icon of the chat application in the application icon bar in the process of controlling the video application, specifically:
as shown in fig. 2a, an application currently running in the foreground is a video application, and when the video application cannot skip an advertisement, a user needs to operate a chat application in the foreground to send and receive messages or swipe friends to check the latest dynamic state, and wants the video application to continue playing the video advertisement in the background, if the application icon bar is in a hidden state, the user may first input an application icon bar call-out request, for example, perform a long-press touch operation at a preset position of a display screen, the system will automatically pop up the application icon bar, and the user then performs a corresponding touch operation on an icon of application 1 (i.e., a chat application) in the application icon bar, at this time, after receiving the touch operation, the mobile terminal will automatically recognize 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, if the application icon bar is in a hidden state, the user may first input an application icon bar tuning-out request, for example, a long-press touch operation is performed at a preset position of the display screen, the system automatically pops up the application icon bar, and the user performs a corresponding touch operation on an icon of the application 1 (i.e., the chat application) in the application icon bar, at this time, after receiving the touch operation, the mobile terminal automatically identifies that the video application running at the background is to be tuned out to the foreground, and the application currently running at the foreground is the chat application; 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 the process, the user may need to call the information application to check real-time news information, when the user needs to operate a game character, the user needs to switch back to the game application to realize back-and-forth switching between the game application and the information application, and the game application and the information application are guaranteed to run simultaneously in the foreground and the background.
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.
The application icon bar is created in advance, the application icon bar can be displayed at any edge position of the mobile terminal, such as the upper edge, the lower edge, the left edge or the right edge of a display screen of the mobile terminal, the display position of the application icon bar can be set in a personalized manner according to the actual requirements of the user, and the number of displayable icons in the application icon bar can be set according to the actual requirements of the user, as shown in fig. 3a, the application icon bar is in a display state, a plurality of application icons are displayed in the application icon bar, and the application icons are manually added by the user; specifically, adding the icon of the second application to the application icon bar is realized by a drag operation on the icon of the second application, and based on this, before receiving the first touch operation of the user on the icon of the second application in the application icon bar created in advance in the above S101, the method further includes:
and adding the icon corresponding to the second application to the pre-created application icon column. Wherein the adding process specifically comprises the following steps:
if the icon of the second application is detected to move to the area where the application icon bar is located, displaying the icon of the second application in the application icon bar; if the number of the displayed icons in the application icon bar is equal to the preset number threshold, prompting the user that the application icon bar is full, and prompting the user to select a displayed icon needing to be moved out of the application icon bar; or, a displayed icon is moved out of the application icon bar according to a preset rule (for example, the rightmost icon in the application icon bar is moved out); or determining which displayed icon is moved out of the application icon bar according to the overlap ratio of the area where the icon of the second application is located and the area where the displayed icon is located in the application icon bar, specifically:
if the coincidence degree of the area where the icon of the second application is located and the area where the displayed icon is located in the application icon bar is detected to be larger than a preset threshold value, replacing the displayed icon with the icon of the second application; that is, the user only needs to move the icon of the second application to be added to the application icon bar to the area where the displayed icon to be removed from the application icon bar is located, so that the icon of the second application to be added to the application icon bar can be added to the application icon bar, and the displayed icon to be removed from the application icon bar can be removed from the application icon bar.
In addition, after the icon of the second application is added to the application icon bar, the icon of the second application may need to be removed from the application icon bar, and therefore, after the icon corresponding to the second application is added to the application icon bar, the method further includes:
and removing the displayed icon of the second application from the application icon bar. Wherein, the removing process specifically comprises the following steps:
and if the icon of the second application in the application icon bar is detected to move out of the area where the application icon bar is located, removing the icon of the second application from the application icon bar, and subsequently adding the icons of other applications to the application icon bar.
Further, considering that if an original icon of a second application displayed on the desktop of the mobile terminal is directly moved to the application icon bar, the original arrangement of the desktop may be changed due to the movement of the application icon, based on this, before adding an icon corresponding to the second application to the application icon bar, the method further includes:
generating an icon copy of the application corresponding to the moved icon;
and taking the generated icon copy as an icon to be displayed in the application icon bar.
In the embodiment provided by the invention, the icon copy is created for the application corresponding to the moved icon, the icon copy is displayed in the application icon bar, and meanwhile, the original application icon of the application on the desktop of the mobile terminal is kept unchanged, so that the arrangement mode of all application programs on the desktop of the mobile terminal is ensured to be unchanged, the display position of the application on the desktop is not influenced, the normal operation of a user is not influenced, and when the user needs to open and use one application, the application can be habitually found at the corresponding desktop position.
Further, in order to improve the intelligence of updating the icons in the application icon bar, the system automatically matches the corresponding second application for the first application being operated by the user in the foreground, so that even if the user does not manually add the icons of the second application to the application icon bar in advance, the user can find the required second application in the application icon bar to realize quick call and retraction of the second application, as shown in fig. 3b, the application icon bar is in a display state, and a plurality of application icons are displayed in the application icon bar, where the plurality of application icons displayed in the application icon bar include: the icons manually added into the application icon bar by the user are automatically matched with the system and are added into the icons in the application icon bar; based on this, adding the icon corresponding to the second application to the application icon bar specifically includes:
and if the second application is the recent task, adding the icon of the second application to the application icon bar. Specifically, the application newly added to the background task is determined according to the adding time of each application in the background task list, and if the icon of the application newly added to the background task does not exist in the application icon bar, the determined icon of the application newly added to the background task is added to the application icon bar.
In addition, the second application associated with the first application running in the foreground can be determined based on the historical application switching log of the mobile terminal; wherein the historical application switching log comprises: the recorded data of the foreground and background switching between every two applications is specifically, the application with the highest switching frequency between the first application currently running in the foreground is determined according to the recorded data, and the determined application with the highest switching frequency is used as the second application associated with the first application currently running in the foreground.
And judging whether the determined icon of the second application associated with the first application exists in the application icon bar, wherein the situation indicates that the user does not manually add the icon of the second application into the application icon bar, but the user may need to switch back and forth between the first application and the determined second application associated with the first application in the process of using the first application currently running in the foreground.
If not, the determined icon of the second application associated with the first application is added to the application icon bar, so that even if the user does not manually add the icon of the second application to the application icon bar in advance, the user can find the required second application in the application icon bar, the second application can be rapidly called out and retracted, and the first application can be continuously operated after being switched to the background. And if the number of the displayed icons in the application icon bar is equal to the preset number threshold, replacing the icon with the longest dwell time in the application icon bar with the determined icon of the second application.
Specifically, in order to distinguish from the existing resident bar located at the bottom of the display screen, preferably, the application icon bar is arranged at the upper edge, the left edge or the right edge, taking the application icon bar located at the upper edge of the display screen as an example, if the icon of the application 1 needs to be added to the application icon bar, as shown in fig. 4a, a user long-presses the icon of the application 1 in an application folder of the mobile terminal (for distinguishing from the long-press deletion application operation, where the long-press time or long-press strength may be different from the long-press deletion application operation), a semi-transparent and movable floating icon (i.e., a copy of the icon of the application 1) appears on the icon of the application 1; as shown in fig. 4b, the user moves the floating icon to the area where the application icon bar is located, and if the application icon bar is in a hidden state, the application icon bar is automatically popped up at this time; as shown in fig. 4c, if the number of the displayed icons in the application icon bar is equal to the preset number threshold, selecting an area where the displayed icon to be moved out of the application icon bar is located according to a preset rule to display the floating icon, for example, displaying the floating icon nearby, sequentially moving the rest displayed icons to the right, and automatically removing the icon at the rightmost end, that is, replacing the icon of the application 6 with the icon of the application 1, moving the icon of the application 6 to the right, and moving the application 7 out of the application icon bar.
If the icon of the application 1 needs to be moved out of the application icon bar, as shown in fig. 4d, the user presses the icon of the application 1 in the application icon bar for a long time, and after the icon of the application 1 enters a movable state and the icon of the application 1 is detected to move out of the area where the application icon bar is located, the icon of the application 1 is removed from the application icon bar; as shown in fig. 4e, the original display position of the icon of the application 1 in the application icon column is vacant, and a new application icon is to be subsequently added.
If the icon of the application 1 needs to be added into the application icon bar and the displayed icon of the application 6 needs to be removed from the application icon bar, a user long presses the icon of the application 1 in an application folder of the mobile terminal, and a semi-transparent and movable floating icon (namely an icon copy of the application 1) appears on the icon of the application 1; the user moves the floating icon to the area where the application icon bar is located, and if the application icon bar is in a hidden state, the application icon bar is automatically popped up; the floating icon is moved over the icon of application 6 as shown in fig. 4f, at which point the icon of application 6 already displayed in the application icon bar is replaced with the icon of application 1 as shown in fig. 4 g.
Further, considering that the application icon bar suspended on the surface layer may block the currently running application in the foreground or may occupy a certain area of the display interface, which reduces the user experience, as shown in fig. 5, the method further includes:
and S103, if the third touch operation of the user on the application icon bar is detected or the first touch operation or the second touch operation on the application icon bar is determined not to be detected within the preset time, hiding the application icon bar until the application icon bar call-out request is received. The third touch operation may be a long-press operation performed in an area of the application icon bar other than the displayed icon, the call-out request may be generated based on a long-press operation performed by a user at a preset position or based on a detected movement of an application icon to a display area of the application icon bar after being popped up, and the application icon bar is automatically popped up after the call-out request of the application icon bar is received.
Specifically, 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, the step S102, in response to the first touch operation, of controlling the first application to continue to run after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run specifically includes:
and responding to the first touch operation, and moving the first application from the foreground stack to the 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.
Further, for the situation of performing foreground-background switching between the first application and the second application, in order to further improve the call-out speed of subsequently calling the second application from the background to the foreground again, which is convenient for free switching between the two applications, and ensure that the two applications do not interfere with each other and run simultaneously, when the first application is moved from the background to the foreground again, it is necessary to ensure that the second application currently running in the foreground is moved from the foreground to the background and keeps the second application running continuously in the background, so that when the second application is switched to the foreground again, the second application is not required to be waken up, that is, the second application can be directly called to the foreground to run, based on which, the above-mentioned second touch operation is responded, the second application is controlled to be switched to the background, and the first application running in the background is controlled to be tuned to the foreground to run, specifically including:
responding to the second touch operation, 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, resume process), and controlling the display coordinate range of the interactive interface of the second application not to be within the coordinate range of the display screen, or controlling the display coordinate range of the interactive interface of the second application to be within the coordinate range of the display screen and the interactive interface of the first application to be displayed on the uppermost layer 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.
Wherein, for the case that any one of the two applications needs to keep running in the background when switched to the background, the chat application icon is added to the application icon bar, at this time, the first application is a video application, the second application is a chat application, since the chat application is already added to the application icon bar, in the process that the user operates the video application in the foreground, if the chat application needs to be called out quickly and the video application is kept running after being switched to the background, the user only needs to click the chat application icon in the application icon bar, after the chat application is switched to the foreground, the video application is switched to the background and kept running, if the video advertisement is just finished when the video application is in the background, the video application needs to be switched back to run at this time, and the corresponding chat application is automatically switched to the background, in consideration of the situation that the chat application needs to be switched back and forth subsequently, in order to rapidly call out the chat application, by the above method, the chat application can be controlled to be switched to the background to continue running, the video application is switched back to the foreground to run, and the chat application is switched to the background to continue running.
The application running state control method in the embodiment of the invention receives a first touch operation of a user for an icon of a second application in a pre-established application icon bar when a first application is running in a foreground; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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 first touch operation receiving module 601, configured to receive a first touch operation of a user on an icon of a second application in a pre-created application icon bar when a first application is running in a foreground;
the first application operation control module 602 is configured to respond to the first touch operation, control the first application to continue to operate after being switched to the background, and control the second application to be switched to the foreground to operate.
Optionally, as shown in fig. 7, the mobile terminal further includes:
a second touch operation receiving module 603, configured to, after responding to the first touch operation, control the first application to continue to run after switching to a background, and control the second application to continue to run after switching to a foreground, and when the second application is running in the foreground, receive a second touch operation of a user for an icon of the second application in a pre-created application icon bar;
the second application running control module 604 is configured to respond to the second touch operation, control the second application to be switched to the background, and control the first application running in the background to be tuned to the foreground to run.
Optionally, the mobile terminal further includes:
the first icon bar updating module 605 is configured to add an icon corresponding to a second application to the application icon bar created in advance before receiving a first touch operation of a user on the icon of the second application in the application icon bar.
Optionally, the first icon bar updating module 605 is specifically configured to:
and if the second application is the recent task, adding the icon of the second application to the application icon bar.
Optionally, the first icon bar updating module 605 is specifically configured to:
and if the icon of the second application is detected to move to the area where the application icon bar is located, displaying the icon of the second application in the application icon bar.
Optionally, the first icon bar updating module 605 is further specifically configured to:
and if the coincidence degree of the area where the icon of the second application is located and the area where the displayed icon is located in the application icon bar is detected to be greater than a preset threshold value, replacing the displayed icon with the icon of the second application.
Optionally, the mobile terminal further includes:
a second icon bar updating module 606, configured to remove an icon of a second application from the application icon bar after the icon corresponding to the second application is added to the application icon bar.
Optionally, the second icon bar updating module 606 is specifically configured to:
and if the icon of the second application in the application icon bar is detected to move out of the area of the application icon bar, removing the icon of the second application from the application icon bar.
Optionally, the mobile terminal further includes:
an icon bar hiding module 607, configured to hide the application icon bar until an application icon bar call-out request is received, if a third touch operation of the user on the application icon bar is detected, or it is determined that the first touch operation or the second touch operation on the application icon bar is not detected within a preset time.
The mobile terminal in the embodiment of the invention receives a first touch operation of a user for an icon of a second application in a pre-created application icon bar when a first application is running in the foreground; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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 first touch operation of a user on an icon of a second application in a pre-created application icon bar when a first application is running in a foreground;
and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application to be switched to the foreground to run.
In the embodiment provided by the invention, when a first application runs in the foreground, a first touch operation of a user for an icon of a second application in a pre-created application icon bar is received; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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:
after responding to the first touch operation, controlling the first application to continue running after being switched to a background and controlling the second application to be switched to a foreground running, and when the second application is running in the foreground, receiving a second touch operation of a user for an icon of the second application in a pre-established application icon bar;
and responding to the second touch operation, controlling the second application to be switched to a background, and controlling the first application running at the background to be adjusted to a foreground to run.
Wherein, the processor 110 is further configured to:
and adding an icon corresponding to the second application to the application icon bar.
The processor 110 is specifically configured to:
the step of adding the icon corresponding to the second application to the application icon bar includes:
and if the second application is the recent task, adding the icon of the second application to the application icon bar.
The processor 110 is specifically configured to:
the step of adding the icon corresponding to the second application to the application icon bar includes:
and if the icon of the second application is detected to move to the area where the application icon bar is located, displaying the icon of the second application in the application icon bar.
The processor 110 is specifically configured to:
the step of displaying the icon of the second application in the application icon bar if it is detected that the icon of the second application moves to the area where the application icon bar is located includes:
and if the coincidence degree of the area where the icon of the second application is located and the area where the displayed icon is located in the application icon bar is detected to be greater than a preset threshold value, replacing the displayed icon with the icon of the second application.
Wherein, the processor 110 is further configured to:
after the icon corresponding to the second application is added to the application icon bar, the icon of the second application is removed from the application icon bar.
The processor 110 is specifically configured to:
the step of removing the icon of the second application from the application icon bar includes:
and if the icon of the second application in the application icon bar is detected to move out of the area of the application icon bar, removing the icon of the second application from the application icon bar.
Wherein, the processor 110 is further configured to:
if a third touch operation of a user for an application icon bar is detected, or it is determined that the first touch operation or the second touch operation for the application icon bar is not detected within a preset time, hiding the application icon bar until an application icon bar call-out request is received.
The mobile terminal 100 in the embodiment of the present invention receives a first touch operation of a user for an icon of a second application in a pre-created application icon bar when a first application is running in the foreground; and responding to the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application corresponding to the touched icon to be switched to the foreground to run. By adding the application icon bar, the second application can be called out quickly and the first application can be retracted quickly only by executing corresponding touch operation on the icon in the application icon bar; 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 can implement each process implemented by the mobile terminal in the foregoing application running state control method embodiment, and for avoiding repetition, details are not described here again.
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.
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 (15)

1. An application running state control method is applied to a mobile terminal, and is characterized by comprising the following steps:
adding an icon corresponding to a second application to a pre-created application icon bar, wherein the second application is determined based on recorded data of back-and-forth switching between every two applications of the mobile terminal;
when a first application runs in the foreground, receiving a first touch operation of a user for an icon of a second application in a pre-created application icon bar;
responding to the first touch operation, controlling the first application to continue running after being switched to a background, and controlling the second application to be switched to a foreground to run;
wherein, the responding the first touch operation, controlling the first application to continue running after being switched to the background, and controlling the second application to be switched to the foreground to run, includes:
moving the first application from a foreground stack to a target stack, wherein the target stack is created in advance, display parameters which are used for indicating the size of an application display interface and correspond to the foreground stack and the target stack are all consistent with the size of a display screen, and the target stack and the foreground stack are two different stacks;
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, 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 controlling the interactive interface of the second application to be displayed on the uppermost layer of the display screen.
2. The method of claim 1, wherein after controlling the first application to continue running after switching to a background and controlling the second application to continue running after switching to a foreground in response to the first touch operation, further comprising:
when a second application runs in the foreground, receiving a second touch operation of a user for an icon of the second application in a pre-created application icon bar;
and responding to the second touch operation, controlling the second application to be switched to a background, and controlling the first application running at the background to be adjusted to a foreground to run.
3. The method according to claim 1, wherein the step of adding the icon corresponding to the second application to the application icon bar comprises:
and if the icon of the second application is detected to move to the area where the application icon bar is located, displaying the icon of the second application in the application icon bar.
4. The method according to claim 3, wherein the step of displaying the icon of the second application in the application icon bar if it is detected that the icon of the second application moves to the area where the application icon bar is located comprises:
and if the coincidence degree of the area where the icon of the second application is located and the area where the displayed icon is located in the application icon bar is detected to be greater than a preset threshold value, replacing the displayed icon with the icon of the second application.
5. The method of claim 1, wherein after adding the icon corresponding to the second application to the application icon bar, further comprising:
removing the icon of the second application from the application icon bar.
6. The method of claim 5, wherein the step of removing the icon of the second application from the application icon bar comprises:
and if the icon of the second application in the application icon bar is detected to move out of the area of the application icon bar, removing the icon of the second application from the application icon bar.
7. The method of claim 2, further comprising:
if a third touch operation of a user for an application icon bar is detected, or it is determined that the first touch operation or the second touch operation for the application icon bar is not detected within a preset time, hiding the application icon bar until an application icon bar call-out request is received.
8. An application running state control device, comprising:
the first icon bar updating module is used for adding an icon corresponding to a second application to the application icon bar, wherein the second application is determined based on recorded data of back-and-forth switching between every two applications of the mobile terminal;
the first touch operation receiving module is used for receiving a first touch operation of a user for an icon of a second application in a pre-created application icon bar when the first application is running in the foreground;
the first application operation control module is used for moving the first application from a foreground stack to a target stack, wherein the target stack is created in advance, display parameters which correspond to the foreground stack and the target stack and are used for indicating the size of an application display interface are consistent with the size of a display screen, and the target stack and the foreground stack are two different stacks;
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, 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 controlling the interactive interface of the second application to be displayed on the uppermost layer of the display screen.
9. The application execution state control device according to claim 8, characterized by further comprising:
the second touch operation receiving module is used for responding to the first touch operation, controlling the first application to continue running after being switched to a background, controlling the second application to be switched to a foreground running, and receiving a second touch operation of a user for an icon of the second application in a pre-created application icon bar when the second application is running in the foreground;
and the second application running control module is used for responding to the second touch operation, controlling the second application to be switched to the background, and controlling the first application running at the background to be transferred to the foreground for running.
10. The application running state control device according to claim 8, wherein the first icon bar updating module is specifically configured to:
and if the icon of the second application is detected to move to the area where the application icon bar is located, displaying the icon of the second application in the application icon bar.
11. The application running state control device according to claim 10, wherein the first icon bar updating module is further specifically configured to:
and if the coincidence degree of the area where the icon of the second application is located and the area where the displayed icon is located in the application icon bar is detected to be greater than a preset threshold value, replacing the displayed icon with the icon of the second application.
12. The application execution state control device according to claim 8, characterized by further comprising:
and the second icon bar updating module is used for removing the icon of the second application from the application icon bar after the icon corresponding to the second application is added to the application icon bar.
13. The application running state control device according to claim 12, wherein the second icon bar updating module is specifically configured to:
and if the icon of the second application in the application icon bar is detected to move out of the area of the application icon bar, removing the icon of the second application from the application icon bar.
14. The application execution state control device according to claim 9, characterized by further comprising:
and the icon bar hiding module is used for hiding the application icon bar until an application icon bar call-out request is received if a third touch operation of the user for the application icon bar is detected or the first touch operation or the second touch operation of the application icon bar is determined not to be detected within a preset time.
15. 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 7.
CN201711462849.0A 2017-12-28 2017-12-28 Application running state control method and mobile terminal Active CN108062190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711462849.0A CN108062190B (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
CN201711462849.0A CN108062190B (en) 2017-12-28 2017-12-28 Application running state control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108062190A CN108062190A (en) 2018-05-22
CN108062190B true CN108062190B (en) 2020-06-09

Family

ID=62140645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711462849.0A Active CN108062190B (en) 2017-12-28 2017-12-28 Application running state control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108062190B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874273A (en) * 2018-06-08 2018-11-23 Oppo广东移动通信有限公司 Execution method, apparatus, terminal and the storage medium of object run
CN109189298A (en) * 2018-08-01 2019-01-11 维沃移动通信有限公司 A kind of language switching method and terminal
CN109284037B (en) * 2018-08-02 2020-03-27 珠海格力电器股份有限公司 Application display method and device, terminal and storage medium
CN109298812B (en) * 2018-08-02 2020-12-18 珠海格力电器股份有限公司 Application display method and device, terminal and storage medium
CN110058911A (en) * 2019-03-14 2019-07-26 维沃移动通信有限公司 A kind of application control method and terminal device
CN110069183A (en) * 2019-04-29 2019-07-30 上海盛付通电子支付服务有限公司 The method and apparatus of information for rendering
CN110275690A (en) * 2019-06-03 2019-09-24 珠海格力电器股份有限公司 A kind of application display method, device, mobile terminal and storage medium
CN110569080B (en) * 2019-07-30 2021-02-23 华为技术有限公司 Application control method and electronic equipment
CN111198495A (en) * 2019-12-27 2020-05-26 重庆金康特智能穿戴技术研究院有限公司 Time display method, device, equipment and medium of wearable equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516767A (en) * 2015-12-01 2016-04-20 海信集团有限公司 Smart television and application switching method thereof
CN106940616A (en) * 2017-03-06 2017-07-11 珠海市魅族科技有限公司 Using operation method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135969B (en) * 2011-11-26 2017-09-19 华为技术有限公司 Operation, generation, the method started and its device of application program
CN103902363A (en) * 2012-12-18 2014-07-02 上海鼎为电子科技(集团)有限公司 Electronic device supporting multiple-task switching and switching method
GB201300031D0 (en) * 2013-01-02 2013-02-13 Canonical Ltd Ubuntu UX innovations
CN104424484B (en) * 2013-09-11 2019-01-15 阿里巴巴集团控股有限公司 Application program switching, the method and device for adding access information
CN106155869A (en) * 2015-04-17 2016-11-23 宇龙计算机通信科技(深圳)有限公司 The running background control method of terminal applies and device thereof
CN105487871B (en) * 2015-12-01 2019-08-09 海信集团有限公司 A kind of method and apparatus running application program on intelligent terminal
CN106909268A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 A kind of method and device that APP suspended windows are set on equipment desktop
CN105700776A (en) * 2016-02-25 2016-06-22 努比亚技术有限公司 Device and method for switching background programs
CN107231386B (en) * 2016-03-23 2020-07-07 华为技术有限公司 Application state conversion method and device and mobile terminal
CN106445291B (en) * 2016-09-19 2020-03-27 努比亚技术有限公司 Method and terminal for realizing application processing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516767A (en) * 2015-12-01 2016-04-20 海信集团有限公司 Smart television and application switching method thereof
CN106940616A (en) * 2017-03-06 2017-07-11 珠海市魅族科技有限公司 Using operation method and device

Also Published As

Publication number Publication date
CN108062190A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
EP2916206B1 (en) Sidebar menu display method, device and terminal
CN108182043B (en) Information display method and mobile terminal
WO2015172704A1 (en) To-be-shared interface processing method, and terminal
CN108459797B (en) Control method of folding screen and mobile terminal
EP2851779A1 (en) Method, device, storage medium and terminal for displaying a virtual keyboard
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
TWI520043B (en) Method, device and moving terminal for examining messages
CN108111675B (en) Notification message processing method and device and mobile terminal
CN106406712B (en) Information display method and device
WO2016066092A1 (en) Multimedia playing controlling method and device, and storage medium
WO2019154181A1 (en) Display control method and mobile terminal
CN108762705B (en) Information display method, mobile terminal and computer readable storage medium
WO2019141174A1 (en) Unread message processing method and mobile terminal
CN105975190B (en) Graphical interface processing method, device and system
CN108182019B (en) Suspension control display processing method and mobile terminal
US10652287B2 (en) Method, device, and system for managing information recommendation
CN104778055B (en) Method and device for displaying progress bar
WO2018161534A1 (en) Image display method, dual screen terminal and computer readable non-volatile storage medium
WO2017008569A1 (en) Message updating method, apparatus, and terminal
WO2019174611A1 (en) Application configuration method and mobile terminal
US20180164939A1 (en) Screen enabling method and apparatus, and electronic device
WO2019223569A1 (en) Information processing method and mobile terminal
WO2019174541A1 (en) Operation method for mobile terminal and mobile terminal
CN106254910B (en) Method and device for recording image
CN107977132B (en) Information display method and mobile terminal

Legal Events

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