CN107635078B - Game control method and device - Google Patents

Game control method and device Download PDF

Info

Publication number
CN107635078B
CN107635078B CN201711052102.8A CN201711052102A CN107635078B CN 107635078 B CN107635078 B CN 107635078B CN 201711052102 A CN201711052102 A CN 201711052102A CN 107635078 B CN107635078 B CN 107635078B
Authority
CN
China
Prior art keywords
application program
mobile terminal
application
background
closed
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
CN201711052102.8A
Other languages
Chinese (zh)
Other versions
CN107635078A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711052102.8A priority Critical patent/CN107635078B/en
Publication of CN107635078A publication Critical patent/CN107635078A/en
Application granted granted Critical
Publication of CN107635078B publication Critical patent/CN107635078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a game control method and equipment. The method comprises the following steps: the method comprises the steps that when the mobile terminal detects that a target game application program runs on a foreground of the mobile terminal, state information of the mobile terminal and at least one application program running on a background are obtained, wherein the state information is used for describing a system state of the mobile terminal; identifying a use scene of the mobile terminal according to the state information; determining an application program set corresponding to a use scene, and determining a background application program to be closed according to the application program set; displaying a preset virtual key on the touch display screen, wherein the preset virtual key is used for displaying an application icon of the background application program to be closed on the current running interface, and the preset virtual key is used for closing the background application program to be closed when being selected. The embodiment of the application is beneficial to improving the smoothness and the reliability of the running of the game application program of the mobile terminal.

Description

Game control method and device
Technical Field
The application relates to the technical field of mobile terminals, in particular to a game control method and game control equipment.
Background
With the rapid development of related technologies of smart phones, more and more applications are installed in user phones, such as reading applications, payment applications, game applications, music applications, and the like, but in the using process, when various applications are simultaneously operated, a large amount of system memory of the mobile terminal is occupied, so that the processing speed of the mobile terminal is slower and slower, and the normal use of the user is affected. In order to save the system memory of the mobile terminal and improve the processing speed of the mobile terminal, the background application program running on the mobile terminal needs to be cleaned.
Disclosure of Invention
The embodiment of the application provides a game control method and equipment, which can improve the performance and stability of a game application program of a mobile terminal in the running process.
In a first aspect, an embodiment of the present application provides a game control method, which is applied to a mobile terminal, and the method includes:
when detecting that a target game application program runs on a foreground of the mobile terminal, acquiring state information of the mobile terminal and at least one application program running on a background, wherein the state information is used for describing a system state of the mobile terminal;
identifying the use scene of the mobile terminal according to the state information;
determining an application program set corresponding to the use scene, and determining a background application program to be closed according to the application program set;
displaying a preset virtual key on a touch display screen, wherein the preset virtual key is used for displaying an application icon of a background application program to be closed on a current running interface, and closing the background application program to be closed when the preset virtual key is selected.
In a second aspect, an embodiment of the present application provides a game control apparatus, including an acquisition unit, a processing unit, and a display unit, wherein,
the obtaining unit is used for obtaining state information of the mobile terminal and at least one application program running in a background when the situation that a target game application program runs in a foreground of the mobile terminal is detected, wherein the state information is used for describing a system state of the mobile terminal;
the processing unit is used for identifying the use scene of the mobile terminal according to the state information;
the processing unit is further configured to determine an application set corresponding to the usage scenario, and determine a background application to be closed according to the application set;
the display unit is used for displaying a preset virtual key on the touch display screen, the preset virtual key is used for displaying an application icon of the background application program to be closed on the current running interface, and the background application program to be closed is closed when the preset virtual key is selected.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any method in the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in any one of the methods of the first aspect of the present application, and the computer includes a mobile terminal.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the application, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal first obtains state information of the mobile terminal and at least one application program running in a background, where the state information is used to describe a system state of the mobile terminal, then identifies a usage scenario of the mobile terminal according to the state information, then determines an application program set corresponding to the usage scenario, and determines a background application program to be closed according to the application program set, and finally displays a preset virtual key on a touch display screen, where the preset virtual key is used to display an application icon of the background application program to be closed on a current running interface, and closes the background application program to be closed when the preset virtual key is selected. The method is beneficial to improving the smoothness and the reliability of the game application program of the mobile terminal during running.
Drawings
Reference will now be made in brief to the accompanying drawings, to which embodiments of the present application relate.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
FIG. 2 is a flow chart of a game control method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a game control method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart illustrating a game control method disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a mobile terminal according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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 application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The operating system related to the embodiment of the invention is a software system which performs unified management on hardware resources and provides a service interface for a user.
As shown in fig. 1A, a current mobile terminal such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, the one or more application programs are third-party application programs installed on the mobile terminal, and the operating system space runs an operating system of the mobile terminal. The mobile terminal can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the mobile terminal is not limited herein. As shown in fig. 1B, for example that the mobile terminal runs the Android system, the corresponding user space includes Application layers (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
The process created by the third-party application program is initially run in the user space, and when it is to perform the actions of sending data through the network, reading disk resources and the like, it must be completed by calling the standard interface functions provided by the operating system, such as write, send and the like, that is, the CPU calls the code of the operating system space to complete the requested operation of the user. It can be seen that the third party application program wants to call the function provided by the operating system, and can only call the standard interface function provided by the third party application program. The game application in the present application is a third party application.
The embodiment of the application provides a game control method for a game application program of a mobile terminal, wherein in the method, when the mobile terminal detects that a target game application program runs on a foreground of the mobile terminal, state information of the mobile terminal and at least one application program running in a background are obtained, and the state information is used for describing a system state of the mobile terminal; identifying the use scene of the mobile terminal according to the state information; determining an application program set corresponding to the use scene, and determining a background application program to be closed according to the application program set; displaying a preset virtual key on a touch display screen, wherein the preset virtual key is used for displaying an application icon of a background application program to be closed on a current running interface, and closing the background application program to be closed when the preset virtual key is selected. The method is beneficial to improving the fluency and the reliability of the mobile terminal game application program in operation.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic flowchart of a game control method applied to a mobile terminal according to an embodiment of the present application, where as shown in the figure, the game control method includes:
s201, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal obtains state information of the mobile terminal and at least one application program running on a background, wherein the state information is used for describing a system state of the mobile terminal.
The game application program refers to a third-party application program installed in a user space of the mobile terminal, and the third-party application program may be a game application program, and the third-party game application program may be installed by a user or may be pre-installed by a developer before the mobile terminal leaves a factory, which is not limited herein.
The method comprises the steps that when the mobile terminal detects that a game application program runs in a foreground, state information of the mobile terminal and at least one application program running in a background can be determined, and the system state of the mobile terminal comprises information such as system time, a place where the mobile terminal is located, operation records and the like of the mobile terminal. When the background of the mobile terminal runs with a plurality of background application programs, the system memory of the mobile terminal is occupied, and when the system memory is excessively occupied, the running speed of the mobile terminal is reduced and the power consumption is increased.
S202, the mobile terminal identifies the use scene of the mobile terminal according to the state information.
The mobile terminal is preset with a plurality of use scenes, the use scenes of the mobile terminal can be determined according to the current state information of the mobile terminal, and the system time, the place, the operation records and other information of the mobile terminal in different use scenes are different.
S203, the mobile terminal determines an application program set corresponding to the use scene, and determines a background application program to be closed according to the application program set.
The application programs in the application program set are low-frequency application programs determined by the mobile terminal according to historical usage records in the corresponding usage scene, and the low-frequency application programs may include system application programs or third-party application programs. For example, in the status information, the location is in the user's office, and the time is noon break time, and in the usage scenario, the application program in the corresponding application program set is acquired as an office application program, such as a QQ mailbox application program, a WPS application program, and a WeChat application program.
After the set of applications corresponding to the current usage scenario is determined, the application to be closed of the current usage scenario may be further determined, and the background application to be closed is at least one application in the set of applications corresponding to the current usage scenario.
And S204, displaying a preset virtual key on the touch display screen by the mobile terminal, wherein the preset virtual key is used for displaying an application icon of the background application program to be closed on the current running interface, and closing the background application program to be closed when the preset virtual key is selected.
After determining background applications to be closed corresponding to a current use scene of the mobile terminal, the mobile terminal displays a preset virtual key on a touch display screen, the preset virtual key is an application icon of the background applications to be closed, when a plurality of background applications to be closed exist, each application can correspond to one preset virtual key, the corresponding background application is closed by selecting the preset virtual key, the background applications to be closed can be integrated into one preset virtual key, and all the background applications to be closed are closed by selecting the preset virtual key.
It can be seen that, in the embodiment of the application, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal first obtains state information of the mobile terminal and at least one application program running in a background, where the state information is used to describe a system state of the mobile terminal, then identifies a usage scenario of the mobile terminal according to the state information, then determines an application program set corresponding to the usage scenario, and determines a background application program to be closed according to the application program set, and finally displays a preset virtual key on a touch display screen, where the preset virtual key is used to display an application icon of the background application program to be closed on a current running interface, and closes the background application program to be closed when the preset virtual key is selected. When the target game application program runs in the foreground, the background application program to be closed is determined according to the use scene of the mobile terminal and the virtual keys of the background application program to be closed are provided, so that the current user can conveniently close the background application program to be closed through the virtual keys, more system resources are provided for the running of the game application program, and the smoothness and the stability of the running of the game application program of the mobile terminal are improved.
In one possible example, the determining the set of applications corresponding to the usage scenario includes: and inquiring a mapping relation between a preset use scene and an application program set, and determining the application program set corresponding to the use scene.
The application set corresponding to the actual use scene can be determined by querying the mapping relationship between the preset use scene and the application set.
Therefore, in this example, only through a simple search algorithm, the application set corresponding to the current usage scene of the mobile terminal is determined, and then the background application to be closed in the usage scene is determined through the corresponding application set, which is beneficial to improving the efficiency of running and accelerating the game application.
In one possible example, the determining the background application to be closed includes: and determining that the application program matched with the at least one application program running in the background in the application program set corresponding to the use scene is a background application program to be closed.
The background application program to be closed is determined according to the application program set corresponding to the use scene, and the application program running in the background in the corresponding application program set can be determined as the background application program to be closed.
In this example, the application program matching the application program set corresponding to the usage scenario with the at least one application program running in the background is determined as the background application program to be closed, instead of closing all the background application programs in a unified manner, which is beneficial to performing accelerated optimization on the game application program and reducing the influence on the user usage.
In one possible example, after determining to close at least one background application according to the application information, the method further includes: determining the current residual system memory of the mobile terminal; when detecting that the remaining system memory is lower than a first preset threshold value, determining an application program occupying the system memory of the mobile terminal and larger than a second preset threshold value in the application programs running in the background as a target application program; and closing the target application program.
The method comprises the steps that a system memory of a mobile terminal is fixed, after at least one background application program is closed, the current residual system memory of the mobile terminal can be determined, because data needs to be continuously loaded or resources need to be updated in the running process of a game, the occupation of the system memory can be gradually increased, in order to ensure the running smoothness of the game, the mobile terminal needs to reserve enough system memory, when the residual system memory of the mobile terminal is detected to be lower than a first preset threshold value, background application programs, occupying the system memory and larger than a second preset threshold value, of the current background application programs still running in the background are detected, the background application programs are determined to be target application programs, and the target application programs are closed to enable the residual system memory of the mobile terminal to be larger than the first preset threshold value.
As can be seen, in this example, after the mobile terminal runs the multiple application programs, the remaining system memory of the mobile terminal is detected, so that the remaining system memory is kept larger than the first preset threshold, which is beneficial to ensuring that the running application programs can run smoothly.
In one possible example, before the obtaining of the state information of the mobile terminal and the at least one application running in the background, the method further includes: determining a system memory occupied by the game application program; and when detecting that the system memory occupied by the game application program is greater than or equal to a third preset threshold value, determining to acquire the state information of the mobile terminal and at least one application program running in a background.
When the game application program runs in the foreground of the mobile terminal, the mobile terminal firstly detects the size of the system memory occupied by the game application program, and only when the size of the system memory occupied by the game application program is detected to be larger than a third preset threshold value, the game control method provided by the application is determined to be executed. When the system memory occupied by the game application program is smaller than the third preset threshold value, the game application program may be a mini game application program, the mini application program occupies a small system memory and may smoothly run without accelerating and optimizing the mobile terminal, so that the game control method in the present application may not be implemented, or the game application program may only start running, which is that the game application program can smoothly run, and when it is detected that the system memory occupied by the game application program is larger than the third preset threshold value, it indicates that the game application program needs accelerating and optimizing at this time,
in this example, a condition for triggering the mobile terminal to implement the game control method provided by the present application is provided, and the game control method of the present application is implemented when it is detected that the system memory occupied by the game application running in the foreground is greater than a third preset threshold, which is beneficial to improving the smoothness and reliability of the game application running.
Referring to fig. 3, fig. 3 is a schematic flowchart of a game control method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal and one or more application programs run on the mobile terminal, as shown in the figure, the game control method includes:
s301, when detecting that a target game application program runs on the foreground of the mobile terminal, the mobile terminal obtains state information of the mobile terminal and at least one application program running on the background, wherein the state information is used for describing the system state of the mobile terminal.
S302, the mobile terminal identifies the use scene of the mobile terminal according to the state information.
S303, the mobile terminal determines an application program set corresponding to the use scene, and determines a background application program to be closed according to the application program set.
S304, the mobile terminal displays a preset virtual key on the touch display screen, the preset virtual key is used for displaying an application icon of the background application program to be closed on the current running interface, and the background application program to be closed is closed when the preset virtual key is selected.
S305, the mobile terminal determines the current residual system memory of the mobile terminal.
And S306, when the mobile terminal detects that the remaining system memory is lower than a first preset threshold, determining that an application program occupying the system memory of the mobile terminal and being larger than a second preset threshold in the application programs running in the background is a target application program.
S307, the mobile terminal closes the target application program.
It can be seen that, in the embodiment of the application, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal first obtains state information of the mobile terminal and at least one application program running in a background, where the state information is used to describe a system state of the mobile terminal, then identifies a usage scenario of the mobile terminal according to the state information, then determines an application program set corresponding to the usage scenario, and determines a background application program to be closed according to the application program set, and finally displays a preset virtual key on a touch display screen, where the preset virtual key is used to display an application icon of the background application program to be closed on a current running interface, and closes the background application program to be closed when the preset virtual key is selected. When the target game application program runs in the foreground, the background application program to be closed is determined according to the use scene of the mobile terminal and the virtual keys of the background application program to be closed are provided, so that the current user can conveniently close the background application program to be closed through the virtual keys, more system resources are provided for the running of the game application program, and the smoothness and the stability of the running of the game application program of the mobile terminal are improved.
In addition, after the mobile terminal runs a plurality of application programs, the remaining system memory of the mobile terminal is detected, so that the remaining system memory is kept larger than a first preset threshold value, and the running application programs can be smoothly run.
Referring to fig. 4, fig. 4 is a schematic flowchart of a game control method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal and one or more application programs run on the mobile terminal, as shown in the figure, the game control method includes:
s401, when the mobile terminal detects that a target game application program runs in the foreground of the mobile terminal, determining a memory occupied by the game application program.
S402, the mobile terminal acquires state information of the mobile terminal and at least one application program running in a background when detecting that a system memory occupied by the game application program is greater than or equal to a third preset threshold value, wherein the state information is used for describing a system state of the mobile terminal.
S403, the mobile terminal identifies the use scene of the mobile terminal according to the state information.
S404, the mobile terminal determines an application program set corresponding to the use scene, and determines a background application program to be closed according to the application program set.
S405, the mobile terminal displays a preset virtual key on the touch display screen, wherein the preset virtual key is used for displaying an application icon of the background application program to be closed on the current running interface, and the background application program to be closed is closed when the preset virtual key is selected.
S406, the mobile terminal determines the current residual system memory of the mobile terminal.
S407, when detecting that the remaining system memory is lower than a first preset threshold, the mobile terminal determines, as a target application, an application occupying the system memory of the mobile terminal and being greater than a second preset threshold in the applications running in the background.
S308, the mobile terminal closes the target application program.
It can be seen that, in the embodiment of the application, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal first obtains state information of the mobile terminal and at least one application program running in a background, where the state information is used to describe a system state of the mobile terminal, then identifies a usage scenario of the mobile terminal according to the state information, then determines an application program set corresponding to the usage scenario, and determines a background application program to be closed according to the application program set, and finally displays a preset virtual key on a touch display screen, where the preset virtual key is used to display an application icon of the background application program to be closed on a current running interface, and closes the background application program to be closed when the preset virtual key is selected. When the target game application program runs in the foreground, the background application program to be closed is determined according to the use scene of the mobile terminal and the virtual keys of the background application program to be closed are provided, so that the current user can conveniently close the background application program to be closed through the virtual keys, more system resources are provided for the running of the game application program, and the smoothness and the stability of the running of the game application program of the mobile terminal are improved.
In addition, after the mobile terminal runs a plurality of application programs, the remaining system memory of the mobile terminal is detected, so that the remaining system memory is kept larger than a first preset threshold value, and the running application programs can be smoothly run.
In addition, in this example, a condition for triggering the mobile terminal to implement the game control method provided by the present application is provided, and the game control method of the present application is implemented when it is detected that a system memory occupied by a game application running in a foreground is greater than a third preset threshold, which is beneficial to improving smoothness and reliability of the game application running.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal runs one or more application programs and an operating system, and as shown in the figure, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more application programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
when detecting that a target game application program runs on a foreground of the mobile terminal, acquiring state information of the mobile terminal and at least one application program running on a background, wherein the state information is used for describing a system state of the mobile terminal;
identifying the use scene of the mobile terminal according to the state information;
determining an application program set corresponding to the use scene, and determining a background application program to be closed according to the application program set;
displaying a preset virtual key on a touch display screen, wherein the preset virtual key is used for displaying an application icon of a background application program to be closed on a current running interface, and closing the background application program to be closed when the preset virtual key is selected.
It can be seen that, in the embodiment of the application, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal first obtains state information of the mobile terminal and at least one application program running in a background, where the state information is used to describe a system state of the mobile terminal, then identifies a usage scenario of the mobile terminal according to the state information, then determines an application program set corresponding to the usage scenario, and determines a background application program to be closed according to the application program set, and finally displays a preset virtual key on a touch display screen, where the preset virtual key is used to display an application icon of the background application program to be closed on a current running interface, and closes the background application program to be closed when the preset virtual key is selected. When the target game application program runs in the foreground, the background application program to be closed is determined according to the use scene of the mobile terminal and the virtual keys of the background application program to be closed are provided, so that the current user can conveniently close the background application program to be closed through the virtual keys, more system resources are provided for the running of the game application program, and the smoothness and the stability of the running of the game application program of the mobile terminal are improved.
In one possible example, in the aspect of determining the application program set corresponding to the usage scenario, the instructions in the application program are specifically configured to perform the following operations: and inquiring a mapping relation between a preset use scene and an application program set, and determining the application program set corresponding to the use scene.
In one possible example, in the aspect of determining the background application to be closed, the instructions in the foregoing program are specifically configured to perform the following operations: and determining that the application program matched with the at least one application program running in the background in the application program set corresponding to the use scene is a background application program to be closed.
In one possible example, after determining to close at least one background application program according to the application information, the instructions in the foregoing program are further configured to: determining the current residual system memory of the mobile terminal; the application program which occupies the system memory of the mobile terminal and is larger than a second preset threshold value in the application programs running in the background is determined as a target application program when the remaining system memory is detected to be lower than the first preset threshold value; and for closing the target application.
In a possible example, before the obtaining of the state information of the mobile terminal and the at least one application program running in the background, the instructions in the above program are further configured to: determining a memory occupied by the game application program; and the application program module is used for determining to acquire the state information of the mobile terminal and at least one application program running in the background when detecting that the system memory occupied by the game application program is greater than or equal to a third preset threshold value.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In case of integrated units, fig. 6 shows a block diagram of a possible functional unit composition of the resource configuration device involved in the above-described embodiment. The resource allocation apparatus 600 is applied to a mobile terminal, on which an operating system and one or more application programs are running, and the resource allocation apparatus 600 includes: an acquisition unit 601, a processing unit 602, and a display unit 603, wherein,
the obtaining unit 601 is configured to obtain state information of the mobile terminal and at least one application running in a background when it is detected that a target game application runs in a foreground of the mobile terminal, where the state information is used to describe a system state of the mobile terminal;
the processing unit 602 is configured to identify a usage scenario of the mobile terminal according to the state information;
the processing unit 602 is further configured to determine an application set corresponding to the usage scenario, and determine a background application to be closed according to the application set;
the display unit 603 is configured to display a preset virtual key on the touch display screen, where the preset virtual key is used to display an application icon of a background application to be closed on a current running interface, and close the background application to be closed when the preset virtual key is selected.
It can be seen that, in the embodiment of the application, when detecting that a target game application program runs on a foreground of the mobile terminal, the mobile terminal first obtains state information of the mobile terminal and at least one application program running in a background, where the state information is used to describe a system state of the mobile terminal, then identifies a usage scenario of the mobile terminal according to the state information, then determines an application program set corresponding to the usage scenario, and determines a background application program to be closed according to the application program set, and finally displays a preset virtual key on a touch display screen, where the preset virtual key is used to display an application icon of the background application program to be closed on a current running interface, and closes the background application program to be closed when the preset virtual key is selected. When the target game application program runs in the foreground, the background application program to be closed is determined according to the use scene of the mobile terminal and the virtual keys of the background application program to be closed are provided, so that the current user can conveniently close the background application program to be closed through the virtual keys, more system resources are provided for the running of the game application program, and the smoothness and the stability of the running of the game application program of the mobile terminal are improved.
In a possible example, in the aspect of determining the application set corresponding to the usage scenario, the processing unit 602 is specifically configured to: and inquiring a mapping relation between a preset use scene and an application program set, and determining the application program set corresponding to the use scene.
In a possible example, in the aspect of determining the application set corresponding to the usage scenario, the processing unit 602 is specifically configured to: and determining that the application program matched with the at least one application program running in the background in the application program set corresponding to the use scene is a background application program to be closed.
In a possible example, after determining to close at least one background application according to the application information, the processing unit 602 is further configured to determine a current remaining system memory of the mobile terminal; the application program which occupies the system memory of the mobile terminal and is larger than a second preset threshold value in the application programs running in the background is determined as a target application program when the remaining system memory is detected to be lower than the first preset threshold value; and for closing the target application.
In a possible example, before the obtaining of the state information of the mobile terminal and the at least one application running in the background, the processing unit 602 is further configured to determine a memory occupied by the game application; and the application program module is used for determining to acquire the state information of the mobile terminal and at least one application program running in the background when detecting that the system memory occupied by the game application program is greater than or equal to a third preset threshold value.
It should be noted that the mobile terminal described in the embodiments of the apparatus of the present application is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
The acquiring unit 601 and the processing unit 602 may be a processor or a controller, and the display unit 603 may be a touch display screen.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a smart phone 700 according to an embodiment of the present application, where the smart phone 700 includes: casing 710, touch-sensitive display screen 720, mainboard 730, battery 740 and subplate 750, be provided with leading camera 731, processor 732, memory 733, power management chip 734 on mainboard 730, be provided with oscillator 751, integrative sound chamber 752, VOOC flash charging interface 753 and fingerprint identification module 754 on the subplate.
The smartphone 700 can acquire state information of the mobile terminal and at least one application program running in a background when detecting that a target game application program runs in a foreground of the mobile terminal, wherein the state information is used for describing a system state of the mobile terminal; identifying the use scene of the mobile terminal according to the state information; determining an application program set corresponding to the use scene, and determining a background application program to be closed according to the application program set; displaying a preset virtual key on a touch display screen, wherein the preset virtual key is used for displaying an application icon of a background application program to be closed on a current running interface, and closing the background application program to be closed when the preset virtual key is selected.
The processor 732 is a control center of the smart phone, connects various parts of the entire smart phone through various interfaces and lines, and executes various functions and processes data of the smart phone by operating or executing software programs and/or modules stored in the memory 733 and calling data stored in the memory 733, thereby integrally monitoring the smart phone. Alternatively, processor 732 may include one or more processing units; preferably, the processor 732 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 is to be appreciated that the modem processor described above may not be integrated into processor 732. The Processor 732 may be, for example, a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor described above may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
The memory 733 may be used to store software programs and modules, and the processor 732 may execute various functional applications and data processing of the smart phone by operating the software programs and modules stored in the memory 733. The memory 733 may mainly include a program storage area that may store an operating system, an application program required for at least one function, and the like, and a data storage area; the storage data area may store data created according to the use of the smartphone, and the like. Further, the memory 733 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The Memory 733 may be, for example, a Random Access Memory (RAM), a flash Memory, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a register, a hard disk, a removable hard disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A game control method, comprising:
when a target game application program is detected to run in a foreground of the mobile terminal, determining a system memory occupied by the game application program; when detecting that a system memory occupied by the game application program is greater than or equal to a third preset threshold value, acquiring state information of the mobile terminal and at least one application program running in a background, wherein the state information is used for describing a system state of the mobile terminal;
identifying the use scene of the mobile terminal according to the state information;
querying a mapping relation between a preset use scene and an application program set, determining the application program set corresponding to the use scene, and determining an application program matched with at least one application program running in the background in the application program set corresponding to the use scene as a background application program to be closed; the application program set is a set of low-frequency application programs determined according to historical usage records in the usage scene; the background application program to be closed is at least one application program in the application program set;
displaying a preset virtual key on a touch display screen, wherein the preset virtual key is used for displaying an application icon of a background application program to be closed on a current running interface, and closing the background application program to be closed when the preset virtual key is selected.
2. The method of claim 1, wherein after determining to close at least one background application according to the application information, the method further comprises:
determining the current residual system memory of the mobile terminal;
when detecting that the remaining system memory is lower than a first preset threshold value, determining an application program occupying the system memory of the mobile terminal and larger than a second preset threshold value in the application programs running in the background as a target application program;
and closing the target application program.
3. A game control apparatus comprising an acquisition unit, a processing unit, and a display unit, wherein,
the acquisition unit is used for determining a system memory occupied by a game application program when the situation that the target game application program runs on the front desk of the mobile terminal is detected; when detecting that a system memory occupied by the game application program is greater than or equal to a third preset threshold value, acquiring state information of the mobile terminal and at least one application program running in a background, wherein the state information is used for describing a system state of the mobile terminal;
the processing unit is used for identifying the use scene of the mobile terminal according to the state information;
the processing unit is further configured to query a mapping relationship between a preset usage scene and an application set, determine the application set corresponding to the usage scene, and determine an application program in the application set corresponding to the usage scene, which is matched with the at least one application program running in the background, as a background application program to be closed; the application program set is a set of low-frequency application programs determined according to historical usage records in the usage scene; the background application program to be closed is at least one application program in the application program set;
the display unit is used for displaying a preset virtual key on the touch display screen, the preset virtual key is used for displaying an application icon of the background application program to be closed on the current running interface, and the background application program to be closed is closed when the preset virtual key is selected.
4. The game control apparatus according to claim 3,
the processing unit is further configured to determine a current remaining system memory of the mobile terminal; the application program which occupies the system memory of the mobile terminal and is larger than a second preset threshold value in the application programs running in the background is determined as a target application program when the remaining system memory is detected to be lower than the first preset threshold value; and for closing the target application.
5. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-2.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-2, the computer comprising a mobile terminal.
CN201711052102.8A 2017-10-30 2017-10-30 Game control method and device Active CN107635078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711052102.8A CN107635078B (en) 2017-10-30 2017-10-30 Game control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711052102.8A CN107635078B (en) 2017-10-30 2017-10-30 Game control method and device

Publications (2)

Publication Number Publication Date
CN107635078A CN107635078A (en) 2018-01-26
CN107635078B true CN107635078B (en) 2020-12-22

Family

ID=61107068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711052102.8A Active CN107635078B (en) 2017-10-30 2017-10-30 Game control method and device

Country Status (1)

Country Link
CN (1) CN107635078B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958928A (en) * 2018-06-12 2018-12-07 北京智明星通科技股份有限公司 A kind of method, apparatus and intelligent terminal optimizing game running environment
CN109544663B (en) * 2018-11-09 2023-01-06 腾讯科技(深圳)有限公司 Virtual scene recognition and interaction key position matching method and device of application program
CN109697090B (en) * 2018-12-27 2022-10-11 Oppo广东移动通信有限公司 Method for controlling terminal equipment, terminal equipment and storage medium
CN111400148A (en) * 2019-01-03 2020-07-10 ***通信集团终端有限公司 Application program management method, device, equipment and medium
CN109992315B (en) * 2019-04-09 2022-03-25 Oppo广东移动通信有限公司 Touch screen control method and device, terminal and storage medium
CN111913750B (en) * 2019-05-10 2022-04-22 华为技术有限公司 Application program management method, device and equipment
CN111068322B (en) * 2019-12-28 2023-07-04 上海米哈游天命科技有限公司 Object moving method, device, terminal and storage medium
CN115706753A (en) * 2021-08-16 2023-02-17 华为技术有限公司 Application program management method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220427A (en) * 2013-04-16 2013-07-24 广东欧珀移动通信有限公司 Mobile phone background program cleaning method and mobile phone
CN103763433A (en) * 2013-12-31 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling operation of terminal applications
WO2015081713A1 (en) * 2013-12-03 2015-06-11 Tencent Technology (Shenzhen) Company Limited Method and apparatus for running applications in background
CN104834517A (en) * 2015-04-08 2015-08-12 来安县新元机电设备设计有限公司 Mobile terminal power-saving method and mobile terminal
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN105373419A (en) * 2014-08-26 2016-03-02 阿里巴巴集团控股有限公司 Background application operation method and system
CN107133094A (en) * 2017-06-05 2017-09-05 努比亚技术有限公司 Application management method, mobile terminal and computer-readable recording medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714895B (en) * 2015-03-23 2018-02-02 努比亚技术有限公司 A kind of mobile terminal and its method and apparatus for improving the speed of service
CN105824631A (en) * 2016-03-16 2016-08-03 深圳市金立通信设备有限公司 Control method of application program and terminal
CN106775811A (en) * 2016-11-17 2017-05-31 Tcl集团股份有限公司 A kind of animation playing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220427A (en) * 2013-04-16 2013-07-24 广东欧珀移动通信有限公司 Mobile phone background program cleaning method and mobile phone
WO2015081713A1 (en) * 2013-12-03 2015-06-11 Tencent Technology (Shenzhen) Company Limited Method and apparatus for running applications in background
CN103763433A (en) * 2013-12-31 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling operation of terminal applications
CN105373419A (en) * 2014-08-26 2016-03-02 阿里巴巴集团控股有限公司 Background application operation method and system
CN104834517A (en) * 2015-04-08 2015-08-12 来安县新元机电设备设计有限公司 Mobile terminal power-saving method and mobile terminal
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN107133094A (en) * 2017-06-05 2017-09-05 努比亚技术有限公司 Application management method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN107635078A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN107635078B (en) Game control method and device
CN107861816B (en) Resource allocation method and device
CN107861814B (en) Resource allocation method and equipment
CN107547746B (en) Resource allocation method and related product
CN107577533B (en) Resource allocation method and related product
CN107797868B (en) Resource adjusting method and device
US11698815B2 (en) Method for resource allocation and related products
CN107807852B (en) Application program performance control method, device and computer readable storage medium
CN107786748B (en) Image display method and apparatus
US10020832B2 (en) Method of controlling SIM card and SD card and electronic device for implementing the same
CN107479970B (en) Resource allocation method and related product
CN107450988B (en) Resource allocation method and related product
CN107832142B (en) Resource allocation method and equipment for application program
CN107547745B (en) Resource allocation method and related product
CN107589977B (en) Resource allocation method, resource allocation device, mobile terminal and medium
CN108536480B (en) Input method configuration method and related product
WO2019072208A1 (en) Application running control method and device
CN108509240B (en) Picture drawing method and related product
CN108984339B (en) Data recovery method and related product
WO2019047708A1 (en) Resource configuration method and related product
CN111373728B (en) Control method and device for camera application
WO2019076254A1 (en) Game application control method, and device
CN108227953B (en) Character input method and related product
CN107528977B (en) Resource allocation method and related product
CN108804258B (en) Data recovery method and device, mobile terminal and storage medium

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant