CN110968237B - Control method and device for application program, mobile terminal and storage medium - Google Patents

Control method and device for application program, mobile terminal and storage medium Download PDF

Info

Publication number
CN110968237B
CN110968237B CN201811163255.4A CN201811163255A CN110968237B CN 110968237 B CN110968237 B CN 110968237B CN 201811163255 A CN201811163255 A CN 201811163255A CN 110968237 B CN110968237 B CN 110968237B
Authority
CN
China
Prior art keywords
display window
identification information
navigation bar
memory
application program
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
CN201811163255.4A
Other languages
Chinese (zh)
Other versions
CN110968237A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811163255.4A priority Critical patent/CN110968237B/en
Publication of CN110968237A publication Critical patent/CN110968237A/en
Application granted granted Critical
Publication of CN110968237B publication Critical patent/CN110968237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

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

Abstract

The embodiment of the specification provides a control method and device of an application program, a mobile terminal and a storage medium. The method comprises the following steps: invoking a first display window of the application program; and deleting the first display window of the application program in the memory after detecting that the first display window is hidden. According to the method, the device, the mobile terminal and the storage medium provided by the embodiment of the invention, after the display window is hidden, if the display window is judged to be allowed to be ended, the display window is deleted from the memory, so that the memory space is saved, and the running stability of the system is improved.

Description

Control method and device for application program, mobile terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a control method and device of an application program, a mobile terminal and a storage medium.
Background
The small mobile terminals such as the vehicle-mounted mobile terminal and the bracelet have limited memory space and cannot bear application programs with larger memory requirements. For example, an application program has multiple levels of display frames, and then after the display frames of the application program are sequentially invoked, the display frames are all stored in the memory.
In the working process of the mobile terminal, if the application program is called, the system can not work normally due to the excessively high memory occupancy rate.
Even for a mobile terminal with larger memory capacity, running the application program or running multiple application programs simultaneously occupies larger memory space, and affects the running stability of the system.
Disclosure of Invention
In view of the problem that the memory space occupied by the existing application program influences the running stability of the system, the invention provides a control method and device of the application program and a computer readable storage medium.
In a first aspect, an embodiment of the present invention provides a method for controlling an application program, where the method includes:
calling a first display window of the application program;
and deleting the first display window of the application program in the memory after detecting that the first display window is hidden.
According to the method provided by the embodiment of the invention, after the display window is hidden, the display window is deleted from the memory, so that the memory space is saved, and the running stability of the system is improved.
With reference to the first aspect, in a first implementation manner of the first aspect of the embodiment of the present invention, the deleting the first display window in the memory may include:
releasing memory resources occupied by the first display window;
and removing the data of the first display window in the display window stack.
In order to improve the stability of system operation on the basis of saving memory resources, the method provided by the embodiment of the invention deletes the first display window, which not only releases the memory resources occupied by the first display window, but also removes the data of the first display window in the display window stack.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect of the embodiment of the present invention, before deleting the first display window in the memory, the method provided by the embodiment of the present invention may further include: searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
correspondingly, the deleting the first display window in the memory may include:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in the memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
After the identification information corresponding to the first display window is found in the designated application identification information set, deleting the application program comprising the first display window in the memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
The method provided by the embodiment of the invention can be used for maintaining the identification information set (namely the appointed display window identification information set or the appointed application program identification information set) of the display window or the application program which needs to be ended, and judging whether only the first display window or the application program is released by searching the identification information set, so that the implementation mode is quick and simple. If the application program identification is found in the appointed application program identification information set, the application program is directly deleted, and the memory space is further saved.
With reference to the first aspect or the first implementation manner of the first aspect, in a fourth implementation manner of the first aspect of the embodiment of the present invention, the method provided by the embodiment of the present invention may further include:
calling a second display window of the application program according to the indication received during the calling of the first display window;
after a trigger event of the target navigation bar button is detected, and the fact that the second display window corresponds to the custom function of the target navigation bar button is determined, implementation codes of the custom function are executed to create the first display window in the memory.
In the conventional implementation manner, even if the first display window is hidden, the data of the first display window is still stored in the display window stack, and the display sequence of each display window of the application program in the stack is reflected, if the first display window needs to be returned from the second display window, the first display window can be searched through the display window stack, and then the first display window is called. In the method provided by the embodiment of the invention, the first display window is deleted, and the data of the first display window may be deleted in the display window stack, so that the source of the second display window cannot be found, that is, the first display window cannot be found, and in order to correctly realize the return of the display window, further, in the method provided by the embodiment of the invention, the function of the target navigation bar button is customized for the second display window, and the first display window is created by triggering the target navigation bar button and executing the corresponding function realization code, thereby realizing the return of the display window.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect of the embodiment of the present invention, before detecting the trigger event of the target navigation bar button, the method further includes:
Searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
correspondingly, after the triggering event of the target navigation bar button is detected and the second display window is determined to correspond to the custom function of the target navigation bar button, implementation codes of the custom function are executed to create the first display window in the memory, and implementation modes may include:
after a trigger event of the target navigation bar button is detected and the value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, executing the implementation code of the custom function of the target navigation bar button to create the first display window in the memory.
In the method provided by the embodiment of the invention, the custom function table of the navigation bar button is maintained, and whether the called display window corresponds to the custom function of the navigation bar button can be rapidly determined in a table look-up mode.
In a second aspect, an embodiment of the present invention provides a control device for an application program, including:
The display window ending calling module is used for calling a first display window of the application program;
and the display window ending execution module is used for deleting the first display window of the application program in the memory after detecting that the first display window is hidden.
According to the device provided by the embodiment of the invention, after the display window is hidden, the display window is deleted from the memory, so that the memory space is saved, and the running stability of the system is improved.
With reference to the second aspect, in a first implementation manner of the second aspect of the embodiment of the present invention, the display frame end execution module is configured to:
releasing memory resources occupied by the first display window;
and removing the data of the first display window in the display window stack.
In order to improve the stability of system operation on the basis of saving memory resources, the device provided by the embodiment of the invention deletes the first display window, which not only releases the memory resources occupied by the first display window, but also removes the data of the first display window in the display window stack.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect of the embodiment of the present invention, the method may further include an identification information searching module, configured to:
Searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
correspondingly, the display window ending execution module is used for:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in the memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
after the identification information corresponding to the first display window is found in the designated application identification information set, deleting the application program comprising the first display window in the memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
The device provided by the embodiment of the invention can maintain the identification information set of the display window or the application program (namely the appointed display window identification information set or the appointed application program identification information set) which needs to be ended, and judges whether to release only the first display window or the application program by searching the identification information set, so that the implementation mode is quick and simple. If the application program identification is found in the appointed application program identification information set, the application program is directly deleted, and the memory space is further saved.
With reference to the second aspect or the first implementation manner of the second aspect, in a fourth implementation manner of the second aspect of the embodiment of the present invention, the display window invoking module is further configured to: calling a second display window of the application program according to the indication received during the calling of the first display window;
the device may further include a display window creation module configured to execute implementation code of a custom function of the target navigation bar button after detecting a trigger event of the target navigation bar button and determining that the second display window corresponds to the custom function of the target navigation bar button, so as to create a first display window in the memory.
In the conventional implementation manner, even if the first display window is hidden, the data of the first display window is still stored in the display window stack, and the display sequence of each display window of the application program in the stack is reflected, if the first display window needs to be returned from the second display window, the first display window can be searched through the display window stack, and then the first display window is called. In the device provided by the embodiment of the invention, the first display window is deleted, and the data of the first display window may be deleted in the display window stack, so that the source of the second display window cannot be found, that is, the first display window cannot be found, and in order to correctly realize the return of the display window, further, in the device provided by the embodiment of the invention, the function of the target navigation bar button is customized for the second display window, and the first display window is created by executing the corresponding function realization code by triggering the target navigation bar button, thereby realizing the return of the display window.
With reference to the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect of the embodiment of the present invention, the display window creation module is configured to:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
after a trigger event of the target navigation bar button is detected and the value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, executing the implementation code of the custom function of the target navigation bar button to create the first display window in the memory.
In the device provided by the embodiment of the invention, the custom function table of the navigation bar buttons is maintained, and whether the called display window corresponds to the custom function of the navigation bar buttons can be rapidly determined in a table look-up mode.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a memory:
the memory is used for storing a program for executing the method in each embodiment of the first aspect of the invention;
The processor is configured to execute a program stored in the memory.
The mobile terminal provided by the embodiment of the invention deletes the display window in the memory after the display window is hidden, thereby saving the memory space and improving the running stability of the system.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method according to the embodiments of the first aspect of the present invention.
The computer readable storage medium provided by the embodiment of the invention deletes the display window in the memory after the display window is hidden, thereby saving the memory space and improving the running stability of the system.
These and other aspects of the invention will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a mobile terminal implementing an embodiment of the present invention;
FIG. 2 illustrates a flow chart of a method of adjusting the brightness of a display screen of a mobile terminal according to one embodiment of the invention;
fig. 3 shows a block diagram of an apparatus for adjusting brightness of a display screen of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the present invention, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present invention with reference to the accompanying drawings.
In some of the flows described in the specification and claims of the present invention and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, the order of operations being 201, 202, etc., merely for distinguishing between the various operations, the order of the operations itself not representing any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The method provided in the embodiment of the present invention may be run on a mobile terminal, as shown in fig. 1, and for convenience of explanation, only the portions related to the embodiment of the present invention are shown, and specific technical details are not disclosed, please refer to the method portion of the embodiment of the present invention. The mobile terminal can be any terminal equipment including a vehicle data recorder, an intelligent rearview mirror, a vehicle-mounted computer, a mobile phone and the like.
The method for adjusting the brightness of the display screen realized by the mobile terminal is described in detail below with reference to the accompanying drawings.
In a first aspect, an embodiment of the present invention provides a method for controlling an application program, as shown in fig. 2, where the method includes the following steps:
step 201, a first display window of an application program is called.
Step 202, deleting the first display window of the application program in the memory after detecting that the first display window is hidden.
In the embodiment of the present invention, the first display window being hidden may mean that the first display window is not displayed on the display screen. The method can be implemented by detecting a state in a life process of a display window (activity), taking a mobile terminal of an android operating system as an example, if onstop () is detected in the life process of the first display window, it indicates that the first display window is hidden.
According to the method provided by the embodiment of the invention, after the display window is hidden, the display window is deleted from the memory, so that the memory space is saved, and the running stability of the system is improved.
In the embodiment of the present invention, the implementation manner of deleting the first display window in the memory may include killing a thread or a process corresponding to the first display window, that is, releasing a memory resource occupied by the first display window. Further, in order to ensure the accuracy and stability of the system operation, the data of the first display window is also removed (removed) from the display window stack.
In order to improve the stability of system operation on the basis of saving memory resources, the method provided by the embodiment of the invention deletes the first display window, which not only releases the memory resources occupied by the first display window, but also removes the data of the first display window in the display window stack.
In the practical application process, after the display window of some application programs is hidden, the application programs need to continue to run in the background to provide corresponding functions, such as music playing software, but after the display window of some application programs is hidden, the application programs do not need to run in the background. In order to further save the memory space, for an application program that does not need to continue running in the background, the application program may be deleted directly after the first display window is hidden. In order to identify whether only the first display form needs to be deleted or the application program needs to be deleted, a display form identification information set and an application program identification information set may be maintained, only the first display form is deleted for the first display form appearing in the display form identification information set, and the application program to which the first display form appearing in the application program identification information set belongs is deleted. Correspondingly, in the step 202, the identification information of the first display window is searched in the designated display window identification information set, and/or the identification information of the application program is searched in the designated application program identification information set; after any of the following identification information is found, judging that the first display window needs to be ended: and the identification information of the application program is displayed on the first display window.
The identification information of the display window may be, but not limited to, a name of the display window, and the identification information of the application may be, but not limited to, a name of the application.
The specific data structure of the display window identification information set is not limited, and the specific data structure of the application identification information set is not limited, but may be, but not limited to, a table structure.
In the specific implementation process, two identification information sets can be searched synchronously, or the identification information sets can be searched sequentially, and if the identification information corresponding to the first display window is searched in the first identification information set, the second identification information set is not required to be searched.
The method provided by the embodiment of the invention can be used for maintaining the identification information set (namely the appointed display window identification information set or the appointed application program identification information set) of the display window or the application program which needs to be ended, and judging whether only the first display window or the application program is released by searching the identification information set, so that the implementation mode is quick and simple. If the application program identification is found in the appointed application program identification information set, the application program is directly deleted, and the memory space is further saved.
In the conventional implementation manner, even if the first display window is hidden, the data of the first display window is still stored in the display window stack, and the display sequence of each display window of the application program in the stack is reflected, if the first display window needs to be returned from the second display window, the first display window can be searched through the display window stack, and then the first display window is called. In the method provided by the embodiment of the invention, the first display window is deleted, and the data of the first display window may be deleted in the display window stack, so that the source of the second display window cannot be found, that is, the first display window cannot be found, and in order to correctly realize the return of the display window, in the method provided by the embodiment of the invention, the function of the navigation bar return button is customized for the second display window, and the first display window is created by executing the corresponding function realization code by triggering the navigation bar return button, so that the return of the display window is realized. Specifically, a second display window of the application program is called according to the indication received during the period that the first display window is called; after a trigger event of the target navigation bar button is detected, and the fact that the second display window corresponds to the custom function of the target navigation bar button is determined, implementation codes of the custom function are executed to create the first display window in the memory.
The method provided by the embodiment of the invention allows the application program to customize the function of the navigation bar button for the display window, so that after the triggering event of the navigation bar button is detected, if the triggered navigation bar button is found to have the customized function corresponding to the display window, the realization code of the customized function can be executed to realize the customized function. The permission of the navigation bar button is opened to the display window of the application program, and the functions of the menu bar button or other man-machine interaction buttons of the display window are realized on the navigation bar button, so that the display space of the content display area is saved, and the display window can display the content more clearly and abundantly.
Further, before detecting the trigger event of the target navigation bar button, the method further comprises:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
correspondingly, after the triggering event of the target navigation bar button is detected and the second display window is determined to correspond to the custom function of the target navigation bar button, implementation codes of the custom function are executed to create the first display window in the memory, and implementation modes may include: after a trigger event of the target navigation bar button is detected and the value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, executing the implementation code of the custom function of the target navigation bar button to create the first display window in the memory.
In the method provided by the embodiment of the invention, the custom function table of the navigation bar button is maintained, and whether the called display window corresponds to the custom function of the navigation bar button can be rapidly determined in a table look-up mode.
In the embodiment of the invention, in order to match with the custom function, the icons of the navigation bar buttons may need to be replaced, so that a user can intuitively see the functions corresponding to the navigation bar buttons, and correspondingly, after determining that the called display window corresponds to the custom function of the navigation bar buttons, the icons of the navigation bar buttons corresponding to the custom function are searched; and displaying icons of navigation bar buttons corresponding to the custom functions.
If the navigation bar has a plurality of buttons and the application program to which the called display window belongs only has a self-defining function for part of the buttons, then it is required to determine whether the triggered button is a button of the self-defining function corresponding to the called display window, and if not, the default function of the button is realized.
In the embodiment of the present invention, the execution timings of the icons of the navigation bar buttons corresponding to the display custom function are various, that is, the timings of switching the navigation bar icons are various. Preferably, after detecting that the window display code corresponding to the display window is called, displaying an icon of the navigation bar button corresponding to the custom function.
The window display code is called, which means that the content display area is switched to display the display window, and the icon of the corresponding navigation bar button is displayed after the window display code is called is detected, so that the display of the display window is basically synchronous with the display of the icon of the corresponding navigation bar button, and the problem of misoperation of a user possibly caused by asynchronous display is avoided.
In the mobile terminal of the android operating system, the window display code is an onstare code and/or an onstart code.
In the specific implementation process, the icon of the navigation bar button corresponding to the custom function of the called display window can be configured only after the onstart is detected to be called, and the icon of the navigation bar button corresponding to the custom function of the called display window can be configured after the onstart is detected to be called.
Wherein onresume and onstart are used to switch the state of the display frame during its life.
In any of the above method embodiments, in order to implement the custom function of the navigation bar button, a navigation bar button custom function table may be maintained. As shown in table 1, the table may include identification information of a display window corresponding to the custom function with the navigation bar button and value information of the navigation bar button corresponding to the custom function.
Table 1 navigation column custom function table
Identification information of display window Value information of navigation bar button
aaa k-value=100,200,300
bbb k-value=100,200
ccc k-value=100,200
The identification information of the display window may be, but is not limited to, the name of the display window. In table 1, the display window named aaa corresponds to the custom functions of three navigation bar buttons, namely, the custom functions corresponding to the navigation bar buttons with values of 100, 200 and 300; the display forms named bbb and ccc correspond to the custom functions of the two navigation bar buttons, and are the custom functions corresponding to the navigation bar buttons with the values of 100 and 200 respectively.
It should be noted that table 1 is merely illustrative of the content of the navigation bar custom function table, and is not limited to the data structure of its specific implementation.
Based on the navigation bar button custom function table, the specific implementation manner of searching whether the called display window corresponds to the custom function with the navigation bar button may be: searching the identification information of the called display window in the navigation bar button custom function table.
In the method provided by the embodiment of the invention, the custom function table of the navigation bar button is maintained, and whether the called display window corresponds to the custom function of the navigation bar button can be rapidly determined in a table look-up mode.
In addition, the navigation bar button user-defined function table searches the navigation bar button value corresponding to the called display window, and whether the triggered navigation bar button is the navigation bar button of the user-defined function corresponding to the display window can also be determined.
Furthermore, icons of the navigation bar buttons with the custom functions can be stored in the navigation bar button custom function table, and correspondingly, the icons can be obtained through table lookup for display. If the icons of the navigation bar buttons are not stored in the table, when the navigation bar buttons corresponding to the custom functions need to be displayed, the values of the navigation bar buttons are sent to the application program, and the application program provides the corresponding icons.
In the embodiment of the invention, various implementation modes for maintaining the navigation bar button custom function table are available. For example, receiving a navigation bar button custom function request, wherein the navigation bar button custom function request comprises identification information of a display window and value information of a navigation bar button corresponding to the custom function; and recording the information in the navigation bar button custom function request in a navigation bar button custom function table.
The method provided by the embodiment of the invention maintains the navigation bar button custom function table comprising the identification information of the display window and the navigation bar button value information, correspondingly, can simply and quickly determine whether the called display window corresponds to the custom function of the navigation bar button or not through table lookup, and quickly determine which navigation bar buttons correspond to the custom function.
In order to reduce the risk of malicious kidnapping of the navigation bar and improve the running safety of the system, the security verification can be performed on the application program requesting the custom navigation bar function by means of white list, verification signature, verification code storage path and the like, and various implementation modes exist, for example, after the identification information of the display window corresponding to the request or the identification information of the application program to which the display window belongs is found in the white list, the code of the display window or the application program is determined to be stored in a designated directory, and after the display window or the application program is determined to use the designated signature, the information in the request of the custom navigation bar button function is recorded in the custom navigation bar button function table.
Of course, the verification may be performed only through the white list, or may be performed only through the signature or the storage path, which is not limited by the embodiment of the present invention.
In the embodiment of the invention, the self-defined function request is safely verified in the modes of a white list, verification signature, code storage position and the like, and the information in the request is only allowed to be written into the upper table after the self-defined function request passes the safety verification, so that the safety of navigation bar control is improved.
It should be noted that other implementations are possible besides the return to the first display window being implemented by means of a custom navigation bar button function. For example, a data structure is created in which a jump order or hierarchical relationship between different display forms of the application program is recorded, and the source of the current display form is determined according to the jump order to implement the return. For example, if an instruction for calling a second display window of the application program is detected during the first display window being called, a jump relation from the first display window to the second display window is recorded in the data structure, and if a return instruction is detected during the second display window being called, a return source is found to be the first display window according to the jump relation recorded in the data structure, so that the first display window is created; for another example, if an instruction to call a second display window of the application is detected during the first display window is called, a parent-child hierarchical relationship between the first display window and the second display window is recorded in the data structure, and if a return instruction is detected during the second display window is called, the return source is found to be the first display window according to the parent-child hierarchical relationship recorded in the data structure, thereby creating the first display window.
The method provided by the embodiment of the invention is described in detail below in connection with a specific application scenario.
In the application scene, after the mobile terminal is started, 3 navigation bar buttons are arranged in a default state of the navigation bar. In the starting initialization process of the mobile terminal: a system framework layer (frame) of the mobile terminal creates a white list, wherein the white list records identification information of application programs allowing a self-defined navigation bar button (k-code) function, and creates a display window identification information table and an application program identification information table; in addition, each application program needing to customize the navigation bar button function sends a navigation bar button customization function request to a system framework layer, the request carries the name of a display window (activity), the value of the navigation bar button needing to customize the function and an icon, after receiving the request, the system framework layer searches the white list for the identification information of the application program sending the request, if so, the information in the request is stored in a navigation bar button customization function table, and if not, the request is refused.
Taking an application for playing music as an example, it is assumed that it requires a custom function for the first navigation bar button in the navigation bar. Specifically, the application program can obtain information such as the value of each navigation bar button in advance, so as to perform function customization, or the system framework layer can send the value of the navigation bar button with the customized function to the application program in the process of starting up and initializing the mobile terminal. Correspondingly, the application program writes the name of the display window of the navigation bar button function and the icon to be switched, the value of the first navigation bar button and the icon into the navigation bar button custom function table by requesting.
In the process of using the mobile terminal, a user clicks an icon of the application program for playing music, after the application program is started, the onresume is executed to display a first-level display window (namely the first display window) of the application program on a content display area, the user enters a second-level display window (namely the second display window) of the application program from the first-level display window through operation instructions, the application program executes onstop in the life process of the first-level display window, and executes sorresume in the life process of the second-level display window.
On one hand, the system framework layer detects onstop of the first-stage display window, searches the display window identification information table and the application identification information table, and searches the first-stage display window in the display window identification information table, so that memory resources occupied by the first-stage display window are released, and data of the first-stage display window are removed from a display window stack;
on the other hand, after detecting the onresume of the second-stage display window, the system framework layer searches the name of the display window in the navigation bar button custom function table, if the name is found, reads the value and the icon of the navigation bar button corresponding to the name, and displays the icon obtained by looking up the table at the display position of the navigation bar button corresponding to the value in the navigation bar.
In this embodiment, the custom function of the first navigation bar button corresponding to the second-level display window is to create the first-level display window.
If the user clicks the first navigation bar button, after the system framework layer detects a triggering event (k-event) of the first navigation bar button, the value of the first navigation bar button is sent to an application program for playing music, and the application program executes corresponding function realization codes to create a first display window.
In a second aspect, an embodiment of the present invention provides a control device for an application program, as shown in fig. 3, where the device includes:
a display window calling module 301, configured to call a first display window of an application program;
the display window ending execution module 302 is configured to delete the first display window of the application program in the memory after detecting that the first display window is hidden.
According to the device provided by the embodiment of the invention, after the display window is hidden, the display window is deleted from the memory, so that the memory space is saved, and the running stability of the system is improved.
In an embodiment of the present invention, the display window ending execution module is configured to:
releasing memory resources occupied by the first display window;
And removing the data of the first display window in the display window stack.
In order to improve the stability of system operation on the basis of saving memory resources, the device provided by the embodiment of the invention deletes the first display window, which not only releases the memory resources occupied by the first display window, but also removes the data of the first display window in the display window stack.
In the practical application process, after the display window of some application programs is hidden, the application programs need to continue to run in the background to provide corresponding functions, such as music playing software, but after the display window of some application programs is hidden, the application programs do not need to run in the background. In order to further save the memory space, for an application program that does not need to continue running in the background, the application program may be deleted directly after the first display window is hidden. In order to identify whether only the first display form needs to be deleted or the application program needs to be deleted, a display form identification information set and an application program identification information set may be maintained, only the first display form is deleted for the first display form appearing in the display form identification information set, and the application program to which the first display form appearing in the application program identification information set belongs is deleted. Correspondingly, the device provided by the embodiment of the invention further comprises an identification information searching module for:
Searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
correspondingly, the display window ending execution module is used for:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in the memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
after the identification information corresponding to the first display window is found in the designated application identification information set, deleting the application program comprising the first display window in the memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
The identification information of the display window may be, but not limited to, a name of the display window, and the identification information of the application may be, but not limited to, a name of the application.
The specific data structure of the display window identification information set is not limited, and the specific data structure of the application identification information set is not limited, but may be, but not limited to, a table structure.
In the specific implementation process, two identification information sets can be searched synchronously, or the identification information sets can be searched sequentially, and if the identification information corresponding to the first display window is searched in the first identification information set, the second identification information set is not required to be searched.
The device provided by the embodiment of the invention can maintain the identification information set of the display window or the application program (namely the appointed display window identification information set or the appointed application program identification information set) which needs to be ended, and judges whether to release only the first display window or the application program by searching the identification information set, so that the implementation mode is quick and simple. If the application program identification is found in the appointed application program identification information set, the application program is directly deleted, and the memory space is further saved.
In the conventional implementation manner, even if the first display window is hidden, the data of the first display window is still stored in the display window stack, and the display sequence of each display window of the application program in the stack is reflected, if the first display window needs to be returned from the second display window, the first display window can be searched through the display window stack, and then the first display window is called. In the method provided by the embodiment of the invention, the first display window is deleted, and the data of the first display window may be deleted in the display window stack, so that the source of the second display window cannot be found, that is, the first display window cannot be found, and in order to correctly realize the return of the display window, in the method provided by the embodiment of the invention, the function of the navigation bar return button is customized for the second display window, and the first display window is created by executing the corresponding function realization code by triggering the navigation bar return button, so that the return of the display window is realized. Specifically, the display window invoking module is further configured to: calling a second display window of the application program according to the indication received during the calling of the first display window;
The device may further include a display window creation module configured to execute implementation code of a custom function of the target navigation bar button after detecting a trigger event of the target navigation bar button and determining that the second display window corresponds to the custom function of the target navigation bar button, so as to create a first display window in the memory.
The device provided by the embodiment of the invention allows the application program to customize the function of the navigation bar button for the display window, so that after the triggering event of the navigation bar button is detected, if the triggered navigation bar button is found to have the customized function corresponding to the display window, the implementation code of the customized function can be executed to realize the customized function. The permission of the navigation bar button is opened to the display window of the application program, and the functions of the menu bar button or other man-machine interaction buttons of the display window are realized on the navigation bar button, so that the display space of the content display area is saved, and the display window can display the content more clearly and abundantly.
Further, the display window creation module is configured to:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
After a trigger event of the target navigation bar button is detected and the value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, executing the implementation code of the custom function of the target navigation bar button to create the first display window in the memory.
In the device provided by the embodiment of the invention, the custom function table of the navigation bar buttons is maintained, and whether the called display window corresponds to the custom function of the navigation bar buttons can be rapidly determined in a table look-up mode.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a memory:
the memory is used for storing a program for executing each method embodiment of the first aspect of the invention;
the processor is configured to execute a program stored in the memory.
The mobile terminal provided by the embodiment of the invention deletes the display window in the memory after the display window is hidden, thereby saving the memory space and improving the running stability of the system.
Taking a mobile terminal as an example of a rearview mirror automobile data recorder, the mobile terminal structure provided by the embodiment of the invention is described as follows:
fig. 1 is a block diagram showing a part of a structure of a rearview mirror drive recorder related to a method embodiment provided by an embodiment of the present invention. Referring to fig. 1, the rearview mirror drive recorder includes: camera 110, memory 120, input unit 130, display unit 140, sensor 150, audio circuit 160, wireless-fidelity (Wi-Fi) module 170, processor 180, and power supply 190. It will be appreciated by those skilled in the art that the rearview mirror drive recorder structure shown in fig. 1 is not limiting of the rearview mirror drive recorder and may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
The following describes each component of the rearview mirror drive recorder specifically with reference to fig. 1:
the camera 110 includes at least one camera for capturing an image of the environment in front of the vehicle, and may include a camera for capturing an internal condition of the vehicle, and may include an external camera for capturing an image of the environment behind the vehicle.
The memory 120 may be used to store software programs and modules, and the processor 180 executes the software programs and modules stored in the memory 11120 to perform various functional applications and data processing of the rearview mirror drive recorder. The memory 120 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the rearview mirror drive recorder (such as audio data, phonebook, etc.), etc. In addition, memory 120 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 input unit 130 may be used to receive input numerical or character information and to generate key signal inputs related to user settings and function controls of the mirror drive recorder. In particular, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 131 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 131 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 180, and can receive commands from the processor 180 and execute them. In addition, the touch panel 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, function keys (such as volume control keys, switch keys, etc.), physical keyboards, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the rearview mirror drive recorder. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of a mirror display, a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 may cover the display panel 141, and when the touch panel 131 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 1, the touch panel 131 and the display panel 141 implement the input and output functions of the rearview mirror drive recorder as two independent components, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the rearview mirror drive recorder.
The rearview mirror drive recorder may also include at least one sensor 150, such as a motion sensor, among other sensors. Specifically, as one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for identifying the application of the posture of the rearview mirror automobile data recorder (such as transverse and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer and knocking), and the like; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may be further configured in the rearview mirror automobile data recorder, the description thereof will not be repeated here.
The audio circuit 160 connects a speaker 161 and a microphone 162, the microphone 162 providing an audio interface between the user and the rearview mirror drive recorder. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, and sends the audio data to another mobile phone, for example, via the WiFi module 170, or outputs the audio data to the memory 120 for further processing.
WiFi belongs to the short-distance wireless transmission technology, and the rearview mirror automobile data recorder can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 170, so that wireless broadband Internet access is provided for the user.
The processor 180 is a control center of the rearview mirror drive recorder, connects various parts of the entire rearview mirror drive recorder with various interfaces and lines, and performs various functions and processes data of the rearview mirror drive recorder by running or executing application programs and/or modules stored in the memory 120 and invoking data stored in the memory 120, thereby performing overall monitoring of the rearview mirror drive recorder. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The rearview mirror drive recorder also includes a power supply 190 (e.g., a battery) for powering the various components, preferably logically connected to the processor 180 via a power management system for managing charge, discharge, and power consumption via the power management system.
Although not shown, the rearview mirror drive recorder may further include a bluetooth module, etc., and will not be described herein.
In the embodiment of the present invention, the processor 180 included in the mobile terminal further has the following functions:
acquiring information reflecting the ambient brightness through a vehicle-mounted diagnosis system interface;
and adjusting the brightness of the display screen of the mobile terminal at least according to the information reflecting the environment brightness.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the method of the various embodiments of the first aspect of the present invention.
The computer readable storage medium provided by the embodiment of the invention deletes the display window in the memory after the display window is hidden, thereby saving the memory space and improving the running stability of the system.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in implementing the methods of the above embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, where the storage medium may be a read only memory, a magnetic disk or optical disk, etc.
While the foregoing describes a computer device provided by the present invention in detail, those skilled in the art will appreciate that the foregoing description is not meant to limit the invention thereto, as long as the scope of the invention is defined by the claims appended hereto.
A1, a control method of an application program is characterized by comprising the following steps:
invoking a first display window of the application program;
And deleting the first display window of the application program in the memory after detecting that the first display window is hidden.
A2, the method according to A1, wherein deleting the first display window in the memory includes:
releasing memory resources occupied by the first display window;
and removing the data of the first display window in the display window stack.
A3, the method according to A1 or A2, wherein before deleting the first display frame in the memory, further comprises:
searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
the deleting the first display window in the memory includes:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
after the identification information corresponding to the first display window is found in the designated application program identification information set, deleting the application program comprising the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
The method according to A4, A1 or A2, further comprising:
invoking a second display form of the application according to the indication received during the invocation of the first display form;
after a trigger event of a target navigation bar button is detected, and the second display window is determined to correspond to a custom function of the target navigation bar button, executing an implementation code of the custom function to create the first display window in a memory.
The method according to A5, wherein before detecting the triggering event of the target navigation bar button, the method further comprises:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
after detecting a trigger event of a target navigation bar button and determining that the second display window corresponds to a custom function of the target navigation bar button, executing implementation codes of the custom function to create the first display window in a memory, including:
After a trigger event of a target navigation bar button is detected, and value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, implementation codes of the custom function are executed to create the first display window in a memory.
B6, a control device for an application program, comprising:
the display window calling module is used for calling a first display window of the application program;
and the display window ending execution module is used for deleting the first display window of the application program in the memory after detecting that the first display window is hidden.
The device according to B7, wherein the display window ending execution module is configured to:
releasing memory resources occupied by the first display window;
and removing the data of the first display window in the display window stack.
The apparatus according to B8, or B6 or B7, further comprising an identification information searching module configured to:
searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
The display window ending execution module is used for:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
after the identification information corresponding to the first display window is found in the designated application program identification information set, deleting the application program comprising the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
B9, the apparatus according to B6 or B7, wherein the display window invoking module is further configured to: invoking a second display form of the application according to the indication received during the invocation of the first display form;
the device also comprises a display window creation module, which is used for executing the implementation code of the custom function to create the first display window in the memory after the trigger event of the target navigation bar button is detected and the custom function of the target navigation bar button corresponding to the second display window is determined.
B10, the apparatus according to B9, wherein the display window creation module is configured to:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
after a trigger event of a target navigation bar button is detected, and value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, implementation codes of the custom function are executed to create the first display window in a memory.
C11, a mobile terminal, comprising a processor and a memory:
the memory is used for storing a program for executing the method of any one of A1 to A5;
the processor is configured to execute a program stored in the memory.
D12. a computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method according to any one of A1 to A5.

Claims (10)

1. A control method of an application program, characterized by comprising:
invoking a first display window of the application program;
after detecting that a first display window of the application program is hidden, deleting the first display window in a memory;
before deleting the first display window in the memory, the method further includes:
searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
the deleting the first display window in the memory includes:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
after the identification information corresponding to the first display window is found in the designated application program identification information set, deleting the application program comprising the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
2. The method of claim 1, wherein deleting the first display window in the memory comprises:
releasing memory resources occupied by the first display window;
and removing the data of the first display window in the display window stack.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
invoking a second display form of the application according to the indication received during the invocation of the first display form;
after a trigger event of a target navigation bar button is detected, and the second display window is determined to correspond to a custom function of the target navigation bar button, executing an implementation code of the custom function to create the first display window in a memory.
4. The method of claim 3, wherein the method further comprises, prior to detecting the trigger event of the target navigation bar button:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
After detecting a trigger event of a target navigation bar button and determining that the second display window corresponds to a custom function of the target navigation bar button, executing implementation codes of the custom function to create the first display window in a memory, including:
after a trigger event of a target navigation bar button is detected, and value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, implementation codes of the custom function are executed to create the first display window in a memory.
5. An application program control device, comprising:
the display window calling module is used for calling a first display window of the application program;
the display window ending execution module is used for deleting the first display window of the application program in the memory after detecting that the first display window is hidden;
the system also comprises an identification information searching module for:
searching the identification information corresponding to the first display window in at least one of the following appointed identification information sets: displaying the window identification information set and the application program identification information set;
The display window ending execution module is used for:
after the identification information corresponding to the first display window is found in the designated display window identification information set, deleting the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the first display window;
after the identification information corresponding to the first display window is found in the designated application program identification information set, deleting the application program comprising the first display window in a memory, wherein the identification information corresponding to the first display window is the identification information of the application program.
6. The apparatus of claim 5, wherein the display window ending execution module is to:
releasing memory resources occupied by the first display window;
and removing the data of the first display window in the display window stack.
7. The apparatus of claim 5 or 6, wherein the display form invocation module is further configured to: invoking a second display form of the application according to the indication received during the invocation of the first display form;
the device also comprises a display window creation module, which is used for executing the implementation code of the custom function to create the first display window in the memory after the trigger event of the target navigation bar button is detected and the custom function of the target navigation bar button corresponding to the second display window is determined.
8. The apparatus of claim 7, wherein the display form creation module is configured to:
searching the identification information of the second display window in a navigation bar button custom function table, wherein the identification information of the display window corresponding to the custom function of the navigation bar button and the value information of the navigation bar button corresponding to the custom function are recorded in the navigation bar button custom function table;
after a trigger event of a target navigation bar button is detected, and value information of the target navigation bar button corresponding to the second display window is found in the navigation bar button custom table, implementation codes of the custom function are executed to create the first display window in a memory.
9. A mobile terminal comprising a processor and a memory:
the memory is used for storing a program for executing the method of any one of claims 1 to 4;
the processor is configured to execute a program stored in the memory.
10. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1 to 4.
CN201811163255.4A 2018-09-30 2018-09-30 Control method and device for application program, mobile terminal and storage medium Active CN110968237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811163255.4A CN110968237B (en) 2018-09-30 2018-09-30 Control method and device for application program, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811163255.4A CN110968237B (en) 2018-09-30 2018-09-30 Control method and device for application program, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110968237A CN110968237A (en) 2020-04-07
CN110968237B true CN110968237B (en) 2023-10-31

Family

ID=70029491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811163255.4A Active CN110968237B (en) 2018-09-30 2018-09-30 Control method and device for application program, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110968237B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113985845A (en) * 2021-10-27 2022-01-28 奇瑞商用车(安徽)有限公司 Vehicle remote control method based on user DIY setting

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN105224167A (en) * 2015-08-31 2016-01-06 深圳市茁壮网络股份有限公司 A kind of windows switching method and device
CN105404551A (en) * 2015-12-11 2016-03-16 Tcl移动通信科技(宁波)有限公司 Processing method and system for switching application between foreground and background of mobile terminal and mobile terminal
CN105653429A (en) * 2015-12-23 2016-06-08 珠海格力电器股份有限公司 Application program processing method and device
CN107977131A (en) * 2017-12-18 2018-05-01 深圳市华源显控技术股份有限公司 Control method, storage medium, control device and the display device of display device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8959446B2 (en) * 2008-11-20 2015-02-17 Canon Kabushiki Kaisha Information processing apparatus and method of controlling the same
CN104699363B (en) * 2013-12-10 2018-09-21 阿里巴巴集团控股有限公司 A kind of window interface shows method and system
US20180088750A1 (en) * 2016-09-23 2018-03-29 Apple Inc. Devices, Methods, and Graphical User Interfaces for Creating and Displaying Application Windows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN105224167A (en) * 2015-08-31 2016-01-06 深圳市茁壮网络股份有限公司 A kind of windows switching method and device
CN105404551A (en) * 2015-12-11 2016-03-16 Tcl移动通信科技(宁波)有限公司 Processing method and system for switching application between foreground and background of mobile terminal and mobile terminal
CN105653429A (en) * 2015-12-23 2016-06-08 珠海格力电器股份有限公司 Application program processing method and device
CN107977131A (en) * 2017-12-18 2018-05-01 深圳市华源显控技术股份有限公司 Control method, storage medium, control device and the display device of display device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用好空闲内存提高运行效率;滏阳河;;电脑迷(第13期);64-65 *

Also Published As

Publication number Publication date
CN110968237A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN107368518B (en) Notification message management method, terminal and computer readable storage medium
CN110968226A (en) Navigation bar control method and device, mobile terminal and storage medium
CN109471690B (en) Message display method and terminal equipment
CN109522278B (en) File storage method and terminal equipment
CN109062634B (en) Application starting method and mobile terminal
CN107885635B (en) Black screen detection method, mobile terminal and computer readable storage medium
KR20220158794A (en) Information presentation methods, electronic devices and storage media
CN106951143B (en) Method and device for hiding application icons
CN111078523A (en) Log obtaining method and device, storage medium and electronic equipment
CN107908492B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN108304108B (en) Icon display method of application program and mobile terminal
CN110147186A (en) A kind of control method and terminal device of application
CN110069407B (en) Function test method and device for application program
JP6974620B2 (en) Notification message processing method and terminal
CN107832191B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN107818036B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN107872367B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN108089935B (en) Application program management method and mobile terminal
CN110968237B (en) Control method and device for application program, mobile terminal and storage medium
CN109614042B (en) Method for storing log information and terminal equipment
CN108170360B (en) Control method of gesture function and mobile terminal
CN108319409B (en) Application program control method and mobile terminal
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
CN107888411B (en) Black screen detection method, 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