CN105094844A - Electronic photo album management method and mobile terminal - Google Patents

Electronic photo album management method and mobile terminal Download PDF

Info

Publication number
CN105094844A
CN105094844A CN201510518841.6A CN201510518841A CN105094844A CN 105094844 A CN105094844 A CN 105094844A CN 201510518841 A CN201510518841 A CN 201510518841A CN 105094844 A CN105094844 A CN 105094844A
Authority
CN
China
Prior art keywords
menu
memory space
thread
electronic album
user interface
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.)
Granted
Application number
CN201510518841.6A
Other languages
Chinese (zh)
Other versions
CN105094844B (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 CN201510518841.6A priority Critical patent/CN105094844B/en
Publication of CN105094844A publication Critical patent/CN105094844A/en
Application granted granted Critical
Publication of CN105094844B publication Critical patent/CN105094844B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an electronic photo album management method and a mobile terminal. The electronic photo album management method includes the steps that the mobile terminal monitors user control commands; when the user control command used for setting a menu of an electronic photo album is monitored, a user interface object of the menu of the electronic photo album is set up in memory space; when the user control command for exiting from setting of the menu of the electronic photo album is monitored, the user interface object of the menu of the electronic photo album is deleted from the memory space. The provided technical scheme is beneficial for effectively managing memory used by the electronic photo album in the mobile terminal and then increasing the response speed of a whole mobile terminal system.

Description

Electronic photo album management method and mobile terminal
Technical Field
The invention relates to the technical field of computers, in particular to an electronic photo album management method and a mobile terminal.
Background
As mobile terminals (e.g., mobile phones, tablet computers, etc.) become indispensable communication tools, various applications loaded on the mobile terminals, such as applications of instant messaging, electronic banking, electronic photo album, web browser, etc., have come to be used. Especially, electronic photo album applications on mobile terminals are increasingly widely used by people.
The inventor of the present invention finds, in the research and practice processes, that as the functions of the electronic album application in the mobile terminal are more and more, the system memory occupied after the electronic album application is opened is also more and more, and at present, there is no mechanism for effectively managing the memory used by the electronic album application in the mobile terminal, which may greatly reduce the response speed of the whole mobile terminal system.
Disclosure of Invention
The embodiment of the invention provides an electronic photo album management method and a mobile terminal, so that a memory used by an electronic photo album application in the mobile terminal can be effectively managed, and the response speed of the whole mobile terminal system is further improved.
A first aspect of an embodiment of the present invention provides an electronic album management method, including:
the mobile terminal monitors a user control command;
when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space;
and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the monitoring, by the mobile terminal, a user control command includes:
and the mobile terminal calls a created second process or a second thread to monitor the user control command, wherein the second thread or the second process is a process or a thread which is not specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the monitoring, by the mobile terminal, a user control command includes:
the mobile terminal creates a first thread or a first process, calls the first thread or the first process to monitor a user control command, and the first thread or the first process is a process or a thread which is specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the creating, by the mobile terminal, a first thread or a first process includes: allocating a memory space for a first thread or a first process to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory, and creating the first process or the first thread in the allocated memory space.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, in the case that the first thread is created, the creating a user interface object of an electronic album menu in a memory space includes:
creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first thread; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
With reference to the third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect,
in a case where the first process is created, the creating a user interface object of an electronic album menu in a memory space includes: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or the public memory space of the system creates a user interface object of the main menu of the electronic photo album, and creates a user interface object of the auxiliary menu of the electronic photo album in the memory space distributed for the first process.
A second aspect of an embodiment of the present invention provides a mobile terminal, including:
the monitoring unit is used for monitoring a user control command;
the creating unit is used for creating a user interface object of the electronic photo album menu in a memory space when the monitoring unit monitors a user control command for setting the electronic photo album menu;
and the deleting unit is used for deleting the user interface object of the electronic photo album menu from the memory space when the monitoring unit monitors that the user control command for quitting the setting of the electronic photo album menu is received.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the monitoring unit is specifically configured to invoke a created second process or second thread to monitor the user control command, where the second thread or second process is a process or thread that is not dedicated to detecting the user control command for setting the electronic album menu or exiting the user control command for setting the electronic album menu;
or,
the monitoring unit is specifically configured to create a first thread or a first process, and invoke the first thread or the first process to monitor a user control command, where the first thread or the first process is a process or a thread dedicated to detecting a user control command for setting an electronic album menu or a process or a thread for exiting a user control command for setting the electronic album menu.
In combination with the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect,
in the aspect of creating a first thread or a first process, the monitoring unit is specifically configured to allocate a memory space to the first thread or the first process to be created, where the allocated memory space includes a stack area memory, a global area memory, and a code area memory, and create the first process or the first thread in the allocated memory space.
In combination with the second possible embodiment of the second aspect, in a third possible embodiment of the second aspect,
in a case where the first process is created, the creating unit is specifically configured to: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or the public memory space of the system creates a user interface object of the main menu of the electronic photo album, and creates a user interface object of the auxiliary menu of the electronic photo album in the memory space distributed for the first process.
With reference to the second possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, in a case where the first thread is created,
the creating unit is specifically used for creating a user interface object of an electronic album main menu and an electronic album auxiliary menu in the memory space allocated for the first thread; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or, creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
It can be seen that, in the scheme of the embodiment of the invention, the mobile terminal monitors the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. The mechanism is introduced to dynamically create and delete the user interface object of the electronic album menu in the memory space, so that the user interface object of the electronic album menu is created under the condition that the user interface object of the electronic album menu needs to be used, and the user interface object of the electronic album menu is deleted from the memory space under the condition that the user interface object of the electronic album menu does not need to be used currently, so that the user interface object of the electronic album menu which is not concerned by a user currently can not be reserved in the memory space.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an electronic album management method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another electronic album management method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another electronic album management method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another electronic album management method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another electronic album management method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating another electronic album management method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an electronic photo album management method and a mobile terminal, so that a memory used by an electronic photo album application in the mobile terminal can be effectively managed, and the response speed of the whole mobile terminal system is further improved.
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
The appearances of the phrases "first," "second," and "third," or the like, in the specification, claims, and figures are not necessarily all referring to the particular order in which they are presented. 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.
In an embodiment of an electronic album management method according to the present invention, an electronic album management method may include: the mobile terminal monitors a user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space.
Referring to fig. 1, fig. 1 is a schematic flow chart of an electronic album management method according to an embodiment of the present invention. As shown in fig. 1 by way of example, an electronic album management method according to an embodiment of the present invention may include:
101. the mobile terminal monitors a user control command.
The manner in which the mobile terminal monitors the user control command may be various.
In some possible embodiments of the invention, the mobile terminal may monitor user control commands using a process or thread that has been created.
Specifically, for example, the monitoring user control command of the mobile terminal may include: and the mobile terminal calls the created second process or second process to monitor the user control command. The second thread or the second process is a process or a thread which is not specially used for detecting a user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
In other possible embodiments of the present invention, the mobile terminal may also monitor user control commands using a newly created dedicated process or thread.
Specifically, for example, the monitoring user control command of the mobile terminal may include: the mobile terminal creates a first thread or a first process, calls the first thread or the first process to monitor a user control command, and the first thread or the first process is a process or a thread which is specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
102. And when a user control command for setting the electronic album menu is monitored, creating a user interface object of the electronic album menu in the memory space.
103. And when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space.
It can be seen that, in the scheme of the embodiment of the invention, the mobile terminal monitors the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of a mechanism for dynamically creating and deleting user interface objects of an electronic album menu in a memory space, creating a user interface object of the electronic album menu in a case where the user interface object of the electronic album menu needs to be used, deleting the user interface object of the electronic album menu from the memory space under the condition that the user interface object of the electronic album menu is not required to be used currently, this allows the user interface objects of the electronic album menu that the user is not currently interested in to be left in the memory space, therefore, the mechanism can effectively manage the system memory occupied by the electronic photo album menu in the mobile terminal, and then, the memory occupied by the electronic photo album application in the mobile terminal can be effectively managed, unnecessary occupation of the excessive memory of the system by the electronic photo album menu can be reduced as much as possible, and the response speed of the whole mobile terminal system can be improved.
Optionally, in some possible embodiments of the present invention, the creating, by the mobile terminal, the first thread or the first process may include: allocating a memory space for a first thread or a first process to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory, and creating the first process or the first thread in the allocated memory space.
When a user control command for setting the electronic album menu is monitored, the mobile terminal can create a user interface object of the electronic album menu in any free memory space or a specific free memory space of the mobile terminal under the condition that the current free memory space is determined to be enough.
For example, in some possible embodiments of the present invention, in the case that the first thread is created, the creating a user interface object of an electronic album menu in the memory space may include: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first thread; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
For another example, in some possible embodiments of the present invention, in a case where the first process is created, the creating the user interface object of the electronic album menu in the memory space may include: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or the public memory space of the system creates a user interface object of the main menu of the electronic photo album, and creates a user interface object of the auxiliary menu of the electronic photo album in the memory space distributed for the first process.
In order to better understand and implement the technical solution of the embodiments of the present invention, the following description is given with reference to some specific application scenarios.
Referring to fig. 2, fig. 2 is a schematic flow chart of an electronic album management method according to another embodiment of the present invention. As shown in fig. 2 by way of example, another embodiment of the present invention provides an electronic album management method, which may include:
201. the mobile terminal calls the created second process or second thread to monitor the user control command.
The second thread or the second process may be a process or a thread that is not dedicated to detecting a user control command for setting the electronic album menu or a user control command for exiting the setting of the electronic album menu. The second thread or second process may be a system process or thread.
202. And when monitoring a user control command for setting the electronic photo album menu, the mobile terminal determines whether the current free memory space is enough.
If yes, go to step 204.
If not, go to step 203.
203. And the mobile terminal pops up a prompt message of failure in creating the electronic album menu on a display interface.
204. And creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the free memory space of the mobile terminal.
205. And when monitoring that the user control command for exiting the electronic photo album setting menu is detected, the mobile terminal determines whether the current free memory space is enough.
If yes, go to step 206.
If not, go to step 207.
206. And the mobile terminal deletes the user interface object of the electronic photo album auxiliary menu from the memory space, and the user interface object of the electronic photo album auxiliary menu is reserved in the corresponding memory space.
207. And the mobile terminal deletes the user interface objects of the main menu and the auxiliary menu of the electronic album from the memory space.
It can be seen that, in the solution of the embodiment of the present invention, the mobile terminal invokes the created second process or second process monitoring user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. The mechanism is introduced to dynamically create and delete the user interface object of the electronic album menu in the memory space, so that the user interface object of the electronic album menu is created under the condition that the user interface object of the electronic album menu needs to be used, and the user interface object of the electronic album menu is deleted from the memory space under the condition that the user interface object of the electronic album menu does not need to be used currently, so that the user interface object of the electronic album menu which is not concerned by a user currently can not be reserved in the memory space.
Referring to fig. 3, fig. 3 is a schematic flow chart of an electronic album management method according to another embodiment of the present invention. As shown in fig. 3 by way of example, another embodiment of the present invention provides an electronic album management method, which may include:
301. the mobile terminal creates a first process.
The first process may be a process dedicated to detecting a user control command for setting an electronic album menu or a user control command for exiting from the setting of the electronic album menu.
Wherein, the mobile terminal creating the first process may include:
allocating a memory space for a first process to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory; and creating a first process in the allocated memory space.
302. And the mobile terminal calls the first process monitoring user control command.
303. When a user control command for setting an electronic photo album menu is monitored, the mobile terminal determines whether the current free memory space in the memory space allocated to the first process is enough.
If yes, go to step 305.
If not, go to step 304.
304. And the mobile terminal pops up a prompt message of failure in creating the electronic album menu on a display interface.
305. And the mobile terminal creates user interface objects of a main electronic album menu and an auxiliary electronic album menu in a free memory space in the memory space allocated to the first process.
306. When a user control command for exiting the electronic photo album setting menu is monitored, the mobile terminal determines whether the free memory space in the memory space allocated to the first process is enough.
If yes, go to step 307.
If not, go to step 308.
307. And the mobile terminal deletes the user interface object of the electronic photo album auxiliary menu from the corresponding memory space, and the user interface object of the electronic photo album auxiliary menu is reserved in the corresponding memory space.
308. And the mobile terminal deletes the user interface objects of the main menu and the auxiliary menu of the electronic album from the corresponding memory space.
It can be seen that, in the scheme of the embodiment of the present invention, the mobile terminal invokes a dedicated first process to monitor the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of the mechanism for dynamically creating and deleting the user interface object of the electronic album menu in the memory space, the user interface object of the electronic album menu is created under the condition that the user interface object of the electronic album menu needs to be used, and the user interface object of the electronic album menu is deleted from the memory space under the condition that the user interface object of the electronic album menu does not need to be used currently, so that the user interface object of the electronic album menu which is not concerned by a user currently can not be reserved in the memory space.
Referring to fig. 4, fig. 4 is a schematic flow chart of an electronic album management method according to another embodiment of the present invention. As shown in fig. 4 by way of example, another embodiment of the present invention provides an electronic album management method, which may include:
401. the mobile terminal calls the created first process.
The first process may be a process dedicated to detecting a user control command for setting an electronic album menu or a user control command for exiting from the setting of the electronic album menu.
The mobile terminal invoking the created first process may include:
allocating a memory space for a first process to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory; and creating a first process in the allocated memory space.
402. And the mobile terminal calls the first process monitoring user control command.
403. When a user control command for setting an electronic photo album menu is monitored, the mobile terminal determines whether the current free memory space in the memory space allocated to the first process is enough.
If yes, go to step 405.
If not, go to step 404.
404. And the mobile terminal pops up a prompt message of failure in creating the electronic album menu on a display interface.
405. And the mobile terminal creates a user interface object of the electronic album auxiliary menu in a free memory space in the memory space allocated to the first process, and creates a user interface object of the electronic album main menu in a system public memory space of the mobile terminal.
406. When a user control command for exiting the electronic photo album setting menu is monitored, the mobile terminal determines whether the free memory space in the system public memory space is enough.
If yes, go to step 407.
If not, go to step 408.
407. And the mobile terminal deletes the user interface object of the electronic photo album auxiliary menu from the corresponding memory space, and the user interface object of the electronic photo album auxiliary menu is reserved in the corresponding memory space.
408. And the mobile terminal deletes the user interface objects of the main menu and the auxiliary menu of the electronic album from the corresponding memory space.
It can be seen that, in the scheme of the embodiment of the present invention, the mobile terminal invokes a dedicated first process to monitor the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of the mechanism for dynamically creating and deleting the user interface object of the electronic album menu in the memory space, the user interface object of the electronic album menu is created under the condition that the user interface object of the electronic album menu needs to be used, and the user interface object of the electronic album menu is deleted from the memory space under the condition that the user interface object of the electronic album menu does not need to be used currently, so that the user interface object of the electronic album menu which is not concerned by a user currently can not be reserved in the memory space.
Referring to fig. 5, fig. 5 is a schematic flow chart of an electronic album management method according to another embodiment of the present invention. As shown in fig. 5 by way of example, another embodiment of the present invention provides an electronic album management method, which may include:
501. the mobile terminal creates a first thread.
The first thread may be a thread dedicated to detecting a user control command for setting the electronic album menu or exiting the user control command for setting the electronic album menu.
Wherein the mobile terminal creating the first thread may include:
allocating a memory space for a first thread to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory; and creating a first thread in the allocated memory space.
502. The mobile terminal calls a first thread to monitor a user control command.
503. When a user control command for setting the electronic photo album menu is monitored, the mobile terminal determines whether the current free memory space in the memory space allocated to the first thread is enough.
If yes, go to step 505.
If not, go to step 504.
504. And the mobile terminal pops up a prompt message of failure in creating the electronic album menu on a display interface.
505. And creating a user interface object of the electronic album auxiliary menu in an idle memory space in a memory space allocated to the first thread by the mobile terminal, and creating a user interface object of the electronic album main menu in a system public memory space of the mobile terminal.
506. When a user control command for exiting the electronic photo album setting menu is monitored, the mobile terminal determines whether the free memory space in the system public memory space is enough.
If yes, go to step 507.
If not, go to step 508.
507. And the mobile terminal deletes the user interface object of the electronic photo album auxiliary menu from the corresponding memory space, and the user interface object of the electronic photo album auxiliary menu is reserved in the corresponding memory space.
508. And the mobile terminal deletes the user interface objects of the main menu and the auxiliary menu of the electronic album from the corresponding memory space.
It can be seen that, in the solution of the embodiment of the present invention, the mobile terminal invokes a dedicated first thread to monitor the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of the mechanism for dynamically creating and deleting the user interface object of the electronic album menu in the memory space, the user interface object of the electronic album menu is created under the condition that the user interface object of the electronic album menu needs to be used, and the user interface object of the electronic album menu is deleted from the memory space under the condition that the user interface object of the electronic album menu does not need to be used currently, so that the user interface object of the electronic album menu which is not concerned by a user currently can not be reserved in the memory space.
Referring to fig. 6, fig. 6 is a schematic flow chart of an electronic album management method according to another embodiment of the present invention. As shown in fig. 6 by way of example, another embodiment of the present invention provides an electronic album management method, which may include:
601. the mobile terminal creates a first thread.
The first thread may be a thread dedicated to detecting a user control command for setting the electronic album menu or exiting the user control command for setting the electronic album menu.
Wherein the mobile terminal creating the first thread may include:
allocating a memory space for a first thread to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory; and creating a first thread in the allocated memory space.
602. The mobile terminal calls a first thread to monitor a user control command.
603. When a user control command for setting the electronic photo album menu is monitored, the mobile terminal determines whether the current free memory space in the memory space allocated to the first thread is enough.
If yes, go to step 605.
If not, go to step 604.
604. And the mobile terminal pops up a prompt message of failure in creating the electronic album menu on a display interface.
605. And creating a user interface object of an electronic album auxiliary menu in an idle memory space in a memory space allocated to the first thread by the mobile terminal, and creating a user interface object of an electronic album main menu in a memory space of a process to which the first thread belongs.
606. When a user control command for exiting the electronic photo album setting menu is monitored, the mobile terminal determines whether the free memory space in the memory space of the process to which the first thread belongs is enough.
If yes, go to step 607.
If not, go to step 608.
607. And the mobile terminal deletes the user interface object of the electronic photo album auxiliary menu from the corresponding memory space, and the user interface object of the electronic photo album auxiliary menu is reserved in the corresponding memory space.
608. And the mobile terminal deletes the user interface objects of the main menu and the auxiliary menu of the electronic album from the corresponding memory space.
It can be seen that, in the solution of the embodiment of the present invention, the mobile terminal invokes a dedicated first thread to monitor the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of the mechanism for dynamically creating and deleting the user interface object of the electronic album menu in the memory space, the user interface object of the electronic album menu is created under the condition that the user interface object of the electronic album menu needs to be used, and the user interface object of the electronic album menu is deleted from the memory space under the condition that the user interface object of the electronic album menu does not need to be used currently, so that the user interface object of the electronic album menu which is not concerned by a user currently can not be reserved in the memory space.
Referring to fig. 7, an embodiment of the present invention provides a mobile terminal 700, which may include:
a monitoring unit 710 for monitoring a user control command;
the creating unit 720 is used for creating a user interface object of the electronic photo album menu in the memory space when the monitoring unit monitors a user control command for setting the electronic photo album menu;
and the deleting unit 730 is used for deleting the user interface object of the electronic album menu from the memory space when the monitoring unit monitors that the user control command for quitting the setting of the electronic album menu is received.
Optionally, in some possible embodiments of the present invention, the monitoring unit is specifically configured to invoke a created second process or a second thread to monitor the user control command, where the second thread or the second process is a process or a thread that is not dedicated to detecting the user control command for setting the electronic album menu or exiting the user control command for setting the electronic album menu;
or,
the monitoring unit is specifically configured to create a first thread or a first process, and invoke the first thread or the first process to monitor a user control command, where the first thread or the first process is a process or a thread dedicated to detecting a user control command for setting an electronic album menu or a process or a thread for exiting a user control command for setting the electronic album menu.
Alternatively, in some possible embodiments of the invention,
in the aspect of creating a first thread or a first process, the monitoring unit may be specifically configured to allocate a memory space to the first thread or the first process to be created, where the allocated memory space includes a stack area memory, a global area memory, and a code area memory, and create the first process or the first thread in the allocated memory space.
Alternatively, in some possible embodiments of the invention,
in a case where the first process is created, the creating unit may be specifically configured to: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or the public memory space of the system creates a user interface object of the main menu of the electronic photo album, and creates a user interface object of the auxiliary menu of the electronic photo album in the memory space distributed for the first process.
In some possible embodiments of the present invention, in a case where the first thread is created, the creating unit is specifically configured to create a user interface object of an electronic album main menu and an electronic album auxiliary menu in a memory space allocated for the first thread; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or, creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
It can be understood that the functions of the functional modules of the mobile terminal 700 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again. The mobile terminal can be a smart phone, a tablet computer, a notebook computer or personal digital processing equipment.
It can be seen that in the solution of the embodiment of the present invention, the mobile terminal 700 monitors the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of a mechanism for dynamically creating and deleting user interface objects of an electronic album menu in a memory space, creating a user interface object of the electronic album menu in a case where the user interface object of the electronic album menu needs to be used, deleting the user interface object of the electronic album menu from the memory space under the condition that the user interface object of the electronic album menu is not required to be used currently, this allows the user interface objects of the electronic album menu that the user is not currently interested in to be left in the memory space, therefore, the mechanism can effectively manage the system memory occupied by the electronic photo album menu in the mobile terminal, and then, the memory occupied by the electronic photo album application in the mobile terminal can be effectively managed, unnecessary occupation of the excessive memory of the system by the electronic photo album menu can be reduced as much as possible, and the response speed of the whole mobile terminal system can be improved.
Referring to fig. 8 and fig. 8 are schematic diagrams of a mobile terminal 800 according to an embodiment of the present invention, where the mobile terminal 800 may include at least 1 bus 801, at least 1 processor 802 connected to the bus 801, and at least 1 memory 803 connected to the bus 801.
Wherein the processor 802 invokes code or instructions stored in the memory 803 over the bus 801 for monitoring user control commands; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space.
Optionally, in some possible embodiments of the invention, the processor 802 monitoring the user control command includes: and calling a created second process or a second thread to monitor the user control command, wherein the second thread or the second process is a process or a thread which is not specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
Optionally, in some possible embodiments of the invention, the processor 802 monitoring the user control command includes: creating a first thread or a first process, and calling the first thread or the first process to monitor a user control command, wherein the first thread or the first process is a process or a thread which is specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
Optionally, in some possible embodiments of the present invention, the creating, by the processor 802, the first thread or the first process includes: allocating a memory space for a first thread or a first process to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory, and creating the first process or the first thread in the allocated memory space.
In some possible embodiments of the invention, in the case where the first thread is created, the processor 802 creates a user interface object of an electronic album menu in the memory space including: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first thread; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or, creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
In some possible embodiments of the invention, in the case where the first process is created, the processor 802 creates a user interface object of an electronic album menu in the memory space including: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or the public memory space of the system creates a user interface object of the main menu of the electronic photo album, and creates a user interface object of the auxiliary menu of the electronic photo album in the memory space distributed for the first process.
It can be understood that the functions of the functional modules of the mobile terminal 800 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again. The mobile terminal can be a smart phone, a tablet computer, a notebook computer or personal digital processing equipment.
It can be seen that in the solution of the embodiment of the present invention, the mobile terminal 800 monitors the user control command; when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space; and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space. Due to the introduction of a mechanism for dynamically creating and deleting user interface objects of an electronic album menu in a memory space, creating a user interface object of the electronic album menu in a case where the user interface object of the electronic album menu needs to be used, deleting the user interface object of the electronic album menu from the memory space under the condition that the user interface object of the electronic album menu is not required to be used currently, this allows the user interface objects of the electronic album menu that the user is not currently interested in to be left in the memory space, therefore, the mechanism can effectively manage the system memory occupied by the electronic photo album menu in the mobile terminal, and then, the memory occupied by the electronic photo album application in the mobile terminal can be effectively managed, unnecessary occupation of the excessive memory of the system by the electronic photo album menu can be reduced as much as possible, and the response speed of the whole mobile terminal system can be improved.
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 invention 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 storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 according to the embodiments of the present invention. And the aforementioned storage medium includes: 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.

Claims (10)

1. An electronic album management method, comprising:
the mobile terminal monitors a user control command;
when a user control command for setting an electronic album menu is monitored, a user interface object of the electronic album menu is created in a memory space;
and when a user control command for quitting the electronic album menu is monitored, deleting the user interface object of the electronic album menu from the memory space.
2. The method of claim 1, wherein the mobile terminal monitoring for user control commands comprises:
and the mobile terminal calls a created second process or a second thread to monitor the user control command, wherein the second thread or the second process is a process or a thread which is not specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
3. The method of claim 1, wherein the mobile terminal monitoring for user control commands comprises:
the mobile terminal creates a first thread or a first process, calls the first thread or the first process to monitor a user control command, and the first thread or the first process is a process or a thread which is specially used for detecting the user control command for setting the electronic album menu or quitting the user control command for setting the electronic album menu.
4. The method of claim 3, wherein the mobile terminal creating the first thread or the first process comprises: allocating a memory space for a first thread or a first process to be created, wherein the allocated memory space comprises a stack area memory, a global area memory and a code area memory, and creating the first process or the first thread in the allocated memory space.
5. The method of claim 4,
in a case where the first thread is created, the creating a user interface object of an electronic album menu in a memory space includes:
creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first thread; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
6. The method of claim 4,
in a case where the first process is created, the creating a user interface object of an electronic album menu in a memory space includes: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or the public memory space of the system creates a user interface object of the main menu of the electronic photo album, and creates a user interface object of the auxiliary menu of the electronic photo album in the memory space distributed for the first process.
7. A mobile terminal, comprising:
the monitoring unit is used for monitoring a user control command;
the creating unit is used for creating a user interface object of the electronic photo album menu in a memory space when the monitoring unit monitors a user control command for setting the electronic photo album menu;
and the deleting unit is used for deleting the user interface object of the electronic photo album menu from the memory space when the monitoring unit monitors that the user control command for quitting the setting of the electronic photo album menu is received.
8. The mobile terminal according to claim 7, wherein the monitoring unit is specifically configured to invoke a created second process or a second thread to monitor the user control command, where the second thread or the second process is a process or a thread that is not dedicated to detecting the user control command for setting the electronic album menu or exiting the user control command for setting the electronic album menu;
or,
the monitoring unit is specifically configured to create a first thread or a first process, and invoke the first thread or the first process to monitor a user control command, where the first thread or the first process is a process or a thread dedicated to detecting a user control command for setting an electronic album menu or a process or a thread for exiting a user control command for setting the electronic album menu.
9. The mobile terminal of claim 8,
in the aspect of creating a first thread or a first process, the monitoring unit is specifically configured to allocate a memory space to the first thread or the first process to be created, where the allocated memory space includes a stack area memory, a global area memory, and a code area memory, and create the first process or the first thread in the allocated memory space.
10. The mobile terminal according to claim 9, wherein, in a case where the first process is created, the creating unit is specifically configured to: creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space allocated for the first process; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first process; or a user interface object of an electronic album main menu is created in a public memory space of the system, and a user interface object of an electronic album auxiliary menu is created in a memory space distributed for the first process;
or,
the creating unit is specifically configured to create a user interface object of an electronic album main menu and an electronic album auxiliary menu in a memory space allocated for the first thread in a case where the first thread is created; or creating a user interface object of an electronic photo album auxiliary menu in the memory space allocated for the first thread; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or creating user interface objects of a main electronic album menu and an auxiliary electronic album menu in the memory space of the process to which the first thread belongs; or, creating a user interface object of a main menu of the electronic album in a memory space of the process to which the first thread belongs, and creating a user interface object of an auxiliary menu of the electronic album in a memory space allocated for the first thread.
CN201510518841.6A 2015-08-21 2015-08-21 A kind of electron album management method and mobile terminal Expired - Fee Related CN105094844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510518841.6A CN105094844B (en) 2015-08-21 2015-08-21 A kind of electron album management method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510518841.6A CN105094844B (en) 2015-08-21 2015-08-21 A kind of electron album management method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105094844A true CN105094844A (en) 2015-11-25
CN105094844B CN105094844B (en) 2018-05-29

Family

ID=54575372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510518841.6A Expired - Fee Related CN105094844B (en) 2015-08-21 2015-08-21 A kind of electron album management method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105094844B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN103390127A (en) * 2013-07-18 2013-11-13 腾讯科技(深圳)有限公司 Quitting method and device of operation interface of application program and terminal
CN103425225A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Device and running method for applications in operating system of portable data equipment
CN104268019A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Software operating method and device and terminal
CN104503841A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Process clearing method and process clearing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425225A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Device and running method for applications in operating system of portable data equipment
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN103390127A (en) * 2013-07-18 2013-11-13 腾讯科技(深圳)有限公司 Quitting method and device of operation interface of application program and terminal
CN104268019A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Software operating method and device and terminal
CN104503841A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Process clearing method and process clearing device

Also Published As

Publication number Publication date
CN105094844B (en) 2018-05-29

Similar Documents

Publication Publication Date Title
US9973506B2 (en) Method and apparatus for clearing notification icon, and storage medium
US11337042B2 (en) Short message processing method and apparatus, and electronic device
US20140208328A1 (en) Method for terminal acceleration, terminal and storage medium
CN104253899B (en) The control method and device of communicating terminal
EP2869190A1 (en) Method for starting activity of mobile terminal and the mobile terminal
CN104601683B (en) A kind of file download management method and mobile terminal and communication system
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN111800462A (en) Micro-service instance processing method and device, computer equipment and storage medium
CN106980442B (en) Icon management method and electronic equipment
CN104243285A (en) Message pushing method and server
CN108848497A (en) Acquisition methods, device, terminal and the computer readable storage medium of list of application
CN107704337B (en) Factory setting restoring method, mobile terminal and device with storage function
CN105718142B (en) A kind of status bar notification message display methods and mobile terminal
CN112929254A (en) Message processing method and device and electronic equipment
CN104991829B (en) Manage the method and relevant device of mobile terminal internal memory
CN105094844B (en) A kind of electron album management method and mobile terminal
CN105138328B (en) Yellow pages control method and relevant device
CN105183556B (en) The resource management-control method and relevant device of mobile terminal
CN106603625B (en) Data protection method and device
CN108874591A (en) Document handling method and Related product
CN105607906B (en) A kind of service implementation method, device and electronic equipment
CN115004668B (en) Data synchronization method and related product
CN105577904B (en) A kind of file sharing method and mobile terminal
CN106572470A (en) Network access method, mobile terminal and gateway device
CN112996138A (en) Communication establishing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

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

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

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

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180529