CN108595238B - Display control method and device of application interface - Google Patents

Display control method and device of application interface Download PDF

Info

Publication number
CN108595238B
CN108595238B CN201810319414.9A CN201810319414A CN108595238B CN 108595238 B CN108595238 B CN 108595238B CN 201810319414 A CN201810319414 A CN 201810319414A CN 108595238 B CN108595238 B CN 108595238B
Authority
CN
China
Prior art keywords
application program
display interface
application
display
displayed
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
CN201810319414.9A
Other languages
Chinese (zh)
Other versions
CN108595238A (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 CN201810319414.9A priority Critical patent/CN108595238B/en
Publication of CN108595238A publication Critical patent/CN108595238A/en
Application granted granted Critical
Publication of CN108595238B publication Critical patent/CN108595238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a display control method and a display control device for an application interface, and the method comprises the following steps: when an exit request aiming at a first application program is received, executing an exit operation aiming at the first application program according to the exit request; the system comprises a first application program and a second application program, wherein the first application program is used for executing a starting operation according to a starting request when the starting request aiming at the first application program is received in a preset time period; and the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation. The embodiment of the application is beneficial to avoiding the black screen phenomenon caused by long time spent in quitting the processing when the application is restarted after quitting, improving the display effect and reducing the processing time of application starting.

Description

Display control method and device of application interface
Technical Field
The application relates to the technical field of mobile terminals, in particular to a display control method and device of an application interface.
Background
With the rapid development of mobile terminals (such as smart phones), the mobile terminals become necessities of people, and more applications are installed in the mobile terminals, such as reading applications, payment applications, game applications, music applications, and the like.
At present, a user often performs frequent switching among a plurality of different applications, and in the process of the frequent switching, a display interface may have a black screen, for example, when the user exits any one application, the exit operation of the system for the application is time-consuming in some cases, and if the user quickly enters the application again after exiting the application, the display interface removal for the exit operation of the application may be performed after the application program is started, resulting in application black screen.
Disclosure of Invention
The embodiment of the application provides a display control method and device for an application interface, which can avoid the phenomenon of screen blacking caused by long time spent on quitting processing when an application program is restarted after quitting, improve the display effect and reduce the processing time of application starting.
In a first aspect, an embodiment of the present application provides a display control method for an application interface, where the method includes:
when an exit request aiming at a first application program is received, executing an exit operation aiming at the first application program according to the exit request;
within a preset time period, when a starting request aiming at the first application program is received, executing a starting operation aiming at the first application program according to the starting request;
and determining a first display interface to be removed in the first application program as the display interface to be displayed in the starting operation.
In a second aspect, an embodiment of the present application provides a display control apparatus for an application interface, including a first execution unit, a second execution unit, and a determination unit, where:
the first execution unit is used for executing quitting operation aiming at a first application program according to a quitting request when the quitting request aiming at the first application program is received;
the second execution unit is used for executing the starting operation aiming at the first application program according to the starting request when the starting request aiming at the first application program is received in a preset time period;
the determining unit is configured to determine the first display interface to be removed in the first application as the display interface to be displayed in the starting operation.
In a third aspect, an embodiment of the present application provides a mobile terminal, including: a processor, memory, and one or more programs; the one or more programs are stored in the above memory and configured to be executed by the processor, the programs including instructions for performing the steps described in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, the computer program specifically includes instructions for executing some or all of the steps described in any method of the first aspect of the embodiment 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 comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being 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, said computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present application, a mobile terminal, when receiving a quit request for a first application program, performs a quit operation for the first application program according to the quit request, then, within a preset time period, when receiving a start request for the first application program, performs a start operation for the first application program according to the start request, and finally, determines a first display interface to be removed in the first application program as a display interface to be displayed in the start operation. Therefore, when the mobile terminal exits the first application program and rapidly starts the first application program again after exiting the first application program, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the phenomenon of black screen caused by long time spent in exiting processing is avoided when the application program is started again after exiting, the display effect is improved, in addition, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the process of loading the display interface in the starting operation is reduced, the processing time of application starting is shortened, and the application starting speed is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic flowchart of a display control method for an application interface disclosed in an embodiment of the present application;
fig. 1B is a schematic diagram of a display interface for adjusting display parameters of an application interface to target display parameters, disclosed in an embodiment of the present application;
FIG. 2 is a flowchart illustrating another method for controlling display of an application interface according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating another method for controlling display of an application interface according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 5A is a block diagram illustrating functional units of a display control apparatus of an application interface according to an embodiment of the present disclosure;
fig. 5B is a block diagram illustrating functional units of a display control apparatus of another application interface disclosed in an embodiment of the present application;
fig. 6 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 following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic flowchart of a display control method for an application interface according to an embodiment of the present application, where as shown in the figure, the display control method for the application interface includes:
s101, when receiving a quitting request aiming at a first application program, a mobile terminal executes quitting operation aiming at the first application program according to the quitting request;
the first application program is a third-party application program installed in a user space of the mobile terminal, the third-party application program may be, for example, a game application, a photo application, an instant messaging application, a video application, and the like, and the third-party application program may be installed by a user or may be preinstalled by a developer before the mobile terminal leaves a factory, which is not limited herein.
The triggering condition for the mobile terminal to receive the exit request for the first application program may be that the user presses the HOME key to request to exit the first application program currently running in the foreground and enter the system desktop, or may be a point-touch operation for the notification message to request to exit the first application program currently running in the foreground and enter an application program associated with the notification message, and the like, which is not limited uniquely here.
The specific implementation manner of executing the exit operation for the first application program according to the exit request may be various, for example, the exit operation may be that the first application program exits and enters a system desktop, or the exit operation may exit and enters a target application program, and the exit operation includes a plurality of different operations according to different types or different settings of each application program, for example, an operation of explicitly caching may be included, an operation of marking a current video playing node may be included, an operation of loading a cache may be included, and the like, which is not limited herein.
S102, in a preset time period, when receiving a starting request aiming at the first application program, the mobile terminal executes a starting operation aiming at the first application program according to the starting request;
the trigger condition for the mobile terminal to receive the start request for the first application program may be a point-touch operation of the user on the first application program icon to request to start the first application program, or may be a point-touch operation on the notification message to request to start the first application program associated with the notification message, and the like, which is not limited herein.
Executing the starting operation for the first application program according to the starting request includes starting a plurality of processes and services corresponding to the first application program, loading a display interface corresponding to the first application program, and the like, and is not limited uniquely here.
The preset time period may be an empirical value, and is preset in the mobile terminal by a technician, and the preset time period may be 30s or 50s, which is not limited herein.
S103, the mobile terminal determines the first display interface to be removed in the first application program as the display interface to be displayed in the starting operation.
The first display interface to be removed in the first application program is the display interface which runs in the foreground of the first application program and receives the quit request, and the display interface to be displayed in the starting operation is the display interface which needs to be loaded and displayed in the starting operation aiming at the first application program.
In one possible example, the determining, as the display interface to be displayed in the launching operation, the first display interface to be removed in the first application program includes:
notifying a first working thread executing the quitting operation to cancel the removing operation aiming at the first display interface to be removed;
notifying a second working thread executing the starting operation to cancel the loading operation aiming at the display interface to be displayed;
and determining the first display interface to be removed as the display interface to be displayed for display operation.
The quitting operation and the starting operation are respectively executed by a first working thread and a second working thread, the first working thread and the second working thread can be executed in parallel, and the starting operation and the quitting operation are not mutually influenced.
It can be seen that, in this example, the mobile terminal executes the quitting operation and the starting operation by the first working thread and the second working thread respectively, and the quitting operation and the starting operation are executed by two different working threads, so that the quitting operation and the starting operation can be executed in parallel, which is beneficial to improving the control speed of the application program.
It can be seen that, in the embodiment of the present application, a mobile terminal, when receiving a quit request for a first application program, performs a quit operation for the first application program according to the quit request, then, within a preset time period, when receiving a start request for the first application program, performs a start operation for the first application program according to the start request, and finally, determines a first display interface to be removed in the first application program as a display interface to be displayed in the start operation. Therefore, when the mobile terminal exits the first application program and rapidly starts the first application program again after exiting the first application program, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the phenomenon of black screen caused by long time spent in exiting processing is avoided when the application program is started again after exiting, the display effect is improved, in addition, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the process of loading the display interface in the starting operation is reduced, the processing time of application starting is shortened, and the application starting speed is improved.
In one possible example, before determining the first display interface to be removed in the first application program as the display interface to be displayed in the launching operation, the method further includes:
determining the execution duration of the quitting operation;
and detecting that the execution time length is greater than or equal to a first preset time length threshold value.
The specific implementation manner of determining the execution duration of the exit operation may be to record a first time node when the exit operation is started to be executed, then record a second time node when the exit operation is completed, and then determine a time difference between the first time node and the second time node as the execution duration, or may be that a timer exists, the execution of the exit operation is known by starting to time from when the exit operation is started to be executed, and the time is ended, which is not limited herein.
The first preset duration threshold may be set in the mobile terminal by a technical developer according to an empirical value before the mobile terminal leaves a factory, and is not limited herein, and the first preset duration threshold may be 0.5min, 0.8min, and the like, and is not limited herein.
It can be seen that, in this example, the mobile terminal determines whether a black screen phenomenon occurs by determining whether the execution duration of the quitting operation is greater than a first preset duration threshold, and when the execution duration is greater than or equal to the first preset duration threshold, it indicates that the operation of removing the display interface occurs after the start operation starts to be executed, so as to cause the black screen phenomenon, and then determines the first display interface to be removed in the first application program as the display interface to be displayed in the start operation, so that a determination mechanism is added, which is beneficial to improving the accuracy of determining the display interface to be displayed, and the implementation comprehensiveness of the scheme.
In this possible example, before the detecting that the execution duration is greater than or equal to a first preset duration threshold, the method further includes:
determining a category of the first application;
and taking the category of the first application program as query expression, querying the mapping relation between the category of the application program and a preset duration threshold, and determining the first preset duration threshold corresponding to the category of the first application program.
The category of the first application program may be a first category, a second category, and the like, the first preset time length thresholds corresponding to different categories are different, the category of the first application program may also be a game category, a video category, a communication category, and the like, and for the application programs of different categories, as described in the above S101, the operation steps to be executed when exiting the operation are different, and therefore, the execution time lengths of the exiting operation are different.
As can be seen, in this example, the mobile terminal correspondingly sets the first preset duration threshold according to the different categories to which the first application program belongs, which is beneficial to improving the intelligence of the mobile terminal, the adaptability of the mobile terminal to different application programs, and the accuracy of display control operation.
In one possible example, the method further comprises:
determining a first average duration of the starting operation according to a historical operation record associated with the first application program;
determining a second average duration of the quitting operation according to the historical operation record;
and determining that the second average duration is smaller than a second preset duration threshold, wherein the first average duration is larger than a third preset duration threshold, and the second preset duration threshold is larger than the first preset duration threshold.
The historical operation records include a plurality of historical operation records, and each historical operation record includes an application name, start-stop time of starting operation, start-stop time of exiting operation, and the like, which is not limited herein.
The first average duration of the starting operation is the average duration of the starting operation corresponding to the first application program in the multiple historical operation records, the second average duration of the quitting operation is the average duration of the quitting operation corresponding to the first application program in the multiple historical operation records, and the multiple historical records may be ten times, twenty times and the like, and are not limited uniquely here.
The third preset duration threshold is an empirical value, and is set in the mobile terminal by a technical developer of the mobile terminal according to the empirical value, and the third preset duration threshold may be, for example, 10s, 20s, and the like, which is not limited herein.
In this example, the mobile terminal determines the first average duration of the start operation and the second average duration of the quit operation according to the historical operation records, which is beneficial to improving the intelligence of the mobile terminal, and moreover, by determining that the second average duration is smaller than the second preset duration threshold, and the first average duration is larger than the third preset trial production threshold, the possibility of the occurrence of the black screen is further ensured, and the necessity and the accuracy of the display control are improved.
In one possible example, before performing a launch operation for the first application according to the launch request when the launch request for the first application is received, the method further includes:
receiving a quitting request of a second application program, and executing quitting operation aiming at the second application program, wherein the first display interface to be removed in the first application program and the second display interface to be removed in the second application program are simultaneously displayed in a display area of a display screen of the mobile terminal through screen splitting operation;
after the determining that the first display interface to be removed in the first application program is the display interface to be displayed in the starting operation, the method further includes:
removing the second display interface to be removed;
adjusting the display parameters of the display interface to be displayed to be target display parameters according to the area to be displayed of the display screen;
and displaying the display interface to be displayed according to the target display parameters.
The first application program and the second application program are in split-screen operation, that is, are simultaneously displayed on the same display interface, and the areas of the display interfaces occupied by the first application program and the second application program under the split-screen operation condition may be the same or different, and may be set by a user according to different requirements.
The area to be displayed of the display screen may be the whole area of the display screen, or may be a partial area of the display screen, which is not limited herein.
When the quitting operation aiming at the first application program is executed, the first display interface to be removed in the first application program is the area of the display area except the area of the display area occupied by the display interface in the second application program in the whole display area of the display screen, and the area of the display area is a partial area of the display screen.
The display parameters may include a display size, a display brightness, and the like, which are not limited herein.
The display interface to be displayed may include hidden content, and when the display parameter of the display interface is adjusted to be the target display parameter, the hidden content may be displayed according to an adjustment requirement, as shown in fig. 1B, after the first display interface to be removed of the first application program is determined to be the display interface to be displayed, the display parameter of the first display interface is enlarged to be the target display parameter, and meanwhile, the hidden content which cannot be displayed during split-screen display is displayed.
As can be seen, in this example, in the scene of split-screen display, the mobile terminal exits the first application program and the second application program sequentially, and when the first application program is started within a preset time period, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, and the display interface to be displayed is displayed after adaptively adjusting the display parameters to the target display parameters in the scene of no split-screen display, which is beneficial to improving the intelligence and the adaptability of the display control of the mobile terminal, improving the display effect, and improving the visual experience of the user.
Referring to fig. 2, fig. 2 is a schematic flow chart of another display control method for an application interface according to an embodiment of the present application, where as shown in the figure, the display control method for an application interface includes:
s201, when receiving a quitting request aiming at a first application program, the mobile terminal executes quitting operation aiming at the first application program according to the quitting request.
S202, in a preset time period, when the mobile terminal receives a starting request aiming at the first application program, the mobile terminal executes a starting operation aiming at the first application program according to the starting request.
S203, the mobile terminal determines the execution duration of the quitting operation.
S204, the mobile terminal determines the category of the first application program.
S205, the mobile terminal takes the category of the first application program as query expression, queries the mapping relation between the category of the application program and a preset duration threshold, and determines a first preset duration threshold corresponding to the category of the first application program.
S206, the mobile terminal determines the first average duration of the starting operation according to the historical operation record associated with the first application program.
And S207, the mobile terminal determines the second average duration of the quitting operation according to the historical operation record.
S208, the mobile terminal determines that the second average duration is smaller than a second preset duration threshold, and the first average duration is larger than a third preset duration threshold.
And the second preset time length threshold value is greater than the first preset time length threshold value.
S209, the mobile terminal detects that the execution duration is greater than or equal to the first preset duration threshold, and notifies a first working thread executing the quitting operation to cancel the removing operation of the first display interface to be removed.
S210, the mobile terminal informs a second working thread executing the starting operation to cancel the loading operation aiming at the display interface to be displayed.
S211, the mobile terminal determines the first display interface to be removed as the display interface to be displayed for display operation.
It can be seen that, in the embodiment of the present application, a mobile terminal, when receiving a quit request for a first application program, performs a quit operation for the first application program according to the quit request, then, within a preset time period, when receiving a start request for the first application program, performs a start operation for the first application program according to the start request, and finally, determines a first display interface to be removed in the first application program as a display interface to be displayed in the start operation. Therefore, when the mobile terminal exits the first application program and rapidly starts the first application program again after exiting the first application program, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the phenomenon of black screen caused by long time spent in exiting processing is avoided when the application program is started again after exiting, the display effect is improved, in addition, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the process of loading the display interface in the starting operation is reduced, the processing time of application starting is shortened, and the application starting speed is improved.
The mobile terminal executes quitting operation and starting operation by a first working thread and a second working thread respectively, the quitting operation and the starting operation are executed by two different working threads, the parallel execution of the quitting operation and the starting operation can be realized, the control speed of an application program is favorably improved, the first display interface to be removed is determined as the display interface to be displayed for display operation, namely, the first display interface does not need to be removed and reloaded, two execution flows in the quitting operation and the starting operation are cancelled simultaneously, the display speed of the display interface is further improved, the processing efficiency is improved, whether the black screen phenomenon occurs or not is determined by judging whether the execution duration of the quitting operation is greater than a first preset duration threshold value or not, and when the execution duration is greater than or equal to the first preset duration threshold value, the method has the advantages that the operation of removing the display interface can occur after the starting operation is started to be executed, so that the phenomenon of screen blacking is caused, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, a judgment mechanism is added, the accuracy of determining the display interface to be displayed is improved, and the implementation comprehensiveness of the scheme is improved.
In addition, the mobile terminal correspondingly sets a first preset time threshold according to the different types of the first application program, so that the intelligence of the mobile terminal is favorably improved, the adaptability of the mobile terminal to different application programs is improved, the accuracy of display control operation is improved, in addition, the first average time for starting operation and the second average time for quitting operation are determined according to historical operation records, the intelligence of the mobile terminal is favorably improved, in addition, the possibility of occurrence of a black screen is further ensured by determining that the second average time is smaller than the second preset time threshold and the first average time is larger than the third preset trial production threshold, and the necessity and the accuracy of display control are improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of another display control method for an application interface according to an embodiment of the present application, where as shown in the figure, the display control method for an application interface includes:
s301, when receiving a quit request aiming at a first application program, a mobile terminal executes quit operation aiming at the first application program according to the quit request;
s302, the mobile terminal receives a quitting request of a second application program, executes quitting operation aiming at the second application program, and the first display interface to be removed in the first application program and the second display interface to be removed in the second application program are simultaneously displayed in a display area of a display screen of the mobile terminal through split screen operation;
s303, in a preset time period, when the mobile terminal receives a starting request aiming at the first application program, executing a starting operation aiming at the first application program according to the starting request;
s304, the mobile terminal determines a first display interface to be removed in the first application program as the display interface to be displayed in the starting operation;
s305, the mobile terminal removes the second display interface to be removed;
s306, the mobile terminal adjusts the display parameters of the display interface to be displayed into target display parameters according to the area to be displayed of the display screen;
s307, the mobile terminal displays the display interface to be displayed according to the target display parameters.
It can be seen that, in the embodiment of the present application, a mobile terminal, when receiving a quit request for a first application program, performs a quit operation for the first application program according to the quit request, then, within a preset time period, when receiving a start request for the first application program, performs a start operation for the first application program according to the start request, and finally, determines a first display interface to be removed in the first application program as a display interface to be displayed in the start operation. Therefore, when the mobile terminal exits the first application program and rapidly starts the first application program again after exiting the first application program, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the phenomenon of black screen caused by long time spent in exiting processing is avoided when the application program is started again after exiting, the display effect is improved, in addition, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the process of loading the display interface in the starting operation is reduced, the processing time of application starting is shortened, and the application starting speed is improved.
In addition, the mobile terminal exits the first application program and the second application program sequentially in a split-screen display scene, when the first application program is started in a preset time period, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, and the display interface to be displayed is displayed after adaptive adjustment of display parameters is carried out on the display interface to be displayed as target display parameters in a non-split-screen scene, so that the intelligence and the adaptability of display control of the mobile terminal are improved, the display effect is improved, and the visual experience of a user is improved.
Consistent with the embodiments shown in fig. 1A, fig. 2, and fig. 3, please refer to fig. 4, and fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where as shown, the mobile terminal includes 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 programs include instructions for performing the following steps;
when an exit request aiming at a first application program is received, executing an exit operation aiming at the first application program according to the exit request;
within a preset time period, when a starting request aiming at the first application program is received, executing a starting operation aiming at the first application program according to the starting request;
and determining a first display interface to be removed in the first application program as the display interface to be displayed in the starting operation.
It can be seen that, in the embodiment of the present application, a mobile terminal, when receiving a quit request for a first application program, performs a quit operation for the first application program according to the quit request, then, within a preset time period, when receiving a start request for the first application program, performs a start operation for the first application program according to the start request, and finally, determines a first display interface to be removed in the first application program as a display interface to be displayed in the start operation. Therefore, when the mobile terminal exits the first application program and rapidly starts the first application program again after exiting the first application program, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the phenomenon of black screen caused by long time spent in exiting processing is avoided when the application program is started again after exiting, the display effect is improved, in addition, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the process of loading the display interface in the starting operation is reduced, the processing time of application starting is shortened, and the application starting speed is improved.
In one possible example, the program further includes instructions for performing the steps of: determining the execution duration of the quitting operation before determining the first display interface to be removed in the first application program as the display interface to be displayed in the starting operation; and detecting that the execution time length is greater than or equal to a first preset time length threshold value.
In this possible example, the program further includes instructions for performing the steps of: determining the category of the first application program before the execution duration is detected to be greater than or equal to a first preset duration threshold; and taking the category of the first application program as query expression, querying the mapping relation between the category of the application program and a preset duration threshold, and determining the first preset duration threshold corresponding to the category of the first application program.
In one possible example, the program further includes instructions for performing the steps of: determining a first average duration of the starting operation according to a historical operation record associated with the first application program; determining a second average duration of the quitting operation according to the historical operation record; and determining that the second average duration is less than a second preset duration threshold, wherein the first average duration is greater than a third preset duration threshold, and the second preset duration threshold is greater than the first preset duration threshold.
In one possible example, in terms of determining that the first display interface to be removed in the first application program is the display interface to be displayed in the starting operation, the instructions in the program are specifically configured to perform the following operations: notifying a first working thread executing the quitting operation to cancel the removing operation aiming at the first display interface to be removed; the second working thread used for informing the execution of the starting operation cancels the loading operation aiming at the display interface to be displayed; and the display operation is carried out on the display interface which is determined to be the display interface to be displayed by the first display interface to be removed.
In one possible example, the program further includes instructions for performing the steps of: when a starting request aiming at the first application program is received, before starting operation aiming at the first application program is executed according to the starting request, a quitting request aiming at a second application program is received, quitting operation aiming at the second application program is executed, and the first display interface to be removed in the first application program and the second display interface to be removed in the second application program are simultaneously displayed in a display area of a display screen of the mobile terminal through split screen operation;
the program further includes instructions for performing the steps of: after the first display interface to be removed in the first application program is determined to be the display interface to be displayed in the starting operation, removing the second display interface to be removed; the display device is used for adjusting the display parameters of the display interface to be displayed into target display parameters according to the area to be displayed of the display screen; and the display interface to be displayed is displayed according to the target display parameters.
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 will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. 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.
Fig. 5A is a block diagram of functional units of a display control apparatus 500 of an application interface according to an embodiment of the present application. The display control apparatus 500 is applied to a mobile terminal, and the display control apparatus 500 includes a first execution unit 501, a second execution unit 502, and a determination unit 503, wherein,
the first execution unit 501 is configured to, when receiving a quit request for a first application program, execute a quit operation for the first application program according to the quit request;
the second execution unit 502 is configured to, in a preset time period, when receiving a start request for the first application program, execute a start operation for the first application program according to the start request;
the determining unit 503 is configured to determine the first display interface to be removed in the first application as the display interface to be displayed in the starting operation.
It can be seen that, in the embodiment of the present application, a mobile terminal, when receiving a quit request for a first application program, performs a quit operation for the first application program according to the quit request, then, within a preset time period, when receiving a start request for the first application program, performs a start operation for the first application program according to the start request, and finally, determines a first display interface to be removed in the first application program as a display interface to be displayed in the start operation. Therefore, when the mobile terminal exits the first application program and rapidly starts the first application program again after exiting the first application program, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the phenomenon of black screen caused by long time spent in exiting processing is avoided when the application program is started again after exiting, the display effect is improved, in addition, the first display interface to be removed in the first application program is determined as the display interface to be displayed in the starting operation, the process of loading the display interface in the starting operation is reduced, the processing time of application starting is shortened, and the application starting speed is improved.
In one possible example, as shown in fig. 5B, the display control apparatus further includes a detection unit 504, wherein
The determining unit 503 is further configured to determine, before determining the first display interface to be removed in the first application program as the display interface to be displayed in the starting operation, an execution duration of the quitting operation;
the detecting unit 504 is configured to detect that the execution duration is greater than or equal to a first preset duration threshold.
In this possible example, before the detecting that the execution duration is greater than or equal to the first preset duration threshold, the determining unit 503 is further configured to: determining a category of the first application; and taking the category of the first application program as query expression, querying the mapping relation between the category of the application program and a preset duration threshold, and determining the first preset duration threshold corresponding to the category of the first application program.
In one possible example, the determining unit 503 is further configured to: determining a first average duration of the starting operation according to a historical operation record associated with the first application program; determining a second average duration of the quitting operation according to the historical operation record; and determining that the second average duration is less than a second preset duration threshold, wherein the first average duration is greater than a third preset duration threshold, and the second preset duration threshold is greater than the first preset duration threshold.
In a possible example, in terms of determining the first display interface to be removed in the first application program as the display interface to be displayed in the starting operation, the determining unit 503 is specifically configured to: notifying a first working thread executing the quitting operation to cancel the removing operation aiming at the first display interface to be removed; the second working thread used for informing the execution of the starting operation cancels the loading operation aiming at the display interface to be displayed; and the display operation is carried out on the display interface which is determined to be the display interface to be displayed by the first display interface to be removed.
In one possible example, before the performing, according to the start request, the start operation for the first application program when receiving the start request for the first application program, the first execution unit 501 is further configured to: receiving a quitting request of a second application program, and executing quitting operation aiming at the second application program, wherein the first display interface to be removed in the first application program and the second display interface to be removed in the second application program are simultaneously displayed in a display area of a display screen of the mobile terminal through screen splitting operation;
after determining the first display interface to be removed in the first application program as the display interface to be displayed in the starting operation, the first execution unit 501 is further configured to: removing the second display interface to be removed;
the second execution unit 502 is further configured to: adjusting the display parameters of the display interface to be displayed to be target display parameters according to the area to be displayed of the display screen; and the display interface to be displayed is displayed according to the target display parameters.
The first execution unit 501 and the second execution unit 502 may be a processor or a transceiver or a display, and the determination unit 503 may be a processor or a display.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a smart phone 600 according to an embodiment of the present application, where the smart phone 600 includes: the display device comprises a shell 610, a display 620 and a main board 630, wherein a front camera 631, a processor 632, a memory 633, a power management chip 634 and the like are arranged on the main board 630.
When receiving an exit request aiming at a first application program, the smart phone executes an exit operation aiming at the first application program according to the exit request; within a preset time period, when a starting request aiming at the first application program is received, executing a starting operation aiming at the first application program according to the starting request; and determining a first display interface to be removed in the first application program as the display interface to be displayed in the starting operation.
The processor 632 is a control center of the smart phone, and is connected to various parts of the whole smart phone through various interfaces and lines, and executes various functions and processes data of the smart phone by running or executing software programs and/or modules stored in the memory 633 and calling data stored in the memory 633, thereby integrally monitoring the smart phone. Optionally, processor 632 may include one or more processing units; preferably, the processor 632 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 632. The Processor 632 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 633 can be used for storing software programs and modules, and the processor 632 executes various functional applications and data processing of the smart phone by running the software programs and modules stored in the memory 633. The memory 633 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 for at least one function, and the like; the storage data area may store data created according to the use of the smartphone, and the like. Further, the memory 633 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 Memory 633 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.
An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any one of the application interface display control 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, which includes a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute some or all of the steps of any one of the application interface display control methods described in the above method embodiments, where the computer includes 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 division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. 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 method described in 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 (10)

1. A display control method of an application interface is characterized by comprising the following steps:
when an exit request aiming at a first application program is received, executing an exit operation aiming at the first application program according to the exit request so as to switch the first application program from foreground running to background running;
before the execution of the quitting operation is completed, when a starting request aiming at the first application program is received, executing the starting operation aiming at the first application program according to the starting request;
determining a first display interface to be removed in the first application program as a display interface to be displayed in the starting operation; and the first display interface to be removed in the first application program is the display interface which runs in the foreground of the first application program and receives the quit request.
2. The method according to claim 1, wherein before determining the first display interface to be removed in the first application as the display interface to be displayed in the launch operation, the method further comprises:
determining the execution duration of the quitting operation;
and detecting that the execution time length is greater than or equal to a first preset time length threshold value.
3. The method of claim 2, wherein before the detecting that the execution duration is greater than or equal to a first preset duration threshold, the method further comprises:
determining a category of the first application;
and taking the category of the first application program as query expression, querying the mapping relation between the category of the application program and a preset duration threshold, and determining the first preset duration threshold corresponding to the category of the first application program.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
determining a first average duration of the starting operation according to a historical operation record associated with the first application program;
determining a second average duration of the quitting operation according to the historical operation record;
and determining that the second average duration is smaller than a second preset duration threshold, wherein the first average duration is larger than a third preset duration threshold, and the second preset duration threshold is larger than the first preset duration threshold.
5. The method according to any one of claims 1 to 3, wherein the determining that the first display interface to be removed in the first application is the display interface to be displayed in the starting operation comprises:
notifying a first working thread executing the quitting operation to cancel the removing operation aiming at the first display interface to be removed;
notifying a second working thread executing the starting operation to cancel the loading operation aiming at the display interface to be displayed;
and determining the first display interface to be removed as the display interface to be displayed for display operation.
6. The method according to any one of claims 1-3, wherein before, when receiving a start request for the first application, performing a start operation for the first application according to the start request, the method further comprises:
receiving a quitting request of a second application program, and executing quitting operation aiming at the second application program, wherein the first display interface to be removed in the first application program and the second display interface to be removed in the second application program are simultaneously displayed in a display area of a display screen of the mobile terminal through split screen operation;
after the determining that the first display interface to be removed in the first application program is the display interface to be displayed in the starting operation, the method further includes:
removing the second display interface to be removed;
adjusting the display parameters of the display interface to be displayed to be target display parameters according to the area to be displayed of the display screen;
and displaying the display interface to be displayed according to the target display parameters.
7. The display control device of the application interface is characterized by comprising a first execution unit, a second execution unit and a determination unit, wherein:
the first execution unit is used for executing the quitting operation aiming at the first application program according to the quitting request so as to switch the foreground running of the first application program to the background running when the quitting request aiming at the first application program is received;
the second execution unit is configured to, when a start request for the first application program is received before the execution of the exit operation is completed, execute a start operation for the first application program according to the start request;
the determining unit is configured to determine a first display interface to be removed in the first application as a display interface to be displayed in the starting operation; and the first display interface to be removed in the first application program is the display interface which runs in the foreground of the first application program and receives the quit request.
8. The apparatus according to claim 7, wherein the display control apparatus further comprises a detection unit, wherein
The determining unit is further configured to determine an execution duration of the quitting operation before determining the first display interface to be removed in the first application program as the display interface to be displayed in the starting operation;
the detection unit is used for detecting that the execution duration is greater than or equal to a first preset duration threshold.
9. A mobile terminal, comprising: a processor, memory, and one or more programs; the one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method as described in any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-6, the computer comprising a mobile terminal.
CN201810319414.9A 2018-04-10 2018-04-10 Display control method and device of application interface Active CN108595238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810319414.9A CN108595238B (en) 2018-04-10 2018-04-10 Display control method and device of application interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810319414.9A CN108595238B (en) 2018-04-10 2018-04-10 Display control method and device of application interface

Publications (2)

Publication Number Publication Date
CN108595238A CN108595238A (en) 2018-09-28
CN108595238B true CN108595238B (en) 2021-08-06

Family

ID=63621558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810319414.9A Active CN108595238B (en) 2018-04-10 2018-04-10 Display control method and device of application interface

Country Status (1)

Country Link
CN (1) CN108595238B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359009B (en) * 2018-10-12 2022-05-17 Oppo广东移动通信有限公司 Display control method, electronic device, and computer-readable storage medium
CN112948042B (en) * 2021-03-01 2024-04-30 Oppo广东移动通信有限公司 Display control method and device, computer readable medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955803A (en) * 2016-04-22 2016-09-21 上海斐讯数据通信技术有限公司 Terminal and method for recovering state of application program
CN107463419A (en) * 2017-09-21 2017-12-12 青岛海信移动通信技术股份有限公司 Using method for restarting, device and computer-readable recording medium
CN107643859A (en) * 2017-09-07 2018-01-30 维沃移动通信有限公司 A kind of running status restoration methods and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8161053B1 (en) * 2004-03-31 2012-04-17 Google Inc. Methods and systems for eliminating duplicate events
US20170097747A1 (en) * 2005-12-14 2017-04-06 Harold W. Milton, Jr. System for preparing a patent application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955803A (en) * 2016-04-22 2016-09-21 上海斐讯数据通信技术有限公司 Terminal and method for recovering state of application program
CN107643859A (en) * 2017-09-07 2018-01-30 维沃移动通信有限公司 A kind of running status restoration methods and mobile terminal
CN107463419A (en) * 2017-09-21 2017-12-12 青岛海信移动通信技术股份有限公司 Using method for restarting, device and computer-readable recording medium

Also Published As

Publication number Publication date
CN108595238A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN109213539B (en) Memory recovery method and device
CN107861816B (en) Resource allocation method and device
CN107635078B (en) Game control method and device
CN107797868B (en) Resource adjusting method and device
CN106022101B (en) application management method and terminal
CN107807852B (en) Application program performance control method, device and computer readable storage medium
CN103838648A (en) Terminal and data backup method
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN110262659B (en) Application control method and related device
EP3592003B1 (en) Broadcast control method, device, storage medium and mobile terminal
CN107832142B (en) Resource allocation method and equipment for application program
US20210136432A1 (en) Method for recharging live streaming account, terminal, and storage medium
CN108595238B (en) Display control method and device of application interface
WO2020237545A1 (en) Camera starting method and related apparatus
CN109376062B (en) Network state prompting method and related device
CN111651277B (en) Memory cleaning method, intelligent terminal and readable storage medium
CN107832127B (en) Application control method and related product
CN111373728B (en) Control method and device for camera application
CN107967092B (en) Application related information display method and related equipment
CN110806908A (en) Application software pre-starting method, terminal and computer readable storage medium
CN109343944B (en) Data processing method and device for eSIM card, terminal and storage medium
CN110968523A (en) Memory defragmentation method and device
CN110771113B (en) Brushing amount terminal detection method and device
CN108536512B (en) Interface switching method and device and terminal equipment
CN107864275B (en) Application setting method and device, mobile terminal and computer readable 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
GR01 Patent grant
GR01 Patent grant