CN108055408B - Application program control method and mobile terminal - Google Patents

Application program control method and mobile terminal Download PDF

Info

Publication number
CN108055408B
CN108055408B CN201711458831.3A CN201711458831A CN108055408B CN 108055408 B CN108055408 B CN 108055408B CN 201711458831 A CN201711458831 A CN 201711458831A CN 108055408 B CN108055408 B CN 108055408B
Authority
CN
China
Prior art keywords
application
mobile terminal
foreground
running
change information
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
CN201711458831.3A
Other languages
Chinese (zh)
Other versions
CN108055408A (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 CN201711458831.3A priority Critical patent/CN108055408B/en
Publication of CN108055408A publication Critical patent/CN108055408A/en
Application granted granted Critical
Publication of CN108055408B publication Critical patent/CN108055408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides an application program control method and a mobile terminal, wherein the method comprises the following steps: when the first application is running in the foreground, judging whether a second application to be switched to the foreground to run is a preset application; if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate; and adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal. The first application is switched to the background and then is controlled to continue running, so that a user can control other applications on the foreground, in addition, the size of a display interface of the currently controlled application can be ensured to be unchanged, and the user operation experience is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.

Description

Application program control method and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an application program 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 program 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 applications keep running.
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 program control method, including:
when the first application is running in the foreground, judging whether a second application to be switched to the foreground to run is a preset application;
if yes, controlling the first application to be switched to a background and then to continue to operate, and controlling the second application to be switched to a foreground to operate;
adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal, wherein the state change information comprises: angular velocity change information and/or acceleration change information.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the application to be switched judging module is used for judging whether a second application to be switched to the foreground to run is a preset application when the first application is running in the foreground;
the application running control module is used for controlling the first application to be switched to the background and then continuously run if the judgment result is yes, and controlling the second application to be switched to the foreground to run;
an operation parameter adjusting module, configured to adjust an operation parameter of the first application according to detected state change information of the mobile terminal, where the state change information includes: angular velocity change information and/or acceleration change information.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including: 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 control method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the application control method according to the first aspect.
According to the application program control method and the mobile terminal in the embodiment of the invention, when the first application is running in the foreground, whether the second application to be switched to the foreground to run is a preset application is judged; if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate; and adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal. The first application is controlled to continue to run after being switched to the background, 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 a mobile terminal with a limited screen size, the size of a display interface of a currently controlled application can be ensured to be unchanged by adopting a mode of simultaneous multi-task operation of a foreground and a background, and the operation experience of a user is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
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 control method according to an embodiment of the present invention;
fig. 2a is a schematic diagram illustrating a first effect of a display interface of a mobile terminal according to an embodiment of the present invention;
fig. 2b is a schematic diagram illustrating a first effect of a foreground and background application interface of a mobile terminal according to an embodiment of the present invention;
fig. 2c is a schematic diagram illustrating a second effect of a foreground and background application interface of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a second flowchart of an application control method according to an embodiment of the present invention;
fig. 4 is a third flowchart illustrating an application control method according to an embodiment of the present invention;
fig. 5a is a fourth flowchart illustrating an application control method according to an embodiment of the present invention;
fig. 5b is a schematic flowchart of a fifth method for controlling an application 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 program control method and a mobile terminal, wherein a first application is switched to a background and then is controlled to continue running, so that a user can control other applications on the foreground, in addition, the size of a display interface of the currently controlled application can be ensured to be unchanged, and the user operation experience is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
In an embodiment of the present invention, a mobile terminal may be a mobile phone, a tablet computer, and the like, taking a mobile phone as an example, fig. 1 is a schematic flow chart of an application control method provided in an 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 the foreground, judging whether a second application to be switched to the foreground to run is a preset application. For example, the first application is a video application, the second application is a chat application, when the video application is running in the foreground, the video application starts playing advertisements, the user needs to tune the chat application to the foreground to run, and the system automatically judges whether the chat application to be switched to the foreground to run is a preset application.
And S102, if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate. Specifically, the chat application can be preset as a preset application, so that after the chat application is tuned to the foreground to run, the video application is automatically switched to the background and kept running.
S103, adjusting the operation parameters of the first application which is running in the background according to the detected state change information of the mobile terminal, wherein the state change information comprises: angular velocity variation information and/or acceleration variation information, the operational parameters including: any one or more of a play parameter, a volume adjustment parameter, and a dynamic element control parameter, the dynamic element comprising: the virtual character in the preferred application has different operation parameters which need to be adjusted according to different applications.
The information of the change of the angular velocity of the mobile terminal is obtained by detecting an angular velocity sensor (such as a gyroscope), for example, an inclination angle of the mobile terminal to a preset direction changes by a first angle; the acceleration change information of the mobile terminal is detected by an acceleration sensor, for example, the mobile terminal moves a first distance in a preset direction and moves a second distance in a direction opposite to the preset direction.
In the embodiment provided by the invention, when the first application is running in the foreground, whether the second application to be switched to the foreground to run is a preset application is judged; if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate; and adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal. The first application is controlled to continue to run after being switched to the background, 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 a mobile terminal with a limited screen size, the size of a display interface of a currently controlled application can be ensured to be unchanged by adopting a mode of simultaneous multi-task operation of a foreground and a background, and the operation experience of a user is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
Wherein, can be based on user' S touch-control operation, realize the callout and pack up of second application, also can be based on the current running state of application, whether intelligent recognition is in the first application of foreground operation and need switch to the backstage, whether the second application needs to be transferred to the foreground operation, or whether intelligent recognition is in the second application of foreground operation and need switch to the backstage, whether the first application of background operation needs to be transferred to the foreground operation, thereby realize the quick switch between two applications, based on this, above-mentioned S103 is according to the state change information of the mobile terminal who detects, after the running parameter of the first application of background operation is adjusted, still include:
and determining the application to be switched to the foreground for running according to the running state of the first application and/or the running state of the second application.
Specifically, when the second application is running in the foreground and the first application is running in the background, the determining, according to the running state of the first application and/or the running state of the second application, the application to be switched to the foreground to run specifically includes:
(1) and for the situation that only the running state of the second application is considered, if the second application is determined to have no information to be processed currently, determining the first application running at the background as the application to be switched to the foreground for running.
For example, the first application is a video application, the second application is a chat application, and the process of determining whether to perform foreground and background switching between the first application and the second application is specifically:
and if the chat application is detected to send a message, determining the video application running in the background as the application to be switched to the foreground to run. In order to improve the switching accuracy, the word number of the sent message may be limited, specifically: and if the chat application is detected to send a message and the word number of the message is greater than the preset threshold value, determining the video application running in the background as the application to be switched to the foreground for running.
(2) For the situation that only the running state of the first application is considered, if the situation that the interactive interface of the first application running in the background needs to be displayed in the foreground is determined, the first application running in the background is determined as the application to be switched to the foreground to run; taking the first application as the video application as an example, the fact that the interactive interface needs to be displayed in the foreground means that the video application starts to play the video feature, that is, the video application finishes playing the advertisement in the background.
(3) For the situation that the running state of the first application and the running state of the second application are considered at the same time, if it is determined that the second application does not have information to be processed currently and the interactive interface of the first application running in the background needs to be displayed in the foreground, the first application running in the background is determined as the application to be switched to the foreground to run.
Specifically, when the first application is running in the foreground and the second application is located in the background, determining the application to be switched to the foreground for running according to the running state of the first application and/or the running state of the second application specifically includes:
(1) for the situation that only the running state of the second application is considered, if the second application is determined to have information to be processed currently, the second application is determined to be the application to be switched to the foreground to run;
for example, the first application is a video application, the second application is a chat application, and the process of determining whether to perform foreground and background switching between the first application and the second application is specifically:
and if the chat application is detected to receive a message, determining the chat application as the application to be switched to the foreground for operation.
(2) Aiming at the condition that only the running state of the first application is considered, if the interactive interface of the first application running in the foreground is determined to be an invalid information interface, determining the second application newly switched to the background as the application to be switched to the foreground to run; taking the first application as a video application as an example, the interactive interface being an invalid information interface means that the video application starts to play advertisements;
for example, the first application is a video application, the second application is a chat application, and the process of determining whether to perform foreground and background switching between the first application and the second application is specifically:
and if the video application running in the foreground is detected to enter the advertising time, determining the chat application as the application to be switched to the foreground for running.
(3) And if the second application currently has information to be processed and the interactive interface of the foreground running first application is determined to be an invalid information interface, determining the second application to be switched to the foreground running application.
In specific implementation, when the running state of the first application and the running state of the second application both meet the switching condition, switching between foreground and background applications is performed, so that the accuracy of application switching identification can be improved.
In addition, in order to improve the accuracy of application switching identification and further improve the switching accuracy between two applications, the method further includes:
and updating the running state set for determining the switching of the foreground and the background of the application based on the switching time of the foreground and the background of the application or the correction feedback information of the switching function input by a user.
The application foreground and background switching time refers to that when an application running in a foreground is in a preset running state, a user manually switches the application from the foreground to the background, or when an application located in the background is in the preset running state, the user manually switches a target application from the background to the foreground; the running state set includes a plurality of preset running states, where the preset running states are used to represent that the application having the preset running states needs to be switched from a foreground to a background or from the background to the foreground, for example, the running state set includes: the information to be processed does not exist in the second application currently, the information to be processed exists in the second application currently, the interactive interface of the first application needs to be displayed in the foreground, the interactive interface of the first application is an invalid information interface, and the like.
Correspondingly, the determining the application to be switched to the foreground for running according to the running state of the first application and/or the running state of the second application specifically includes:
judging whether the running state of the first application and/or the running state of the second application belong to the running state set or not; and determining the application to be switched to the foreground for operation according to the judgment result.
Specifically, a process of adjusting an operation parameter of a first application running in a background based on state change information of a mobile terminal is described for the following application scenarios, specifically:
for example, 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 during playing of the advertisement, it is determined that the video application needs to be switched to the background and then continuously run, and a chat application needs to be switched to the foreground to run, at this time, a user may operate the chat application in the foreground, and the video application continues to play the video advertisement in the background; as shown in fig. 2b, the video application is retracted and hidden to the background, and the video application continues to play the advertisement, and meanwhile, the chat application is tuned to the foreground for operation, at this time, the user can adjust the operation parameters of the video application by changing the state change information of the mobile terminal, for example, adjust the volume of the played advertisement, and after the advertisement of the video application is played, it is determined that the video application needs to be tuned to the foreground for operation, and the chat application needs to be switched to the background; as shown in fig. 2c, the video application is switched back to foreground operation and the chat application is switched to 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.
Further, as shown in fig. 3, before the step S101 of determining whether the second application to be switched to the foreground for running is the preset application when the first application is running in the foreground, the method further includes:
and S104, setting at least one application installed in the mobile terminal as a preset application.
Specifically, the preset applications may be manually set by a user according to respective actual requirements, and in order to facilitate the user to quickly set a certain application as the preset application, in the embodiment provided by the present invention, a first implementation manner for quickly adding a certain application as the preset application is provided, and specifically, the implementation manner is that:
the step S104 of setting at least one application installed in the mobile terminal as a preset application specifically includes:
displaying a first floating control on a display screen of the mobile terminal, wherein during specific implementation, a first floating control needs to be generated in advance, and a touch operation for instructing calling out the first floating control is predefined.
And if the icon is detected to move to the position of the first floating control, setting the application corresponding to the icon as a preset application, and restoring the icon to the original position after the touch operation of the user on the icon is detected to be released.
In the embodiment provided by the invention, the suspension control is generated in advance, and when the fact that the user needs to add the specified application as the preset application is determined, the suspension control is automatically displayed, so that the user can set the application as the preset application by dragging the application icon to be added as the preset application, the setting efficiency of the preset application is improved, and the user operation is facilitated.
Further, considering that an application which is not added as a preset application in advance may need to be set as a preset application in the process of operating the first application according to the real-time processing requirement of each application in the mobile terminal, therefore, in order to improve the pertinence, flexibility and diversity of the preset application setting, various implementation manners for quickly setting the preset application are provided for a user to select, and the requirement that the user quickly sets different applications as the preset applications at different stages is met, a second implementation manner for quickly adding a certain application as the preset application is also provided in the embodiment provided by the present invention, and specifically:
the step S104 of setting at least one application installed in the mobile terminal as a preset application specifically includes:
when determining that information to be processed of a certain application is to be processed, generating and displaying a second floating control, wherein the information to be processed can be information to be processed for receiving and sending, and can be directed to applications with information receiving and sending functions, such as chat applications, or can be information to be processed for recommending, and can be directed to applications with information recommending functions, such as information applications;
and if the clicking operation of the user on the second suspension control is detected, setting the application with the information to be processed as a preset application.
In the embodiment provided by the invention, in the process of operating a certain application by a user, if another application has information to be processed, at the moment, when the information processing prompt is performed on the user, a second suspension control is added, so that the user can set the application with the processing requirement as the preset application in real time, even if the user does not click to open during the message prompt, invalid information is displayed in the first application subsequently, and the preset application is required to be opened, the required application program can be called quickly, and the first application is controlled to be called to the background and then continuously run, so that the pertinence and flexibility of the setting of the preset application are improved, the processing requirements of the user at different stages can be met, and the user experience is greatly improved.
Specifically, in order to realize the intellectualization of the preset application setting and improve the use experience of the user, for the situation that the user does not perform the preset application setting, the preset application may also be automatically set according to the historical application switching habit system of the user, based on which, the above S104 sets at least one application installed in the mobile terminal as the preset application, specifically including:
when the first application is running in the foreground, the preset application associated with the first application is determined by utilizing the preset application identification model. In specific implementation, the first application may be manually set in advance, or may be automatically set by the system, for example, the system defaults to add an application, such as a video application and a game application, that needs to be kept running in the background to the first application set, when an application is running in the foreground, determines whether the application belongs to the first application set, if so, determines that the first application is running in the foreground, and if it is also determined that a request for setting a preset application for the first application by a user is not received, automatically performs a step of determining the preset application associated with the first application by using a preset application identification model.
Specifically, in order to be able to intelligently match any first application with a corresponding preset application, the method further includes:
for each first application, recording an application switching log of the first application, wherein the application switching log comprises: the name of the first application and the name of the application which is switched with the first application in the foreground and background are in corresponding relation; and/or the presence of a gas in the gas,
for each first application, storing a preset application setting log of the first application, wherein the preset application setting log comprises: the method comprises the following steps that the name of a first application and the received name of a preset application set by a user for the first application are in corresponding relation;
and taking the application switching log and/or the preset application setting log as a training sample set.
The application switching log can accurately reflect the application switching preference of the user, the preset application setting log can more accurately reflect the application switching preference of the user, the preset application matched with the first application running at the current foreground can be intelligently identified by combining the application switching log and/or the preset application setting log, the user does not need to manually set the preset application, the user can perform touch operation subsequently, the first application and the preset application can be quickly switched, and the first application can be ensured to continue to run after being switched to the background.
The preset application recognition model can be obtained by training the cloud server or the mobile terminal in the following mode, specifically:
obtaining a training sample set of a mobile terminal, wherein the training sample set comprises: an application switching log and/or a preset application setting log;
and training to obtain a preset application recognition model by adopting a deep learning method and based on a training sample set.
And then, inputting the name of the first application running in the foreground into a preset application identification model, namely automatically identifying the preset application, outputting a corresponding identification result, and further determining the preset application matched with the first application.
As shown in fig. 4, the adjusting, by the S103, the operation parameter of the first application running in the background according to the detected state change information of the mobile terminal specifically includes:
s1031, based on the corresponding relation between the prestored state change information and the operation parameters, searching the target operation parameters corresponding to the detected state change information of the mobile terminal;
and S1032, adjusting the operation parameters of the first application which is operated in the background according to the target operation parameters.
Specifically, for example, by analyzing the change of the collected data of the angular velocity sensor, if it is determined that the display screen of the mobile terminal is tilted to the left or right by a preset angle, the fast forward or backward, the volume up or down, or the direction of movement of the main character in the first application (e.g., a game application) running in the background is controlled.
For another example, by analyzing the change of the data acquired by the acceleration sensor, if it is determined that the mobile terminal moves quickly a first distance in a first preset direction and returns slowly to a second distance, the first application running in the background is controlled to continuously execute the operation in the first preset direction until the mobile terminal suddenly moves quickly a third distance in the second preset direction and returns slowly to the second distance, and the first application running in the background is controlled to pause running. The operation parameters of the first application are adjusted by adopting a mode of quickly moving towards one direction and slowly returning, so that the recognition interference caused by irregular shaking on the vehicles such as buses or subways can be avoided.
In addition, in order not to affect the operation of the user on the foreground application, the maximum value of the angular velocity information (i.e. the tilt angle) of the mobile terminal is preferably set within 30 degrees, that is, the operating parameter corresponding to the tilt angle of the mobile terminal reaching 30 degrees is that the fast-backward speed or the fast-forward speed reaches the maximum value.
Furthermore, the situation of wrong response control caused by error identification or user misoperation is avoided, so that the purpose of accurate response control is achieved, unnecessary troubles brought to the user are avoided, and the user experience is improved. Based on this, as shown in fig. 5a, before the step S103 adjusts the operation parameters of the first application running in the background according to the detected state change information of the mobile terminal, the method further includes:
s105, judging whether the detected triggering operation of the user is consistent with a preset triggering condition;
if the state change information of the mobile terminal is consistent with the state change information of the mobile terminal, step S103 of adjusting the operation parameters of the first application running in the background is executed.
Furthermore, another implementation mode for avoiding wrong response control caused by false identification or user misoperation is provided, so that the purpose of accurate response control is achieved, unnecessary troubles are avoided for users, and user experience is improved. Based on this, as shown in fig. 5b, before the step S103 adjusts the operation parameters of the first application running in the background according to the detected state change information of the mobile terminal, the method further includes:
s106, judging whether the user uses the mobile terminal or not according to the image information acquired by the camera device of the mobile terminal;
if yes, executing step S103 of adjusting the operation parameters of the first application running in the background according to the detected state change information of the mobile terminal.
When the method is implemented specifically, in order to avoid false triggering, a triggering condition may be set in advance, where the preset triggering condition may be that two fingers perform two-point touch operation on a display screen or that a volume button is pressed once; or, in order to avoid false recognition and false operation, the camera is opened to recognize whether the current face and eyeball are directly opposite to the display screen of the mobile terminal, and if the face and eyeball are not detected, the motion of the mobile terminal is considered to be interference from external motion at the moment without adjusting the operation parameters of the first application.
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, if yes, the step S102 of controlling the first application to continue to operate after being switched to the background, and controlling the second application to be tuned to the foreground to operate specifically includes:
and if the second application is a preset application, moving the first application from the foreground stack to a target stack, wherein the target stack is pre-established and the level 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.
The application program control method in the embodiment of the invention judges whether a second application to be switched to the foreground for running is a preset application when a first application is running in the foreground; if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate; and adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal. The first application is controlled to continue to run after being switched to the background, 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 a mobile terminal with a limited screen size, the size of a display interface of a currently controlled application can be ensured to be unchanged by adopting a mode of simultaneous multi-task operation of a foreground and a background, and the operation experience of a user is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
Corresponding to the application program control method provided in the foregoing embodiment, based on the same technical concept, an embodiment of the present invention further provides a mobile terminal, 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 program control method described in fig. 1 to fig. 5, and as shown in fig. 6, the mobile terminal includes:
the to-be-switched application judging module 601 is configured to judge whether a second application to be switched to a foreground for running is a preset application when the first application is running in the foreground;
the application running control module 602 is configured to control the first application to continue running after being switched to the background and control the second application to be tuned to the foreground to run if the determination result is yes;
an operation parameter adjusting module 603, configured to adjust an operation parameter of the first application according to detected state change information of the mobile terminal, where the state change information includes: angular velocity change information and/or acceleration change information.
Optionally, as shown in fig. 7, the method further includes:
an application switching determining module 604, configured to determine, after adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal, an application to be switched to a foreground for operation according to the operation state of the first application and/or the operation state of the second application.
Optionally, the operation parameter adjusting module 603 is specifically configured to:
searching a target operation parameter corresponding to the detected state change information of the mobile terminal based on a corresponding relation between pre-stored state change information and operation parameters;
and adjusting the operation parameters of the first application according to the target operation parameters.
Optionally, the mobile terminal further includes:
a first parameter adjustment and determination module 605, configured to determine whether the detected trigger operation of the user is consistent with a preset trigger condition before adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal;
if the detected state change information of the mobile terminal is consistent with the detected state change information of the mobile terminal, the operation parameter adjusting module 603 is triggered to execute the step of adjusting the operation parameters of the first application.
Optionally, the mobile terminal further includes:
a second parameter adjustment and judgment module 606, configured to judge whether a user uses the mobile terminal according to image information obtained by a camera of the mobile terminal before adjusting an operation parameter of the first application according to the detected state change information of the mobile terminal;
if yes, the operation parameter adjustment module 603 is triggered to execute the step of adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal.
The mobile terminal in the embodiment of the invention judges whether a second application to be switched to the foreground for running is a preset application when a first application is running in the foreground; if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate; and adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal. The first application is controlled to continue to run after being switched to the background, 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 a mobile terminal with a limited screen size, the size of a display interface of a currently controlled application can be ensured to be unchanged by adopting a mode of simultaneous multi-task operation of a foreground and a background, and the operation experience of a user is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
The mobile terminal provided by the embodiment of the present invention can implement each process in the embodiment corresponding to the application program 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, where the device is configured to execute the application 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, when the first application is running in a foreground, determine whether a second application to be switched to the foreground to run is a preset application; if yes, controlling the first application to be switched to a background and then to continue to operate, and controlling the second application to be switched to a foreground to operate; adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal, wherein the state change information comprises: angular velocity change information and/or acceleration change information.
In the embodiment provided by the invention, the first application is controlled to continue to run after being switched to the background, so that the first application can also keep running when the first application is the background application, so that a user can operate other applications in the foreground during the running keeping process of a certain application, the time utilization rate of the user is improved, and the user experience is improved; in addition, for a mobile terminal with a limited screen size, the size of a display interface of a currently controlled application can be ensured to be unchanged by adopting a mode of simultaneous multi-task operation of a foreground and a background, and the operation experience of a user is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
Wherein, the processor 110 is further configured to:
after the operation parameters of the first application are adjusted according to the detected state change information of the mobile terminal, determining the application to be switched to the foreground operation according to the operation state of the first application and/or the operation state of the second application.
The processor 110 is specifically configured to:
the adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal includes:
searching a target operation parameter corresponding to the detected state change information of the mobile terminal based on a corresponding relation between pre-stored state change information and operation parameters;
and adjusting the operation parameters of the first application according to the target operation parameters.
Wherein, the processor 110 is further configured to:
judging whether the detected trigger operation of the user is consistent with a preset trigger condition or not before adjusting the running parameter of the first application according to the detected state change information of the mobile terminal;
and if the state change information of the mobile terminal is consistent with the state change information of the mobile terminal, executing a step of adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal.
Wherein, the processor 110 is further configured to:
before adjusting the running parameters of the first application according to the detected state change information of the mobile terminal, judging whether a user uses the mobile terminal according to image information acquired by a camera device of the mobile terminal;
and if so, executing a step of adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal.
In the embodiment of the present invention, when the first application is running in the foreground, the mobile terminal 100 determines whether the second application to be switched to the foreground to run is a preset application; if yes, controlling the first application to be switched to the background and then to continue to operate, and controlling the second application to be switched to the foreground to operate; and adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal. The first application is controlled to continue to run after being switched to the background, 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 a mobile terminal with a limited screen size, the size of a display interface of a currently controlled application can be ensured to be unchanged by adopting a mode of simultaneous multi-task operation of a foreground and a background, and the operation experience of a user is improved; and when the first application runs in the background, the running parameters of the first application are adjusted based on the current state change information of the mobile terminal, so that the foreground application and the running background application are controlled simultaneously, and the two applications are ensured not to be influenced by each other when running simultaneously.
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 program 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 running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the foregoing application program control method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
Further, corresponding to the application program 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 program 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 (11)

1. An application control method applied to a mobile terminal is characterized by comprising the following steps:
when a first application is running in the foreground, judging whether a second application to be switched to the foreground to run is a preset application, wherein the preset application is at least one application which is installed in the mobile terminal and is associated with the first application;
if yes, controlling the first application to be switched to a background and then to continue to operate, and controlling the second application to be switched to a foreground to operate;
adjusting the operation parameters of the first application switched to a background to continue to operate according to the detected state change information of the mobile terminal, wherein the state change information comprises: angular velocity change information and/or acceleration change information;
the method comprises the steps that a first application is a video application, a second application is a chat application, and when the second application is in foreground operation and the first application is in background operation, if the chat application is detected to send a message and the word number of the message is greater than a preset threshold value, the video application in background operation is switched to the foreground operation; when the first application is running in the foreground and the second application is running in the background, if the chat application is detected to receive a message, the chat application running in the background is switched to the foreground.
2. The method according to claim 1, wherein after the adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal, the method further comprises:
and determining the application to be switched to the foreground for running according to the running state of the first application and/or the running state of the second application.
3. The method according to claim 1, wherein the adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal comprises:
searching a target operation parameter corresponding to the detected state change information of the mobile terminal based on a corresponding relation between pre-stored state change information and operation parameters;
and adjusting the operation parameters of the first application according to the target operation parameters.
4. The method according to claim 1, further comprising, before adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal:
judging whether the detected triggering operation of the user is consistent with a preset triggering condition or not;
and if the state change information of the mobile terminal is consistent with the state change information of the mobile terminal, executing a step of adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal.
5. The method according to claim 1, further comprising, before adjusting the operation parameter of the first application according to the detected state change information of the mobile terminal:
judging whether a user uses the mobile terminal or not according to image information acquired by a camera device of the mobile terminal;
and if so, executing a step of adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal.
6. A mobile terminal, comprising:
the system comprises a to-be-switched application judging module, a to-be-switched application judging module and a switching module, wherein the to-be-switched application judging module is used for judging whether a second application to be switched to the foreground to run is a preset application when a first application is running in the foreground, and the preset application is at least one application which is installed in the mobile terminal and is related to the first application;
the application running control module is used for controlling the first application to be switched to the background and then continuously run if the judgment result is yes, and controlling the second application to be switched to the foreground to run;
the operation parameter adjusting module is configured to adjust an operation parameter of the first application that is switched to a background to continue to operate according to the detected state change information of the mobile terminal, where the state change information includes: angular velocity change information and/or acceleration change information;
the first application is a video application, and the second application is a chat application;
an application switching determination module, configured to, when the second application is running in a foreground and the first application is running in a background, switch the video application running in the background to the foreground if it is detected that the chat application sends a message and the number of words of the message is greater than a preset threshold; and the chat server is further configured to switch the chat application running in the background to the foreground running if it is detected that the chat application receives a message when the first application is running in the foreground and the second application is running in the background.
7. The mobile terminal of claim 6, further comprising:
and the application switching determining module is further configured to determine, according to the detected state change information of the mobile terminal, an application to be switched to a foreground for operation according to the operation state of the first application and/or the operation state of the second application after adjusting the operation parameter of the first application.
8. The mobile terminal of claim 6, wherein the operation parameter adjusting module is specifically configured to:
searching a target operation parameter corresponding to the detected state change information of the mobile terminal based on a corresponding relation between pre-stored state change information and operation parameters;
and adjusting the operation parameters of the first application according to the target operation parameters.
9. The mobile terminal of claim 6, further comprising:
the first parameter adjustment judging module is used for judging whether the detected trigger operation of the user is consistent with a preset trigger condition or not before adjusting the running parameter of the first application according to the detected state change information of the mobile terminal;
and if the state change information of the mobile terminal is consistent with the state change information of the mobile terminal, triggering an operation parameter adjusting module to execute a step of adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal.
10. The mobile terminal of claim 6, further comprising:
the second parameter adjustment judging module is used for judging whether a user uses the mobile terminal according to the image information acquired by the camera device of the mobile terminal before adjusting the running parameter of the first application according to the detected state change information of the mobile terminal;
and if so, triggering an operation parameter adjusting module to execute a step of adjusting the operation parameters of the first application according to the detected state change information of the mobile terminal.
11. A mobile terminal, comprising: processor, memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the application control method according to any one of claims 1 to 5.
CN201711458831.3A 2017-12-28 2017-12-28 Application program control method and mobile terminal Active CN108055408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711458831.3A CN108055408B (en) 2017-12-28 2017-12-28 Application program control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711458831.3A CN108055408B (en) 2017-12-28 2017-12-28 Application program control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108055408A CN108055408A (en) 2018-05-18
CN108055408B true CN108055408B (en) 2019-12-24

Family

ID=62128591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711458831.3A Active CN108055408B (en) 2017-12-28 2017-12-28 Application program control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108055408B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845836A (en) * 2018-06-12 2018-11-20 Oppo广东移动通信有限公司 Control method, device and the electronic equipment of sliding equipment
CN109040845A (en) * 2018-08-29 2018-12-18 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal
CN109550242B (en) * 2018-11-19 2022-09-23 网易(杭州)网络有限公司 Method and device for controlling virtual character in game
CN109815837B (en) * 2018-12-29 2020-10-09 维沃移动通信有限公司 Face information input control method and mobile terminal
CN111913750B (en) * 2019-05-10 2022-04-22 华为技术有限公司 Application program management method, device and equipment
CN110442437A (en) * 2019-07-18 2019-11-12 维沃移动通信有限公司 A kind of application switching method and mobile terminal
CN112367529A (en) * 2020-02-26 2021-02-12 周国霞 Information output method based on feature recognition and intelligent terminal
CN113766293B (en) * 2020-06-05 2023-03-21 北京字节跳动网络技术有限公司 Information display method, device, terminal and storage medium
CN111859370B (en) * 2020-06-30 2024-05-17 百度在线网络技术(北京)有限公司 Method, apparatus, electronic device and computer readable storage medium for identifying service
CN113741994B (en) * 2021-06-26 2022-07-12 荣耀终端有限公司 Keep-alive method of video application and electronic equipment
CN114327178B (en) * 2021-11-18 2023-05-02 荣耀终端有限公司 Interface display method, device and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102564A (en) * 2007-07-25 2008-01-09 中兴通讯股份有限公司 A method for controlling mobile phone to play music
CN101902526A (en) * 2010-07-21 2010-12-01 惠州Tcl移动通信有限公司 Mobile terminal and volume control method and device thereof
WO2011099803A3 (en) * 2010-02-12 2012-01-05 Samsung Electronics Co., Ltd. Apparatus and method for performing multi-tasking
CN103248953A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method and system for processing TV advertisement time and TV programme playing terminal
CN103607504A (en) * 2013-11-13 2014-02-26 广东欧珀移动通信有限公司 Mobile terminal and volume adjustment method and apparatus thereof
CN104079701A (en) * 2013-03-25 2014-10-01 浪潮乐金数字移动通信有限公司 Method and device of controlling video display on mobile terminal
CN105376385A (en) * 2015-10-23 2016-03-02 广东欧珀移动通信有限公司 Volume adjusting method and user terminal
CN105791914A (en) * 2016-03-07 2016-07-20 合智能科技(深圳)有限公司 Playing control method and playing control device
CN105898529A (en) * 2015-12-03 2016-08-24 乐视网信息技术(北京)股份有限公司 Video automatic playback and pause realizing method and system
CN106303046A (en) * 2016-08-19 2017-01-04 乐视控股(北京)有限公司 Video broadcasting method and device
CN106998393A (en) * 2017-05-24 2017-08-01 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107172465A (en) * 2017-05-23 2017-09-15 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107295417A (en) * 2017-05-23 2017-10-24 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its method and apparatus for carrying out audio and video playing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902363A (en) * 2012-12-18 2014-07-02 上海鼎为电子科技(集团)有限公司 Electronic device supporting multiple-task switching and switching method
CN104424484B (en) * 2013-09-11 2019-01-15 阿里巴巴集团控股有限公司 Application program switching, the method and device for adding access information
CN106648869B (en) * 2016-12-26 2019-06-14 竞技世界(北京)网络技术有限公司 A kind of intelligent terminal application switching method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102564A (en) * 2007-07-25 2008-01-09 中兴通讯股份有限公司 A method for controlling mobile phone to play music
WO2011099803A3 (en) * 2010-02-12 2012-01-05 Samsung Electronics Co., Ltd. Apparatus and method for performing multi-tasking
CN101902526A (en) * 2010-07-21 2010-12-01 惠州Tcl移动通信有限公司 Mobile terminal and volume control method and device thereof
CN104079701A (en) * 2013-03-25 2014-10-01 浪潮乐金数字移动通信有限公司 Method and device of controlling video display on mobile terminal
CN103248953A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method and system for processing TV advertisement time and TV programme playing terminal
CN103607504A (en) * 2013-11-13 2014-02-26 广东欧珀移动通信有限公司 Mobile terminal and volume adjustment method and apparatus thereof
CN105376385A (en) * 2015-10-23 2016-03-02 广东欧珀移动通信有限公司 Volume adjusting method and user terminal
CN105898529A (en) * 2015-12-03 2016-08-24 乐视网信息技术(北京)股份有限公司 Video automatic playback and pause realizing method and system
CN105791914A (en) * 2016-03-07 2016-07-20 合智能科技(深圳)有限公司 Playing control method and playing control device
CN106303046A (en) * 2016-08-19 2017-01-04 乐视控股(北京)有限公司 Video broadcasting method and device
CN107172465A (en) * 2017-05-23 2017-09-15 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107295417A (en) * 2017-05-23 2017-10-24 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its method and apparatus for carrying out audio and video playing
CN106998393A (en) * 2017-05-24 2017-08-01 维沃移动通信有限公司 A kind of video playing control method and mobile terminal

Also Published As

Publication number Publication date
CN108055408A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108055408B (en) Application program control method and mobile terminal
CN108062190B (en) Application running state control method and mobile terminal
WO2019174611A1 (en) Application configuration method and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN111092990B (en) Application program sharing method, electronic device and storage medium
CN108170361B (en) Application running state control method and mobile terminal
CN108920059B (en) Message processing method and mobile terminal
US11658932B2 (en) Message sending method and terminal device
CN108334272B (en) Control method and mobile terminal
CN108196947B (en) Application running state control method and mobile terminal
CN110445924B (en) Network task execution method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN108345425B (en) Application management method and mobile terminal
CN107957843B (en) Control method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN110308834B (en) Setting method of application icon display mode and terminal
CN107992342B (en) Application configuration changing method and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN108681427B (en) Access right control method and terminal equipment
CN110221795B (en) Screen recording method and terminal
CN111163224B (en) Voice message playing method and electronic equipment
CN110764675A (en) Control method and electronic equipment
CN108073405B (en) Application program unloading method and mobile terminal
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN109445589B (en) Multimedia file playing control method and terminal equipment

Legal Events

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