CN104360931A - Method and device for displaying memory occupied by applications and mobile terminal - Google Patents

Method and device for displaying memory occupied by applications and mobile terminal Download PDF

Info

Publication number
CN104360931A
CN104360931A CN201410741882.7A CN201410741882A CN104360931A CN 104360931 A CN104360931 A CN 104360931A CN 201410741882 A CN201410741882 A CN 201410741882A CN 104360931 A CN104360931 A CN 104360931A
Authority
CN
China
Prior art keywords
application
committed memory
destination application
size
memory
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.)
Pending
Application number
CN201410741882.7A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410741882.7A priority Critical patent/CN104360931A/en
Publication of CN104360931A publication Critical patent/CN104360931A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for displaying memory occupied by applications, and a mobile terminal. The method for displaying memory occupied by applications comprises the following steps: confirming a target application program; acquiring the size of the memory occupied by the target application program; and displaying the size of the memory occupied by the target application program on a system desktop. By adopting the technical scheme of the invention, a user can conveniently check the size of the memory occupied by the target application program in real time without leaving or exiting the target application program in operation, and obtained data about the memory occupied by the target application program is relatively accurate.

Description

The display packing of application committed memory and device, mobile terminal
Technical field
The present invention relates to a kind of memory management technology, particularly relate to a kind of display packing and device, the mobile terminal of applying committed memory.
Background technology
Along with the development of science and technology, communication science and technology is maked rapid progress, and mobile communication mobile phone is widely used in daily life and study by people, and people use mobile communication mobile phone to converse, even video calling, note, and Internet chat is taken pictures.Become indispensable instrument in the modern life.
In current Android intelligent system, user wants the memory information checking application, mainly contains the following two kinds scheme: scheme one, and the memory size shared by application is checked in the setting that the system of entering carries; Scheme two, installs the application of third-party task manager in cell phone system, by opening the application of third-party task manager in system, entering this application with what check application memory and taking situation.
But, above-mentioned method two schemes existence true shortcoming as follows of checking the shared internal memory of application:
First: can not check real-time and easily.
When user checks internal memory shared by a certain application, need user away from keyboard or exit current application, then a new interface is opened, internal memory shared by a certain application can not be checked in real time, easily, for needing the user (such as developer, tester etc.) dynamically checking a certain application committed memory information in real time, Consumer's Experience is poor.
Second: the data obtained are not very accurate.
When user checks internal memory shared by the current application used, the current application used must be allowed temporarily to be withdrawn into backstage, internal memory so shared by current application likely can be fallen a part by system the automatic recovery, causes the memory size data obtained to be not just very accurate.
Therefore, a kind of display technique that can reflect application committed memory in real time is urgently provided, user is understood in a period of time in time using the size of application committed memory, make the data that obtain more accurate.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of display packing and device, the mobile terminal of applying committed memory, during for solving in prior art the memory size checked and use application, data are inaccurate, the problem that Consumer's Experience is poor.
For achieving the above object and other relevant objects, the invention provides a kind of display packing applying committed memory, comprising: determine destination application; Obtain the size of described destination application committed memory; The size of obtained destination application committed memory is shown in system desktop.
Optionally, before determining described destination application, also comprise: form the application list being in the application program of opening; Described destination application is arranged in described the application list.
Optionally, the size of described destination application committed memory is obtained with predetermined time interval.
Optionally, when the size of obtained destination application committed memory is shown in system desktop, the size of described destination application committed memory is shown on the precalculated position of described system desktop.
Accordingly, present invention also offers a kind of display device applying committed memory and comprise: target determination unit, for determining destination application; Internal memory acquiring unit, is connected with central processing unit and described target determination unit, for obtaining the size of described destination application committed memory; Information output unit, is connected with system desktop and described internal memory acquiring unit, for the size of obtained destination application committed memory is shown in system desktop.
Optionally, the display device of described application committed memory also comprises: list forming unit, is connected with central processing unit, for determining the application program being in opening, and forms the application list; The determined destination application of described target determination unit is arranged in described the application list.
Optionally, the display device of described application committed memory also comprises: timer, is connected with described internal memory acquiring unit, obtains the size of described destination application committed memory for triggering described internal memory acquiring unit with predetermined time interval.
Optionally, the display device of described application committed memory also comprises: position setting unit, is connected with described information output unit, for setting the display position being less than greatly described system desktop of described destination application committed memory.
Accordingly, present invention also offers a kind of mobile terminal, comprise the display device of above-mentioned arbitrary application committed memory.
As mentioned above, the display packing of application committed memory of the present invention, has following beneficial effect:
For selected destination application, obtain the size of destination application committed memory and be shown in system desktop.Thus when leaving or exit the current destination application run, facilitate the size of internal memory shared by user's real time inspection destination application.And, because destination application does not need to be withdrawn into backstage, the internal memory shared by destination application can not be caused to be fallen by system the automatic recovery, make the destination application committed memory size data that obtains more accurate.
Further, can the size of described destination application committed memory be shown on the precalculated position of described system desktop, facilitate user according to the display position using the size needing or check convenient change destination application committed memory, more meet individual user demand.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of the display packing of application committed memory of the present invention.
Fig. 2 is shown as the structural representation of an embodiment of the display device of application committed memory of the present invention;
Fig. 3 is shown as the structural representation of another embodiment of the display device of application committed memory of the present invention.
Element numbers explanation
The display device of 1 application committed memory
10 list forming units
11 target determination unit
13 internal memory acquiring units
15 information output units
17 timers
19 position setting units
21 central processing units
23 system desktop
S101 ~ S104 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Referring to Fig. 1, for the invention provides a kind of schematic flow sheet applying the display packing of committed memory, comprising:
Step S101, forms the application list being in the application program of opening;
Step S102, determines destination application, and described destination application is arranged in described the application list;
Step S103, obtains the size of described destination application committed memory with predetermined time interval;
Concrete, when obtaining size (corresponding to the above-mentioned steps S101-S103) of described destination application committed memory, can comprise the steps:
Create Activity Manager object;
Current the application list being in the application program of opening is obtained by get Running App the Processes () method of Activity Manager.
According to current the application list being in the application program of opening, obtain destination application PID.
Obtain memory information array Memory Info [] by get Process Memory Info (PID) of Activity Manager, thus therefrom can obtain size get Total Pss () of internal memory shared by destination application.
Concrete, when obtaining the size of described destination application committed memory with predetermined time interval, can go to obtain memory size information by startup Timer Task thread timing, then this information is updated on Memory View by Handler.
After step s 103, perform step S104, the size of obtained destination application committed memory is shown in system desktop.
Concrete, when performing step S104, can comprise the steps:
Create View for the size of display-object application program committed memory (such as, can be self-defined a Memory View, this View inherits in Relative Layout)
Build Window Manager object m Window Manager.
Set Layout Params to Memory View, if wish to make View be in (display and screen the top) on all application, then need setting Layout Params.type=Layout Params.TYPE_PHONE
Memory View is added to system desktop by m Window Manager.addView method.
It should be noted that, finally also need application system authority: android.permission.SYSTEM_ALERT_WINDOW.
In the present embodiment, when the size of obtained destination application committed memory is shown in system desktop, the size of described destination application committed memory is shown on the precalculated position of described system desktop.
Apply the display packing of committed memory in Fig. 1, for selected destination application, obtain the size of destination application committed memory and be shown in system desktop.Thus when leaving or exit the current destination application run, facilitate the size of internal memory shared by user's real time inspection destination application.And, because destination application does not need to be withdrawn into backstage, the internal memory shared by destination application can not be caused to be fallen by system the automatic recovery, make the destination application committed memory size data that obtains more accurate.
Refer to Fig. 2, be the structural representation of an embodiment of the display device 1 of application committed memory of the present invention, comprise:
Target determination unit 11, for determining destination application;
Internal memory acquiring unit 13, is connected with central processing unit 21 and described target determination unit 11, for obtaining the size of described destination application committed memory;
Information output unit 15, is connected with system desktop 23 and described internal memory acquiring unit 13, for the size of obtained destination application committed memory is shown in system desktop.
In the present embodiment, the display device 1 of described application committed memory also comprises timer 17, is connected with described internal memory acquiring unit 13, obtains the size of described destination application committed memory for triggering described internal memory acquiring unit 13 with predetermined time interval.
In the present embodiment, by the destination application that target determination unit 11 is selected, internal memory acquiring unit 13 obtains the size of destination application committed memory, then the size of destination application committed memory is shown in system desktop 23 by information output unit 15.Thus when leaving or exit the current destination application run, facilitate the size of internal memory shared by user's real time inspection destination application.And, because destination application does not need to be withdrawn into backstage, the internal memory shared by destination application can not be caused to be fallen by system the automatic recovery, make the destination application committed memory size data that obtains more accurate.
Referring to Fig. 3, is the structural representation of another embodiment of the display device 1 of application committed memory of the present invention.Compared with Fig. 2, the display device applying committed memory in Fig. 3 also comprises:
List forming unit 10, is connected with central processing unit 21, for determining the application program being in opening, and forms the application list; The determined destination application of described target determination unit 11 is arranged in described the application list.In the present embodiment, main object is to show the memory size shared by the application used.Before determining destination application, first determine the application program being in opening, thus facilitate user to screen destination application.
In other embodiments, the display device 1 applying committed memory in Fig. 3 also can comprise:
Position setting unit 19, is connected with described information output unit 15, for setting the display position being less than greatly described system desktop of described destination application committed memory.Thus enable user according to the display position using the size needing or check convenient change destination application committed memory, more meet individual user demand.
In addition, present invention also offers a kind of mobile terminal, comprise the display device of arbitrary above-mentioned application committed memory.
In sum, the display technique of the present invention's application committed memory can when leaving or exit the current destination application run, facilitate the size of internal memory shared by user's real time inspection destination application, and the destination application committed memory size data obtained is more accurate.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (9)

1. apply a display packing for committed memory, it is characterized in that, the display packing of described application committed memory comprises:
Determine destination application;
Obtain the size of described destination application committed memory;
The size of obtained destination application committed memory is shown in system desktop.
2. the display packing of application committed memory according to claim 1, is characterized in that: before determining described destination application, also comprise: form the application list being in the application program of opening; Described destination application is arranged in described the application list.
3. the display packing of application committed memory according to claim 1, is characterized in that: the size obtaining described destination application committed memory with predetermined time interval.
4. the display packing of application committed memory according to claim 1, it is characterized in that: when the size of obtained destination application committed memory is shown in system desktop, the size of described destination application committed memory is shown on the precalculated position of described system desktop.
5. apply a display device for committed memory, it is characterized in that: the display device of described application committed memory comprises:
Target determination unit, for determining destination application;
Internal memory acquiring unit, is connected with central processing unit and described target determination unit, for obtaining the size of described destination application committed memory;
Information output unit, is connected with system desktop and described internal memory acquiring unit, for the size of obtained destination application committed memory is shown in system desktop.
6. the display device of application committed memory according to claim 1, is characterized in that: the display device of described application committed memory also comprises:
List forming unit, is connected with central processing unit, for determining the application program being in opening, and forms the application list;
The determined destination application of described target determination unit is arranged in described the application list.
7. the display device of application committed memory according to claim 1, is characterized in that: the display device of described application committed memory also comprises:
Timer, is connected with described internal memory acquiring unit, obtains the size of described destination application committed memory for triggering described internal memory acquiring unit with predetermined time interval.
8. the display device of application committed memory according to claim 1, is characterized in that: the display device of described application committed memory also comprises:
Position setting unit, is connected with described information output unit, for setting the display position being less than greatly described system desktop of described destination application committed memory.
9. a mobile terminal, is characterized in that: the display device comprising the arbitrary described application committed memory of claim 5 to 8.
CN201410741882.7A 2014-12-08 2014-12-08 Method and device for displaying memory occupied by applications and mobile terminal Pending CN104360931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410741882.7A CN104360931A (en) 2014-12-08 2014-12-08 Method and device for displaying memory occupied by applications and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410741882.7A CN104360931A (en) 2014-12-08 2014-12-08 Method and device for displaying memory occupied by applications and mobile terminal

Publications (1)

Publication Number Publication Date
CN104360931A true CN104360931A (en) 2015-02-18

Family

ID=52528195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410741882.7A Pending CN104360931A (en) 2014-12-08 2014-12-08 Method and device for displaying memory occupied by applications and mobile terminal

Country Status (1)

Country Link
CN (1) CN104360931A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117275A (en) * 2015-07-27 2015-12-02 上海斐讯数据通信技术有限公司 Graphical process management device and method
CN105912450A (en) * 2016-04-13 2016-08-31 北京小米移动软件有限公司 Method and device for displaying state information of application
CN108073493A (en) * 2017-11-21 2018-05-25 北京奇虎科技有限公司 A kind of method and device of the display system data in interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN102566931A (en) * 2011-12-31 2012-07-11 奇智软件(北京)有限公司 Method and device for displaying suspended window
CN103365760A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Mobile terminal and method for displaying information
CN104065814A (en) * 2014-06-13 2014-09-24 北京金山安全软件有限公司 Information display method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN102566931A (en) * 2011-12-31 2012-07-11 奇智软件(北京)有限公司 Method and device for displaying suspended window
CN103365760A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Mobile terminal and method for displaying information
CN104065814A (en) * 2014-06-13 2014-09-24 北京金山安全软件有限公司 Information display method and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117275A (en) * 2015-07-27 2015-12-02 上海斐讯数据通信技术有限公司 Graphical process management device and method
CN105912450A (en) * 2016-04-13 2016-08-31 北京小米移动软件有限公司 Method and device for displaying state information of application
CN105912450B (en) * 2016-04-13 2019-12-13 北京小米移动软件有限公司 Application state information display method and device
CN108073493A (en) * 2017-11-21 2018-05-25 北京奇虎科技有限公司 A kind of method and device of the display system data in interface

Similar Documents

Publication Publication Date Title
WO2017121400A1 (en) Method, system and device for testing and readable storage medium
TWI671647B (en) Method, device and electronic device for calculating the duration of the first screen of a page
WO2021208512A1 (en) Method and apparatus for acquiring control information of user interface, terminal and storage medium
WO2016011027A1 (en) Method and apparatus of controlling a smart device
TWI671675B (en) Information display method and device
CN104808959B (en) Information processing method and electronic equipment
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
US9699247B2 (en) User experience monitoring for application remoting
CN104572086A (en) Method and system for acquiring FPS (Frames Per Second) value based on Android Device
CN104360931A (en) Method and device for displaying memory occupied by applications and mobile terminal
WO2016107229A1 (en) Icon displaying method and device, and computer storage medium
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN104156305A (en) Application program testing method and device
CN108845924B (en) Control response area display control method, electronic device, and storage medium
CA2965283C (en) Systems and methods of subject state change notification
CN103984478B (en) Dynamic icon displaying method and system
CN106919597B (en) Information recommendation method and device
CN107102937B (en) User interface testing method and device
TW201344557A (en) Apparatus and method for automatically controlling display screen density
CN105138458A (en) Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal
CN114021016A (en) Data recommendation method, device, equipment and storage medium
CN106951239B (en) Method and device for setting display of application program
EP3690675A1 (en) Method, apparatus, and storage medium for providing visual representation of set of objects
CN104978202A (en) Activity attribute extension method and apparatus
CN104915087A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150218

RJ01 Rejection of invention patent application after publication