CN104991829A - Mobile terminal memory management method and related device - Google Patents
Mobile terminal memory management method and related device Download PDFInfo
- Publication number
- CN104991829A CN104991829A CN201510383139.3A CN201510383139A CN104991829A CN 104991829 A CN104991829 A CN 104991829A CN 201510383139 A CN201510383139 A CN 201510383139A CN 104991829 A CN104991829 A CN 104991829A
- Authority
- CN
- China
- Prior art keywords
- camera
- menu
- user interface
- thread
- interface object
- 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
Links
Landscapes
- Telephone Function (AREA)
Abstract
An embodiment of the invention discloses a mobile terminal memory management method and a related device. The mobile terminal memory management method comprises the steps of: monitoring an instruction input event by a mobile terminal; when monitoring the instruction input event used for setting a camera menu, creating a user interface object of the camera menu in memory space; and when monitoring the quit of the instruction input event used for setting the camera menu, deleting the user interface object of the camera menu from the memory space. According to the technical scheme provided by the embodiment of the invention, the memory used by a camera application in the mobile terminal can be effectively managed and then the response speed of the whole mobile terminal system can be increased.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of method and relevant device of managing mobile terminal internal memory.
Background technology
Along with mobile terminal (mobile terminal is mobile phone, panel computer etc. such as) becomes the indispensable means of communication of people, the various application that mobile terminal carries also are arisen at the historic moment, the application such as such as instant messaging application, electronic bank application, camera applications, web browser.Especially the camera on mobile terminal, people use mobile terminal to carry out taking pictures more and more universal, the camera on mobile terminal is used to take pictures and captured photo can be sent in social networks in real time, therefore, utilizing the camera in mobile terminal to take pictures and make a video recording has become a requisite part in people's life.In order to adapt to the demand of users, the function of mobile phone camera is also more and more abundanter, such as touch screen camera function, U.S. face function, the U.S. face function of voice, voice camera function, exterior storage function, external camera shooting etc., have a user interface arranging camera menu in each mobile terminal.
The present inventor finds in research and practice process, along with the function of camera applications in mobile terminal gets more and more, the Installed System Memory taken after opening camera applications is also increasing, also do not have at present the camera applications in effective managing mobile terminal use the mechanism of internal memory, this makes the response speed that sometimes greatly may reduce whole mobile terminal system.
Summary of the invention
The embodiment of the present invention provides method and the relevant device of managing mobile terminal internal memory, to can internal memory that camera applications uses effectively in managing mobile terminal, and then be conducive to the response speed promoting whole mobile terminal system.
Embodiment of the present invention first aspect provides a kind of method of managing mobile terminal internal memory, comprising:
Mobile terminal Monitoring instruction incoming event;
When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu;
When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.
In conjunction with first aspect, in the first possible embodiment of first aspect, described mobile terminal Monitoring instruction incoming event comprises:
Described mobile terminal calls the second process or the second thread Monitoring instruction incoming event that have created, and described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu.
In conjunction with first aspect, in the embodiment that the second of first aspect is possible, described mobile terminal Monitoring instruction incoming event comprises:
Described mobile terminal creates the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
In conjunction with the embodiment that the second of first aspect is possible, in the third possible embodiment of first aspect, described mobile terminal creates the first thread or the first process comprises: be the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
In conjunction with the third possible embodiment of first aspect, in the 4th kind of possible embodiment of first aspect, in the situation that described first thread is created, the described user interface object creating camera menu in memory headroom comprises: the user interface object creating camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
In conjunction with the third possible embodiment of first aspect, in the 5th kind of possible embodiment of first aspect,
In the situation that described first process is created, the described user interface object creating camera menu in memory headroom comprises: the user interface object creating camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom.
Embodiment of the present invention second aspect provides a kind of mobile terminal, comprising:
Monitoring means, for Monitoring instruction incoming event;
Creating unit, creates the user interface object of camera menu in memory headroom during for monitoring the instruction incoming event for arranging camera menu when described monitoring means;
Delete cells, for deleting the user interface object of described camera menu from described memory headroom when described monitoring means monitors the instruction incoming event exiting and arrange camera menu.
In conjunction with second aspect, in the first possible embodiment of second aspect, described monitoring means is specifically for calling the second process or the second thread Monitoring instruction incoming event that have created, and described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu;
Or,
Described monitoring means specifically for, create the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, wherein, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
In conjunction with the first possible embodiment of second aspect, in the embodiment that the second of second aspect is possible,
In establishment first thread or the first process, described monitoring means specifically for, for the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
In conjunction with the embodiment that the second of second aspect is possible, in the third possible embodiment of second aspect,
In the situation that described first process is created, described creating unit is specifically for the user interface object that creates camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom.
In conjunction with the embodiment that the second of second aspect is possible, in the 4th kind of possible embodiment of second aspect, in the situation that described first thread is created, described creating unit is specifically for creating the user interface object of camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or, in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
Can find out, mobile terminal Monitoring instruction incoming event in the scheme of the embodiment of the present invention; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can internal memory shared by the camera applications effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, be conducive to the response speed promoting whole mobile terminal system.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, other accompanying drawing can also be obtained according to these accompanying drawings under the prerequisite not paying creative work.
The schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of managing mobile terminal internal memory method that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of managing mobile terminal internal memory method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of managing mobile terminal internal memory method that Fig. 4 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of managing mobile terminal internal memory method that Fig. 5 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of managing mobile terminal internal memory method that Fig. 6 provides for the embodiment of the present invention;
The configuration diagram of a kind of mobile terminal that Fig. 7 provides for the embodiment of the present invention;
The configuration diagram of the another kind of mobile terminal that Fig. 8 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides method and the relevant device of managing mobile terminal internal memory, to can internal memory that camera applications uses effectively in managing mobile terminal, and then be conducive to the response speed promoting whole mobile terminal system.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
The term " first " occurred in instructions of the present invention, claims and accompanying drawing, " second " and " the 3rd " etc. are for distinguishing different objects, and not for describing specific order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic step of these processes, method, product or equipment or unit.
An embodiment of the method for a kind of managing mobile terminal internal memory of the present invention, a kind of method of managing mobile terminal internal memory can comprise: mobile terminal Monitoring instruction incoming event; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.
Refer to Fig. 1, the schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 1 provides for one embodiment of the present of invention.Shown in Fig. 1 illustrates, the method for a kind of managing mobile terminal internal memory that one embodiment of the present of invention provide can comprise:
101, mobile terminal Monitoring instruction incoming event.
Wherein, the mode of mobile terminal Monitoring instruction incoming event can be diversified.
In possible embodiments more of the present invention, mobile terminal can utilize the process that created or thread to carry out Monitoring instruction incoming event.
Concrete example as, mobile terminal Monitoring instruction incoming event can comprise: described mobile terminal calls the second process or the second thread Monitoring instruction incoming event that have created.Wherein, described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu.
In other possible embodiments of the present invention, mobile terminal also can utilize the dedicated process of new establishment or thread to carry out Monitoring instruction incoming event.
Concrete example as, mobile terminal Monitoring instruction incoming event can comprise: described mobile terminal creates the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
102, when monitoring the instruction incoming event for arranging camera menu, in memory headroom, the user interface object of camera menu is created.
103, when monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, the user interface object of described camera menu is deleted.
Can find out, mobile terminal Monitoring instruction incoming event in the scheme of the embodiment of the present invention; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can Installed System Memory that effectively camera menu takies in managing mobile terminal, and then can internal memory shared by the camera applications effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, be conducive to the response speed promoting whole mobile terminal system.
Optionally, in possible embodiments more of the present invention, described mobile terminal creates the first thread or the first process can comprise: be the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
Wherein, when monitoring the instruction incoming event for arranging camera menu, mobile terminal when determining that current idle memory headroom is enough, can create the user interface object of camera menu in any free memory space or specific free memory space of mobile terminal.
For example, among some possible embodiments of the present invention, in the situation that described first thread is created, the described user interface object creating camera menu in memory headroom, can comprise: the user interface object creating camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
Again such as, among possible embodiments more of the present invention, in the situation that described first process is created, the described user interface object creating camera menu in memory headroom can comprise: the user interface object creating camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom.
For ease of better understanding and implement the technical scheme of the embodiment of the present invention, the application scenarios concrete below in conjunction with some is illustrated.
Refer to Fig. 2, the schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 2 provides for an alternative embodiment of the invention.As shown in Fig. 2 illustrates, the method for a kind of managing mobile terminal internal memory that an alternative embodiment of the invention provides can comprise:
201, mobile terminal calls the second process or the second thread Monitoring instruction incoming event that have created.
Wherein, described second thread or the second process can be non-dedicated in detection the instruction incoming event of camera menu is set or exits process or the thread of the instruction incoming event that camera menu is set.Described second thread or the second process can system process or threads.
202, when monitoring the instruction incoming event for arranging camera menu, whether mobile terminal determination current idle memory headroom is enough.
If so, step 204 is performed.
If not, step 203 is performed.
203, mobile terminal ejects the prompting message of camera menu creation failure on display interface.
204, in the free memory space of mobile terminal, create the user interface object of camera master menu and the auxiliary menu of camera.
205, when monitoring the instruction incoming event exiting and arrange camera menu, whether mobile terminal determination current idle memory headroom is enough.
If so, step 206 is performed.
If not, step 207 is performed.
206, mobile terminal deletes the user interface object of the auxiliary menu of camera from described memory headroom, and the user interface object of the auxiliary menu of camera is retained in correspondence memory space.
207, mobile terminal deletes the user interface object of camera master menu and the auxiliary menu of camera from described memory headroom.
Can find out, in the scheme of the embodiment of the present invention, mobile terminal calls the second process or the second thread Monitoring instruction incoming event that have created; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can internal memory shared by the camera applications in more effective managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, be conducive to the response speed promoting whole mobile terminal system.
Refer to Fig. 3, the schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 3 provides for an alternative embodiment of the invention.As shown in Fig. 3 illustrates, the method for a kind of managing mobile terminal internal memory that an alternative embodiment of the invention provides can comprise:
301, mobile terminal creates the first process.
Wherein, described first process can be to be exclusively used in detect and arranges the instruction incoming event of camera menu or exit the process of the instruction incoming event arranging camera menu.
Wherein, mobile terminal creates the first process and can comprise:
For the first course allocation memory headroom to be created, wherein, the described memory headroom of distribution comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory; The first process is created in the described memory headroom distributed.
302, mobile terminal calls the first monitoring the process instruction incoming event.
303, when monitoring the instruction incoming event for arranging camera menu, mobile terminal determines that in the memory headroom of the first process of distributing to, whether current idle memory headroom is enough.
If so, step 305 is performed.
If not, step 304 is performed.
304, mobile terminal ejects the prompting message of camera menu creation failure on display interface.
305, the user interface object of camera master menu and the auxiliary menu of camera is created in the free memory space of mobile terminal in the memory headroom distributing to the first process.
306, when monitoring the instruction incoming event exiting and arrange camera menu, mobile terminal determines that whether the free memory space distributed in the memory headroom of the first process is enough.
If so, step 307 is performed.
If not, step 308 is performed.
307, mobile terminal deletes the user interface object of the auxiliary menu of camera from correspondence memory space, and the user interface object of the auxiliary menu of camera is retained in correspondence memory space.
308, mobile terminal deletes the user interface object of camera master menu and the auxiliary menu of camera from correspondence memory space.
Can find out, in the scheme of the embodiment of the present invention, mobile terminal calls the first special monitoring the process instruction incoming event; In memory headroom, the user interface object of camera menu is created when monitoring the instruction incoming event for arranging camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can internal memory shared by the camera applications comparatively effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, and then be conducive to the response speed promoting whole mobile terminal system.
Refer to Fig. 4, the schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 4 provides for an alternative embodiment of the invention.As shown in Fig. 4 illustrates, the method for a kind of managing mobile terminal internal memory that an alternative embodiment of the invention provides can comprise:
401, mobile terminal calls the first process of establishment.
Wherein, described first process can be to be exclusively used in detect and arranges the instruction incoming event of camera menu or exit the process of the instruction incoming event arranging camera menu.
Wherein, the first process that mobile terminal calls establishment can comprise:
For the first course allocation memory headroom to be created, wherein, the described memory headroom of distribution comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory; The first process is created in the described memory headroom distributed.
402, mobile terminal calls the first monitoring the process instruction incoming event.
403, when monitoring the instruction incoming event for arranging camera menu, mobile terminal determines that in the memory headroom of the first process of distributing to, whether current idle memory headroom is enough.
If so, step 405 is performed.
If not, step 404 is performed.
404, mobile terminal ejects the prompting message of camera menu creation failure on display interface.
405, create the user interface object of the auxiliary menu of camera in the free memory space of mobile terminal in the memory headroom distributing to the first process, in the public memory headroom of the system of mobile terminal, create the user interface object of camera master menu.
406, when monitoring the instruction incoming event exiting and arrange camera menu, whether the free memory space in the public memory headroom of mobile terminal certainty annuity is enough.
If so, step 407 is performed.
If not, step 408 is performed.
407, mobile terminal deletes the user interface object of the auxiliary menu of camera from correspondence memory space, and the user interface object of the auxiliary menu of camera is retained in correspondence memory space.
408, mobile terminal deletes the user interface object of camera master menu and the auxiliary menu of camera from correspondence memory space.
Can find out, in the scheme of the embodiment of the present invention, mobile terminal calls the first special monitoring the process instruction incoming event; In memory headroom, the user interface object of camera menu is created when monitoring the instruction incoming event for arranging camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can internal memory shared by the camera applications comparatively effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, and then be conducive to the response speed promoting whole mobile terminal system.
Refer to Fig. 5, the schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 5 provides for an alternative embodiment of the invention.As shown in Fig. 5 illustrates, the method for a kind of managing mobile terminal internal memory that an alternative embodiment of the invention provides can comprise:
501, mobile terminal creates the first thread.
Wherein, described first thread can be to be exclusively used in detect and arranges the instruction incoming event of camera menu or exit the thread of the instruction incoming event arranging camera menu.
Wherein, mobile terminal creates the first thread and can comprise:
For the first thread storage allocation space to be created, wherein, the described memory headroom of distribution comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory; The first thread is created in the described memory headroom distributed.
502, mobile terminal calls the first thread Monitoring instruction incoming event.
503, when monitoring the instruction incoming event for arranging camera menu, whether mobile terminal determines to distribute to current idle memory headroom in the memory headroom of the first thread enough.
If so, step 505 is performed.
If not, step 504 is performed.
504, mobile terminal ejects the prompting message of camera menu creation failure on display interface.
505, distribute to the user interface object creating the auxiliary menu of camera in the free memory space in the memory headroom of the first thread at mobile terminal, in the public memory headroom of the system of mobile terminal, create the user interface object of camera master menu.
506, when monitoring the instruction incoming event exiting and arrange camera menu, whether the free memory space in the public memory headroom of mobile terminal certainty annuity is enough.
If so, step 507 is performed.
If not, step 508 is performed.
507, mobile terminal deletes the user interface object of the auxiliary menu of camera from correspondence memory space, and the user interface object of the auxiliary menu of camera is retained in correspondence memory space.
508, mobile terminal deletes the user interface object of camera master menu and the auxiliary menu of camera from correspondence memory space.
Can find out, in the scheme of the embodiment of the present invention, mobile terminal calls the first special thread Monitoring instruction incoming event; In memory headroom, the user interface object of camera menu is created when monitoring the instruction incoming event for arranging camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can internal memory shared by the camera applications comparatively effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, and then be conducive to the response speed promoting whole mobile terminal system.
Refer to Fig. 6, the schematic flow sheet of the method for a kind of managing mobile terminal internal memory that Fig. 6 provides for an alternative embodiment of the invention.As shown in Fig. 6 illustrates, the method for a kind of managing mobile terminal internal memory that an alternative embodiment of the invention provides can comprise:
601, mobile terminal creates the first thread.
Wherein, described first thread can be to be exclusively used in detect and arranges the instruction incoming event of camera menu or exit the thread of the instruction incoming event arranging camera menu.
Wherein, mobile terminal creates the first thread and can comprise:
For the first thread storage allocation space to be created, wherein, the described memory headroom of distribution comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory; The first thread is created in the described memory headroom distributed.
602, mobile terminal calls the first thread Monitoring instruction incoming event.
603, when monitoring the instruction incoming event for arranging camera menu, whether mobile terminal determines to distribute to current idle memory headroom in the memory headroom of the first thread enough.
If so, step 605 is performed.
If not, step 604 is performed.
604, mobile terminal ejects the prompting message of camera menu creation failure on display interface.
605, distribute to the user interface object creating the auxiliary menu of camera in the free memory space in the memory headroom of the first thread at mobile terminal, in the memory headroom of process belonging to the first thread, create the user interface object of camera master menu.
606, when monitoring the instruction incoming event exiting and arrange camera menu, mobile terminal determines that whether the free memory space in the memory headroom of process belonging to the first thread is enough.
If so, step 607 is performed.
If not, step 608 is performed.
607, mobile terminal deletes the user interface object of the auxiliary menu of camera from correspondence memory space, and the user interface object of the auxiliary menu of camera is retained in correspondence memory space.
608, mobile terminal deletes the user interface object of camera master menu and the auxiliary menu of camera from correspondence memory space.
Can find out, in the scheme of the embodiment of the present invention, mobile terminal calls the first special thread Monitoring instruction incoming event; In memory headroom, the user interface object of camera menu is created when monitoring the instruction incoming event for arranging camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can internal memory shared by the camera applications comparatively effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, and then be conducive to the response speed promoting whole mobile terminal system.
See Fig. 7, the embodiment of the present invention provides a kind of mobile terminal 700, can comprise:
Monitoring means 710, for Monitoring instruction incoming event;
Creating unit 720, creates the user interface object of camera menu in memory headroom during for monitoring the instruction incoming event for arranging camera menu when described monitoring means;
Delete cells 730, for deleting the user interface object of described camera menu from described memory headroom when described monitoring means monitors the instruction incoming event exiting and arrange camera menu.
Optionally, in possible embodiments more of the present invention, described monitoring means is specifically for calling the second process or the second thread Monitoring instruction incoming event that have created, and described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu;
Or,
Described monitoring means specifically for, create the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, wherein, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
Optionally, in possible embodiments more of the present invention,
In establishment first thread or the first process, monitoring means can be specifically for, for the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
Optionally, in possible embodiments more of the present invention,
In the situation that described first process is created, described creating unit can be specifically for: the user interface object creating camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom.
In possible embodiments more of the present invention, in the situation that described first thread is created, described creating unit is specifically for creating the user interface object of camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or, in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
Be understandable that, the function of each functional module of the mobile terminal 700 of the present embodiment can according to the method specific implementation in said method embodiment, and its specific implementation process with reference to the associated description of said method embodiment, can repeat no more herein.Mobile terminal can be the equipment such as smart mobile phone, panel computer, notebook computer or personal digital assistant.
Can find out, mobile terminal 700 Monitoring instruction incoming event in the scheme of the embodiment of the present invention; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can Installed System Memory that effectively camera menu takies in managing mobile terminal, and then can internal memory shared by the camera applications effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, be conducive to the response speed promoting whole mobile terminal system.
See the schematic diagram of the mobile terminal 800 that Fig. 8, Fig. 8 provide for the embodiment of the present invention, at least 1 storer 803 that mobile terminal 800 can comprise at least 1 bus 801, at least 1 processor 802 be connected with bus 801 and be connected with bus 801.
Wherein, processor 802 by bus 801 call in storer 803 store code or instruction for Monitoring instruction incoming event; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.
Optionally, in possible embodiments more of the present invention, processor 802 Monitoring instruction incoming event comprises: call the second process or the second thread Monitoring instruction incoming event that have created, and described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu.
Optionally, in possible embodiments more of the present invention, described processor 802 Monitoring instruction incoming event comprises: create the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
Optionally, in possible embodiments more of the present invention, described processor 802 creates the first thread or the first process comprises: be the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
In possible embodiments more of the present invention, in the situation that described first thread is created, the user interface object that described processor 802 creates camera menu in memory headroom comprises: the user interface object creating camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or, in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
In some possible embodiments of the present invention, in the situation that described first process is created, the user interface object that described processor 802 creates camera menu in memory headroom comprises: the user interface object creating camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom.
Be understandable that, the function of each functional module of the mobile terminal 800 of the present embodiment can according to the method specific implementation in said method embodiment, and its specific implementation process with reference to the associated description of said method embodiment, can repeat no more herein.Mobile terminal can be the equipment such as smart mobile phone, panel computer, notebook computer or personal digital assistant.
Can find out, mobile terminal 800 Monitoring instruction incoming event in the scheme of the embodiment of the present invention; When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu; When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.Owing to introducing the dynamic mechanism creating and delete the user interface object of camera menu in memory headroom, the user interface object creating camera menu when being used is needed in the user interface object of camera menu, when the user interface object of camera menu current without the need to being used when the user interface object of camera menu is deleted from memory headroom, this makes the user interface object that can not retain the current camera menu do not paid close attention to of user in memory headroom, visible above-mentioned mechanism can Installed System Memory that effectively camera menu takies in managing mobile terminal, and then can internal memory shared by the camera applications effectively in managing mobile terminal, be conducive to reducing the unnecessary too much internal memory of the system that takies of camera menu as far as possible, be conducive to the response speed promoting whole mobile terminal system.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
Claims (10)
1. a method for managing mobile terminal internal memory, is characterized in that, comprising:
Mobile terminal Monitoring instruction incoming event;
When monitoring the instruction incoming event for arranging camera menu, in memory headroom, create the user interface object of camera menu;
When monitoring the instruction incoming event exiting and arrange camera menu, from described memory headroom, delete the user interface object of described camera menu.
2. method according to claim 1, is characterized in that, described mobile terminal Monitoring instruction incoming event comprises:
Described mobile terminal calls the second process or the second thread Monitoring instruction incoming event that have created, and described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu.
3. method according to claim 1, is characterized in that, described mobile terminal Monitoring instruction incoming event comprises:
Described mobile terminal creates the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
4. method according to claim 3, is characterized in that, described mobile terminal creates the first thread or the first process comprises:
For the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
5. method according to claim 4, is characterized in that,
In the situation that described first thread is created, the described user interface object creating camera menu in memory headroom comprises: the user interface object creating camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
6. method according to claim 4, is characterized in that,
In the situation that described first process is created, the described user interface object creating camera menu in memory headroom comprises: the user interface object creating camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom.
7. a mobile terminal, is characterized in that, comprising:
Monitoring means, for Monitoring instruction incoming event;
Creating unit, creates the user interface object of camera menu in memory headroom during for monitoring the instruction incoming event for arranging camera menu when described monitoring means;
Delete cells, for deleting the user interface object of described camera menu from described memory headroom when described monitoring means monitors the instruction incoming event exiting and arrange camera menu.
8. mobile terminal according to claim 7, it is characterized in that, described monitoring means is specifically for calling the second process or the second thread Monitoring instruction incoming event that have created, and described second thread or the second process are that non-dedicated arranges the instruction incoming event of camera menu in detection or exits process or the thread of the instruction incoming event arranging camera menu;
Or,
Described monitoring means specifically for, create the first thread or the first process, call described first thread or the first monitoring the process instruction incoming event, wherein, described first thread or the first process are be exclusively used in detect arrange the instruction incoming event of camera menu or exit process or the thread of the instruction incoming event arranging camera menu.
9. mobile terminal according to claim 8, is characterized in that,
In establishment first thread or the first process, described monitoring means specifically for, for the first thread to be created or the first course allocation memory headroom, the described memory headroom distributed comprises stack district internal memory, heap district internal memory, global area internal memory and code area internal memory, in the described memory headroom distributed, create described first process or described first thread.
10. mobile terminal according to claim 9, it is characterized in that, in the situation that described first process is created, described creating unit is specifically for the user interface object that creates camera master menu and the auxiliary menu of camera in for described first course allocation memory headroom; Or create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom; Or the public memory headroom of system creates the user interface object of camera master menu, create the user interface object of the auxiliary menu of camera in for described first course allocation memory headroom;
Or in the situation that described first thread is created, described creating unit is specifically for creating the user interface object of camera master menu and the auxiliary menu of camera in for described first thread storage allocation space; Or create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu and the auxiliary menu of camera; Or, in the memory headroom of process belonging to described first thread, create the user interface object of camera master menu, and create the user interface object of the auxiliary menu of camera in for described first thread storage allocation space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510383139.3A CN104991829B (en) | 2015-06-30 | 2015-06-30 | Manage the method and relevant device of mobile terminal internal memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510383139.3A CN104991829B (en) | 2015-06-30 | 2015-06-30 | Manage the method and relevant device of mobile terminal internal memory |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104991829A true CN104991829A (en) | 2015-10-21 |
CN104991829B CN104991829B (en) | 2018-01-23 |
Family
ID=54303645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510383139.3A Expired - Fee Related CN104991829B (en) | 2015-06-30 | 2015-06-30 | Manage the method and relevant device of mobile terminal internal memory |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104991829B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402814A (en) * | 2017-07-07 | 2017-11-28 | 上海斐讯数据通信技术有限公司 | A kind of method and system for saving internal memory in embedded systems |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859261A (en) * | 2010-06-09 | 2010-10-13 | 中兴通讯股份有限公司 | Control method and control equipment for releasing memory |
US20120210337A1 (en) * | 2010-04-23 | 2012-08-16 | International Business Machines Corporation | Resource Affinity Via Dynamic Reconfiguration for Multi-Queue Network Adapters |
CN104503841A (en) * | 2014-12-15 | 2015-04-08 | 北京奇虎科技有限公司 | Process clearing method and process clearing device |
-
2015
- 2015-06-30 CN CN201510383139.3A patent/CN104991829B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120210337A1 (en) * | 2010-04-23 | 2012-08-16 | International Business Machines Corporation | Resource Affinity Via Dynamic Reconfiguration for Multi-Queue Network Adapters |
CN101859261A (en) * | 2010-06-09 | 2010-10-13 | 中兴通讯股份有限公司 | Control method and control equipment for releasing memory |
CN104503841A (en) * | 2014-12-15 | 2015-04-08 | 北京奇虎科技有限公司 | Process clearing method and process clearing device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402814A (en) * | 2017-07-07 | 2017-11-28 | 上海斐讯数据通信技术有限公司 | A kind of method and system for saving internal memory in embedded systems |
Also Published As
Publication number | Publication date |
---|---|
CN104991829B (en) | 2018-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102081502A (en) | Method for managing icons on standby interface of mobile terminal and mobile terminal | |
EP2869190A1 (en) | Method for starting activity of mobile terminal and the mobile terminal | |
CN104391621A (en) | Management operating method for application programs on mobile terminal | |
EP3349325A1 (en) | Charging method, charging device and terminal | |
CN106231074A (en) | A kind of method and device of Message Processing | |
CN103092808B (en) | A kind of collaborative share method | |
CN104424432A (en) | Information processing method and electronic device | |
CN106022108A (en) | Synchronous management method and terminal device | |
CN104731530A (en) | Mobile terminal and file management method applied to same | |
CN106776908A (en) | Data clearing method, device and terminal | |
CN108391097A (en) | A kind of video image method for uploading, device and computer storage media | |
CN106569917A (en) | Data backup method and mobile terminal | |
EP3832460A1 (en) | Method and apparatus for displaying application program, and terminal device | |
CN104184817A (en) | Download optimizing method and device and terminal | |
CN106126216A (en) | A kind of acceleration starting-up method based on Android system and system thereof | |
CN111857466B (en) | Message display method and device | |
CN108920704A (en) | File access pattern method, file restoring device and mobile terminal | |
CN104991829A (en) | Mobile terminal memory management method and related device | |
CN104424306A (en) | Method, device and terminal equipment for recording log | |
CN116886626A (en) | Service data flow limiting method and device, computer equipment and storage medium | |
CN106569848A (en) | Terminal and starting management method for application program thereof | |
CN105094844A (en) | Electronic photo album management method and mobile terminal | |
CN105183556A (en) | Resource management and control method for mobile terminal and related device | |
CN105138328A (en) | Phone yellow page control method and related equipment | |
CN105975853A (en) | Safe operation scene setting method and device and terminal |
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: 20180123 |