CN104360925B - Statistics application program uses the method and device of frequency - Google Patents

Statistics application program uses the method and device of frequency Download PDF

Info

Publication number
CN104360925B
CN104360925B CN201410677608.8A CN201410677608A CN104360925B CN 104360925 B CN104360925 B CN 104360925B CN 201410677608 A CN201410677608 A CN 201410677608A CN 104360925 B CN104360925 B CN 104360925B
Authority
CN
China
Prior art keywords
application program
window
user
moving component
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410677608.8A
Other languages
Chinese (zh)
Other versions
CN104360925A (en
Inventor
龚广
申迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410677608.8A priority Critical patent/CN104360925B/en
Publication of CN104360925A publication Critical patent/CN104360925A/en
Application granted granted Critical
Publication of CN104360925B publication Critical patent/CN104360925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of statistics application program and use the method and device of frequency, method therein includes: create view, all of touch screen event in monitoring system in described view;After receiving touch screen event, the moving component of inquiry top layer, obtain top layer moving component chained list;Analyze described chained list, determine that user actively clicks on and the moving component that starts, and calculate the time of staying on the application program that moving component that user clicks in described active is corresponding, and/or, determine the number of times of user launches application;Number of times according to user launches application and/or the time of staying on application program, the use frequency of statistics application program.According to the present invention program, can realize the most too much consuming cpu resource and can clearly judging whether application program is that user actively starts.

Description

Statistics application program uses the method and device of frequency
Technical field
The present invention relates to technical field of network security, be specifically related to a kind of statistics application program and use frequency Method and device.
Background technology
In order to maximally utilize limited mobile phone storage, prompting user unloads the application program of mobile phone being of little use (software) is a kind of effective method.In order to obtain the application list being of little use, need to add up hands The use frequency of machine application program.Due to the control of authority that Android (Android) sandbox is machine-processed and strict, A lot of system events, as activity (movable) startup, exit callback mechanism accordingly and notify Application program.The usual manner of a kind of use frequency adding up application program of mobile phone is to be obtained by poll Take the activity of top layer.This mode has two shortcomings: one is to ensure that accuracy, the most frequently Poll also causes the consumption of electricity while consuming cpu resource, two is that this method can not judge that certain should That user clicks on desktop icons and actively starts by program, or by other application program launchings or start from Start.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least partly Ground solves the method and device of the statistics application program use frequency of the problems referred to above.
According to one aspect of the present invention, it is provided that a kind of statistics application program uses the method for frequency, including: Create view, all of touch screen event in monitoring system in described view;After receiving touch screen event, look into Ask the moving component of top layer, obtain top layer moving component chained list;Analyze described chained list, determine user's actively point The moving component hit and start, and calculate the application that moving component that user clicks in described active is corresponding The time of staying in program, and/or, determine that user starts the number of times of described application program;According to user Start the number of times of application program and/or the time of staying on described application program, statistics application program Use frequency.
Preferably, described establishment view includes: creates view example, and arranges the window class of view example Type mark, window ID position and window size parameter.
Preferably, the window type mark of view example is set so that this window is positioned on general window; The window ID position of view example is set so that this window allows also to any pointer thing when there is no focus Part is sent to the window under this window or makes this window will not obtain focus or allow this window Mouth receives the click event being positioned at outside this window;Window size parameter is set so that window is invisible.
Preferably, by calling system interface, it is achieved the monitoring to touch screen events all in system.
Preferably, the touch screen event monitored refers to except when event outside front window.
Preferably, the described user of determination actively clicks on and the moving component that starts includes: obtain current active Assembly and the previous moving component of current active assembly;Type according to previous moving component judges Whether belong to multipad, if it is, determine that current active assembly is that user actively starts.
Preferably, calculate described on the application program that moving component that user clicks in described active is corresponding The time of staying include: according to record each touch screen event occur time top layer moving component, determine institute State all moving components of application program;By between the continuous print moving component of described application program time Between poor, calculate user's time of staying on described application program.
Preferably, also include: according to the use frequency of the application program counted, it is determined whether Xiang Yong Family is shown the prompting about described application program scheduled operation or determines whether to perform relevant described application program Operation.
Preferably, the described use frequency according to the application program counted, show relevant institute to user The prompting stating application program scheduled operation includes: for using the application program that frequency is low, show to user Unload the prompting of described application program;Or, for using the application program that frequency is high, show to user The prompting that described application program is upgraded.
Preferably, the described use frequency according to the application program counted, perform relevant described application The operation of program includes: for using the application program that frequency is low, stops and pushes extensively to described application program Accuse or notification message;Or, for using the application program that frequency is high, push wide to described application program Accuse or notification message.
According to another aspect of the present invention, it is provided that a kind of statistics application program uses the device of frequency, bag Include: view creating unit, be used for creating view;Monitoring unit, for monitoring system in described view In all of touch screen event;Chained list acquiring unit, after being used for receiving touch screen event, the activity of inquiry top layer Assembly, obtains top layer moving component chained list;Chained list analytic unit, is used for analyzing described chained list, determines user The moving component actively clicked on and start, and calculate the moving component correspondence that user clicks in described active Application program on the time of staying, and/or, determine the number of times of user launches application;Frequency is united Meter unit, was used for according to the number of times of user launches application and/or the time of staying on application program, The use frequency of statistics application program.
Preferably, described view creating unit specifically for: create view example, and view example be set Window type mark, window ID position and window size parameter.
Preferably, described view creating unit specifically for: arrange view example window type mark, This window is positioned on general window;The window ID position of view example is set so that this window does not has Allow also to any pointer event when having acquisition focus be sent to the window under this window or make this window Mouth will not obtain focus or allow this window to receive the click event being positioned at outside this window;And, Window size parameter is set so that window is invisible.
Preferably, described monitoring unit is for by calling system interface, it is achieved to touch screens all in system The monitoring of event.
Preferably, the touch screen event that described monitoring unit is monitored refers to except when event outside front window.
Preferably, described chained list analytic unit specifically for: obtain current active assembly and current active The previous moving component of assembly;Type according to previous moving component judges whether to belong to desktop application Program, if it is, determine that current active assembly is that user actively starts.
Preferably, described chained list analytic unit specifically for: according to record each touch screen event occur time Top layer moving component, determine all moving components of described application program;By described application program Time difference between continuous print moving component, calculates user's time of staying on described application program.
Preferably, also include: prompting operating unit, for the use according to the application program counted Frequency, it is determined whether show the prompting about described application program scheduled operation to user or determine whether to hold Row is about the operation of described application program.
Preferably, described prompting operating unit specifically for: for using the low application program of frequency, to User shows the prompting unloading described application program;Or, for using the application program that frequency is high, to User shows the prompting upgrading described application program.
Preferably, described prompting operating unit specifically for: for using the low application program of frequency, resistance Only to described application program advertisement or notification message;Or, for using the application program that frequency is high, To described application program advertisement or notification message.
Visible, the embodiment of the present invention is by realizing a stealthy view (view), supervises in this view All of touch event in Ore-controlling Role, removes to inquire about the Activity of top layer, so again after receiving touch event Can be obtained by the chained list of a top layer Activity;Analyze which activity this chained list can be obtained by It is that user actively clicks on startup and calculates user's time of staying on application program, thus finish-unification Count out the use frequency of application program.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention Art means, and can being practiced according to the content of description, and in order to allow, the present invention's is above and other Objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for this Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical parts.In the accompanying drawings:
Fig. 1 shows the method flow of statistics application program use frequency according to an embodiment of the invention Figure;And
Fig. 2 shows the apparatus structure of statistics application program use frequency according to an embodiment of the invention Schematic diagram.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Foregoing, although prior art can obtain the activity of top layer by poll thus add up The use frequency of application program, but the existence of this scheme consumes cpu resource in a large number, can not judge certain Whether application program is the shortcoming that user actively starts.To this end, the present invention proposes the system of a kind of different thinking The method that meter application program uses frequency, to realize the most too much consuming cpu resource and can clearly judging Whether application program is that user actively starts.
It will be appreciated by those skilled in the art that operating system includes application layer (app layer) and system framework layer (framework layer), as from function divide on likely include other layer of present invention do not beg for Opinion.Wherein, usual app layer can be understood as upper strata, is responsible for the interface mutual with user, such as, applies Identify different types of click on content when program maintenance and the click page thus show different contexts Menu etc..Generally framework layer as intermediate layer, the major responsibility of this layer is, is obtained by app layer User's request, preserve picture etc as started with program, clickthrough, click, forward toward lower floor Go;The content that lower floor is handled well, or by message, or by middle-agent's class, be distributed to Upper strata, shows user.
One preferred implementation of the present invention is, improves app layer and framework layer, thus sharp Realize statistics application program by the coordinated of this two-layer and use frequency.Concrete, it is possible to understand that the present invention Scheme is upper realized of fail-safe software (such as, mobile phone bodyguard, antivirus software etc.) at app layer Function, this fail-safe software needs to set up with framework layer to communicate, by monitoring institute on framework layer There is touch (touch screen) event, get the chained list of top layer Activity (moving component), final basis This Activity chained list counts the use frequency of each application program.
Seeing Fig. 1, a kind of statistics application program provided for the embodiment of the present invention uses the stream of method of frequency Cheng Tu.Wherein, arrange and the fail-safe software phase in application layer in the system framework layer of operating system Corresponding communication interface, described method includes:
S101: create view, in the view all of touch screen event in monitoring system;
S102: after receiving touch screen event, the moving component of inquiry top layer, obtain top layer moving component chained list;
S103: analyze chained list, determines the number of times of user launches application, and determines user's actively point The moving component hit and start, and estimate user at application program corresponding to the moving component actively clicked on On the time of staying, and/or, determine the number of times of user launches application;
S104: according to the number of times of user launches application and/or the time of staying on application program, The use frequency of statistics application program.
Generally, the embodiment of the present invention is by realizing a stealthy view (view), at this view All of touch event in middle monitoring system, removes to inquire about the Activity of top layer again after receiving touch event, So can be obtained by the chained list of a top layer Activity;Analyze which this chained list can be obtained by Activity is that user actively clicks on startup and calculates user's time of staying on application program, thus Finally count the use frequency of application program.
Details is realized the following detailed description of the embodiment of the present invention.
It will be appreciated by those skilled in the art that View is a class in Android, represent a side in UI Shape region, can do figure in View.View is base class, either a layout of all controls , or control (Widget) is all to be inherited from View class (Layout).In general, Android framework is View defines multiple different state, and the change of these state values can cause View associative operation.Wound When building a view, the window type mark that arranges for view, flag, size parameter etc. determine The feature of view.
In embodiments of the present invention, a view is first created.Wherein, the type of view is set to TYPE_PHONE.TYPE_PHONE is window type mark, is provided with the window of this mark by position On general window.The mark of view is set to FLAG_NOT_TOUCH_MODAL | FLAG_NOT_FOCUSABLE | FLAG_WATCH_OUTSIDE_TOUCH, these three is all Window ID position, wherein, FLAG_NOT_TOUCH_MODAL represents the window being provided with this mark Allow also to any pointer event when there is no focus and be sent to the window under this window; FLAG_NOT_FOCUSABLE represents that the window being provided with this mark will not obtain focus; FLAG_WATCH_OUTSIDE_TOUCH represents that the window being provided with this mark can receive and is positioned at Click event outside this window.The height and width of view are both configured to 0, height and width are both configured to 0, Represent that window is sightless, i.e. realize stealthy view.
Then monitoring ACTION_OUTSIDE event, ACTION_OUTSIDE represent current window it Outer event.
Go the activity inquiring about top layer to obtain the chained list of top layer Activity after receiving this event.
One typical Activity chained list example is as follows:
Ggong@ggong-pc :~$ adb logcat | grep-i touchmonitor
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:12touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:16touch postion:0.00.0top activity is com.qihoo.appstore
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:22touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:24touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:24touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:27touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:30touch postion:0.00.0top activity is com.qihoo360.smartkey
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:38touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:41touch postion:0.00.0top activity is com.qihoo.antivirus
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:49touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:40:56touch postion:0.00.0top activity is com.home1ink.android
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:41:09touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:41:12 touch postion:0.0 0.0 top activity is com.qihoo360.mobilesafe.opti.powerctl
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:41:16touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:41:20touch postion:0.00.0top activity is com.sec.android.app.launcher
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:41:22touch postion:0.00.0top activity is com.qihoo.browser
D/TouchMonitor(18683):ACTION_OUTSIDE occurred at 2014/07/18 11:41:26touch postion:0.00.0top activity is com.qihoo.browser
Analyzing this chained list and can be obtained by which activity is that user actively clicks on startup.
As shown in previous example, if previous activity is com.sec.android.app.launcher, then Current activity may determine that as user's actively startup.Wherein, " com.sec.android.app.launcher " is the bag name of mobile phone desktop application program, if previous Activity is desktop application, then may determine that current Activity is that user actively starts.
Visible, there is this chained list, we with counting user which application commonly used, and can be able to estimate User's time of staying in application-specific.
Wherein, the concrete principle estimating the time of staying and mode are: send out owing to have recorded each touch event Top layer activity time raw, which activity application program is known to one's name, continuous print can be had to belong to The Activity of oneself estimates the time of staying.
Still illustrate with activity example above, the activity of application program com.homelink.android Event occurred in the 11:40:56 moment, and after it, activity event occurred in the 11:41:09 moment, therefore might be used It is 11:41:09-11:40:56=to calculate the residence time of application program com.homelink.android 13 seconds.
Only clicking on screen in first time due to ACTION_OUTSIDE event is to be triggered, and clicks on After on screen slide will not trigger more ACTION_OUTSIDE event.It is visible, ACTION_OUTSIDE can't trigger when sliding, and only triggers once during screen sliding, and this mode is than frequency The more power saving of numerous poll.
After calculating user's time of staying on application program, making of application program can be counted Use frequency.Concrete mode is, in predetermined period of time, calculates the use time on application program, Then utilize use time and user to start the number of times of this application program, thus add up use frequency.One In the section time, the number of times of user starts application can calculate according to chained list.By starting application journey Sequence now and use application program temporal joint calculate use frequency be optimal case.Give an example, User uses wechat, and each time of staying may be the most comparatively short, and the number of times that every day starts is a lot, but always The time of staying may also be less than some ocr softwares, starts and once may just stop more than ten minute.But sentence It is set to the frequency using wechat and seems improper not as ocr software, should only not make by total residence time By frequency, change calculating use frequency by startup application program number of times and the time of staying into more reasonable.
Certainly, the above-mentioned number of times according to user launches application and the time of staying on application program this The mode of the use frequency of two key element statistics application programs is optimum way, in reality, and can be only according to The number of times of user launches application or one key element of the time of staying on application program are to using frequency Add up.Such as, for wechat and QQ, this two belongs to social type software, only by with Family starts the number of times of application program and is assured that use frequency;For another example, for ocr software and video Viewing class software, is assured that use frequency only by the time of staying on application program, etc..
In addition, it is necessary to explanation, " the use frequency of statistics application program " is at certain time or shape Carry out in the range of state.Such as, within the single available machine time, application program use frequency carry out Statistics;For another example, in the statistics that application program uses a consecutive days frequency carry out, etc..
After the use frequency counting application program, it is possible to use this frequency carries out certain to application program A little operations.Such as, according to the use frequency of the application program counted, it is determined whether show have to user Close the prompting of application program scheduled operation, or, it is determined whether perform the operation about application program.Its In, according to the use frequency of the application program counted, show the predetermined behaviour of relevant application program to user The prompting made includes but not limited to: for using the application program that frequency is low, shows unloading application to user The prompting of program, it will be understood that prompt the user with unloading and use the application program that frequency is minimum, save with this About memory space;Or, for using the application program that frequency is high, show application program is entered to user The prompting of row upgrading, it will be understood that for using the application program that frequency is high, upgrading in time contributes to using Family is experienced;Use frequency according to the application program counted, performs the operation bag about application program Include but be not limited to: for using the application program that frequency is low, stop to application program advertisement or notice Message, it will be understood that for using the application program that frequency is low, imitates to its advertisement or notification message Fruit is the most notable;Or, for using the application program that frequency is high, to application program advertisement or notice Message, it will be understood that for using the application program that frequency is high, imitates to its advertisement or notification message Fruit ratio is more significant.
Corresponding with said method, the present invention also provides for a kind of statistics application program and uses the device of frequency. This device can be realized by hardware, software or software and hardware combining mode.This device may refer in terminal The functional module in portion, it is also possible to refer to terminal itself, as long as terminal includes the function realizing this device.
Seeing Fig. 2, the statistics application program provided for the embodiment of the present invention uses the apparatus structure of frequency to illustrate Figure.This device includes:
View creating unit 201, is used for creating view;
Monitoring unit 202, for all of touch screen event in monitoring system in described view;
Chained list acquiring unit 203, after being used for receiving touch screen event, the moving component of inquiry top layer, is pushed up Layer is lived
Dynamic assembly chained list;
Chained list analytic unit 204, is used for analyzing described chained list, determines that user actively clicks on and the activity that starts Assembly, and when calculating user's stop on the application program that the moving component that described active is clicked on is corresponding Between, and/or, determine the number of times of user launches application;
Frequency statistics unit 205, for according to the number of times of user launches application and/or at application program On the time of staying, the use frequency of statistics application program.
Preferably, described view creating unit 201 specifically for: create view example, and view be set Window type mark, window ID position and the window size parameter of example.
Preferably, described view creating unit 201 specifically for: the window type mark of view example is set Know so that this window is positioned on general window;The window ID position of view example is set so that this window Mouth allows also to any pointer event when there is no focus and is sent to the window under this window or makes This window will not obtain focus or allow this window to receive the click event being positioned at outside this window;With And, window size parameter is set so that window is invisible.
Preferably, described monitoring unit 202 is for by calling system interface, it is achieved to all in system The monitoring of touch screen event.
Preferably, the touch screen event that described monitoring unit 202 is monitored refers to except when outside front window Event.
Preferably, described chained list analytic unit 204 specifically for: obtain current active assembly and current The previous moving component of moving component;Type according to previous moving component judges whether to belong to desktop Application program, if it is, determine that current active assembly is that user actively starts.
Preferably, described chained list analytic unit 204 specifically for: according to record each touch screen event send out Top layer moving component time raw, determines all moving components of described application program;By described application journey Time difference between the continuous print moving component of sequence, when calculating user's stop on described application program Between.
Preferably, described device also includes pointing out operating unit 206, for according to the application journey counted The use frequency of sequence, it is determined whether show the prompting about described application program scheduled operation or true to user The fixed operation whether performed about described application program.
Preferably, described prompting operating unit specifically for: for using the low application program of frequency, to User shows the prompting unloading described application program;Or, for using the application program that frequency is high, to User shows the prompting upgrading described application program;Or, for using the application journey that frequency is low Sequence, stops to described application program advertisement or notification message;Or, for using high the answering of frequency By program, to described application program advertisement or notification message.
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein Have relevant.Various general-purpose systems can also be used together with based on teaching in this.As described above, Construct the structure required by this kind of system to be apparent from.Additionally, the present invention is also not for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done language-specific above is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of not having these details.In some instances, not It is shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim The middle more feature of feature be expressly recited.More precisely, as the following claims reflect As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows Claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each right Requirement itself is all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit excludes each other, can use any combination that (this specification is included companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection With.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize according to this The statistics application program of inventive embodiments use the some or all parts in the device of frequency some or Person's repertoire.The present invention be also implemented as the part for performing method as described herein or Whole equipment or device program (such as, computer program and computer program).Such The program realizing the present invention can store on a computer-readable medium, or can have one or many The form of individual signal.Such signal can be downloaded from internet website and obtain, or at carrier signal Upper offer, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, And those skilled in the art can design replacement in fact without departing from the scope of the appended claims Execute example.In the claims, should not will be located in any reference marks between bracket to be configured to right is wanted The restriction asked.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at Word "a" or "an" before element does not excludes the presence of multiple such element.The present invention is permissible By means of including the hardware of some different elements and realizing by means of properly programmed computer.? If listing in the unit claim of equipment for drying, several in these devices can be by same Hardware branch specifically embodies.Word first, second and third use do not indicate that any order. Can be title by these word explanations.
The present invention provides following scheme:
A1, a kind of statistics application program use the method for frequency, including:
Create view, all of touch screen event in monitoring system in described view;
After receiving touch screen event, the moving component of inquiry top layer, obtain top layer moving component chained list;
Analyze described chained list, determine that user actively clicks on and the moving component that starts, and calculate user and exist The time of staying on application program corresponding to moving component that described active is clicked on, and/or, determine user Start the number of times of described application program;
Number of times according to user launches application and/or the time of staying on described application program, system The use frequency of meter application program.
A2, method as described in A1, described establishment view includes:
Create view example, and the window type mark, window ID position and the window that arrange view example are big Small parameter.
A3, method as described in A2,
The window type mark of view example is set so that this window is positioned on general window;
The window ID position of view example is set so that this window allows also to any finger when there is no focus Pin event is sent to the window under this window or makes this window will not obtain focus or allow This window receives the click event being positioned at outside this window;
Window size parameter is set so that window is invisible.
A4, method as described in A1, by calling system interface, it is achieved to touch screen things all in system The monitoring of part.
A5, method as described in A1, the touch screen event monitored refers to except when thing outside front window Part.
A6, method as described in A1, the moving component that the described user of determination actively clicks on and starts includes:
Obtain current active assembly and the previous moving component of current active assembly;
Type according to previous moving component judges whether to belong to multipad, if it is, really Settled front moving component is that user actively starts.
A7, method as described in A1, described in calculate the moving component pair that user clicks in described active The time of staying on application program answered includes:
Top layer moving component when each touch screen event according to record occurs, determines described application program All moving components;
By the time difference between the continuous print moving component of described application program, calculate user described The time of staying on application program.
A8, method as described in A1, also include:
Use frequency according to the application program counted, it is determined whether show to user and answer about described Pointing out or determining whether to perform the operation about described application program with program scheduled operation.
A9, method as described in A8,
The described use frequency according to the application program counted, shows relevant described application journey to user The prompting of sequence scheduled operation includes: for using the application program that frequency is low, shows that unloading is described to user The prompting of application program;Or, for using the application program that frequency is high, show to user and answer described The prompting upgraded is carried out by program.
A10, method as described in A8,
The described use frequency according to the application program counted, performs the behaviour about described application program Work includes: for using the application program that frequency is low, stop to described application program advertisement or notice Message;Or, for using the application program that frequency is high, to described application program advertisement or notice Message.
B11, a kind of statistics application program use the device of frequency, including:
View creating unit, is used for creating view;
Monitoring unit, for all of touch screen event in monitoring system in described view;
Chained list acquiring unit, after being used for receiving touch screen event, the moving component of inquiry top layer, obtain top layer and live Dynamic assembly chained list;
Chained list analytic unit, is used for analyzing described chained list, determines that user actively clicks on and the activity group that starts Part, and calculate the time of staying on the application program that moving component that user clicks in described active is corresponding, And/or, determine the number of times of user launches application;
Frequency statistics unit, for according to the number of times of user launches application and/or at application program The time of staying, the use frequency of statistics application program.
B12, device as described in B11, described view creating unit specifically for: create view example, And window type mark, window ID position and the window size parameter of view example are set.
B13, device as described in B12, described view creating unit specifically for: view example is set Window type mark so that this window is positioned on general window;The window ID of view example is set Position so that this window allows also to any pointer event and is sent to the window under this window when there is no focus Mouthful or make this window will not obtain focus or allow this window to receive to be positioned at outside this window Click event;And, window size parameter is set so that window is invisible.
B14, device as described in B11, described monitoring unit is for by calling system interface, it is achieved right The monitoring of all touch screen events in system.
B15, device as described in B11, the touch screen event that described monitoring unit is monitored refers to except when front Event outside window.
B16, device as described in B11, described chained list analytic unit specifically for: obtain current active group Part and the previous moving component of current active assembly;Type according to previous moving component judges No belong to multipad, if it is, determine that current active assembly is that user actively starts.
B17, device as described in B11, described chained list analytic unit is specifically for each according to record Top layer moving component when touch screen event occurs, determines all moving components of described application program;Pass through Time difference between the continuous print moving component of described application program, calculates user at described application program On the time of staying.
B18, device as described in B11, also include: prompting operating unit, for according to being counted The use frequency of application program, it is determined whether show carrying of relevant described application program scheduled operation to user Show or determine whether to perform the operation about described application program.
B19, device as described in B18, described prompting operating unit specifically for: for using frequency low Application program, show the prompting unloading described application program to user;Or, high for using frequency Application program, show, to user, prompting that described application program is upgraded.
B20, device as described in B18, described prompting operating unit specifically for: for using frequency low Application program, stop to described application program advertisement or notification message;Or, for using frequency The application program that rate is high, to described application program advertisement or notification message.

Claims (20)

1. the method that a statistics application program uses frequency, it is characterised in that including:
Create view, all of touch screen event in monitoring system in described view;
After receiving touch screen event, the moving component of inquiry top layer, obtain top layer moving component chained list;
Analyze described chained list, determine that user actively clicks on and the moving component that starts, and calculate user and exist The time of staying on application program that actively moving component of click is corresponding, and/or, determine that user starts The number of times of described application program;
Number of times according to user launches application and/or the time of staying on described application program, system The use frequency of meter application program.
2. the method for claim 1, it is characterised in that described establishment view includes:
Create view example, and the window type mark, window ID position and the window that arrange view example are big Small parameter.
3. method as claimed in claim 2, it is characterised in that
The window type mark of view example is set so that this window is positioned on other windows;
The window ID position of view example is set so that this window allows also to any finger when there is no focus Pin event is sent to the window under this window or makes this window will not obtain focus or allow This window receives the click event being positioned at outside this window;
The window size parameter of view example is set so that window is invisible.
4. the method for claim 1, it is characterised in that by calling system interface, it is achieved right The monitoring of all touch screen events in system.
5. the method for claim 1, it is characterised in that the touch screen event monitored refer to except Event outside current window.
6. the method for claim 1, it is characterised in that the described user of determination actively clicks on and opens Dynamic moving component includes:
Obtain current active assembly and the previous moving component of current active assembly;
Type according to previous moving component judges whether to belong to multipad, if it is, really Settled front moving component is that user actively starts.
7. the method for claim 1, it is characterised in that described in calculate user in described active The time of staying on application program corresponding to moving component clicked on includes:
Top layer moving component when each touch screen event according to record occurs, determines described application program All moving components;
By the time difference between the continuous print moving component of described application program, calculate user described The time of staying on application program.
8. the method for claim 1, it is characterised in that also include:
Use frequency according to the application program counted, it is determined whether show to user and answer about described Pointing out or determining whether to perform the operation about described application program with program scheduled operation.
9. method as claimed in claim 8, it is characterised in that
The described use frequency according to the application program counted, shows relevant described application journey to user The prompting of sequence scheduled operation includes: for using the application program that frequency is low, shows that unloading is described to user The prompting of application program;Or, for using the application program that frequency is high, show to user and answer described The prompting upgraded is carried out by program.
10. method as claimed in claim 8, it is characterised in that
The described use frequency according to the application program counted, performs the behaviour about described application program Work includes: for using the application program that frequency is low, stop to described application program advertisement or notice Message;Or, for using the application program that frequency is high, to described application program advertisement or notice Message.
11. 1 kinds of statistics application programs use the device of frequency, it is characterised in that including:
View creating unit, is used for creating view;
Monitoring unit, for all of touch screen event in monitoring system in described view;
Chained list acquiring unit, after being used for receiving touch screen event, the moving component of inquiry top layer, obtain top layer Moving component chained list;
Chained list analytic unit, is used for analyzing described chained list, determines that user actively clicks on and the activity group that starts Part, and calculate user's time of staying on the application program that the moving component actively clicked on is corresponding, and / or, determine the number of times of user launches application;
Frequency statistics unit, for according to the number of times of user launches application and/or at application program The time of staying, the use frequency of statistics application program.
12. devices as claimed in claim 11, it is characterised in that described view creating unit is specifically used In: create view example, and the window type mark, window ID position and the window that arrange view example are big Small parameter.
13. devices as claimed in claim 12, it is characterised in that described view creating unit is specifically used In: the window type mark of view example is set so that this window is positioned on other windows;Setting regards The window ID position of figure example so that this window allows also to any pointer event and sends when there is no focus To the window under this window or make this window will not obtain focus or allow this window to receive It is positioned at the click event outside this window;And, the window size parameter of view example is set so that window Mouth is invisible.
14. devices as claimed in claim 11, it is characterised in that described monitoring unit is for by adjusting With system interface, it is achieved the monitoring to touch screen events all in system.
15. devices as claimed in claim 11, it is characterised in that what described monitoring unit was monitored touches Screen event refers to except when event outside front window.
16. devices as claimed in claim 11, it is characterised in that described chained list analytic unit is specifically used In: obtain current active assembly and the previous moving component of current active assembly;According to previous work The type of dynamic assembly judges whether to belong to multipad, if it is, determine that current active assembly is User actively starts.
17. devices as claimed in claim 11, it is characterised in that described chained list analytic unit is specifically used In: top layer moving component when occurring according to each touch screen event of record, determine described application program All moving components;By the time difference between the continuous print moving component of described application program, calculate User's time of staying on described application program.
18. devices as claimed in claim 11, it is characterised in that also include: prompting operating unit, For the use frequency according to the application program counted, it is determined whether show to user and answer about described Pointing out or determining whether to perform the operation about described application program with program scheduled operation.
19. devices as claimed in claim 18, it is characterised in that described prompting operating unit is specifically used In: for using the application program that frequency is low, show the prompting unloading described application program to user;Or Person, for using the application program that frequency is high, shows carrying that described application program is upgraded to user Show.
20. devices as claimed in claim 18, it is characterised in that described prompting operating unit is specifically used In: for using the application program that frequency is low, stop to described application program advertisement or notification message; Or, for using the application program that frequency is high, to described application program advertisement or notification message.
CN201410677608.8A 2014-11-21 2014-11-21 Statistics application program uses the method and device of frequency Active CN104360925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410677608.8A CN104360925B (en) 2014-11-21 2014-11-21 Statistics application program uses the method and device of frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410677608.8A CN104360925B (en) 2014-11-21 2014-11-21 Statistics application program uses the method and device of frequency

Publications (2)

Publication Number Publication Date
CN104360925A CN104360925A (en) 2015-02-18
CN104360925B true CN104360925B (en) 2016-08-24

Family

ID=52528189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410677608.8A Active CN104360925B (en) 2014-11-21 2014-11-21 Statistics application program uses the method and device of frequency

Country Status (1)

Country Link
CN (1) CN104360925B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718529A (en) * 2016-01-15 2016-06-29 广东小天才科技有限公司 Method and device for pushing messages of application program on communication terminal
CN107306283B (en) * 2016-04-20 2020-01-07 中兴通讯股份有限公司 Data synchronization method and device
CN106919446A (en) * 2016-06-07 2017-07-04 阿里巴巴集团控股有限公司 The choosing method and device of destination application
US11409389B2 (en) 2016-07-07 2022-08-09 Universitat Zurich Method and computer program for monitoring touchscreen events of a handheld device
CN108052381B (en) * 2017-12-26 2020-10-09 深圳豪客互联网有限公司 Recommendation display control method and system
CN110333923B (en) * 2019-05-29 2023-06-06 努比亚技术有限公司 Screen recognition implementation method, terminal and computer readable storage medium
CN110298708B (en) * 2019-07-08 2020-10-27 广州华多网络科技有限公司 Method and system for determining unloading rate of application program
CN110990743B (en) * 2019-12-03 2023-11-14 支付宝(杭州)信息技术有限公司 Method and device for determining unloading rate of application program and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3943829B2 (en) * 2000-12-11 2007-07-11 株式会社リコー Printing condition setting device, printing device, printing system, and printing condition setting recording medium
CN102147732A (en) * 2011-05-18 2011-08-10 深圳市五巨科技有限公司 Method and device for automatically setting desktop shortcut keys on mobile terminal
CN103677777B (en) * 2012-09-19 2018-02-02 腾讯科技(深圳)有限公司 Call the method and device of application component

Also Published As

Publication number Publication date
CN104360925A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN104360925B (en) Statistics application program uses the method and device of frequency
US20150256423A1 (en) Data collection, aggregation, and analysis for parental monitoring
US20150379160A1 (en) Apparatus and methods for transferring focus control and related return content within a graphical user interface
CA2863781A1 (en) Mobile application daily user engagement scores and user profiles
EP3227777A1 (en) Application launching and switching interface
CN106470360B (en) Video player calling method and device
CN105450772B (en) Exempt from flow method for down loading and device
US20190121495A1 (en) Method and device for a guided application to enhance a user interface
CN103778012B (en) The method and device of change terminal operator's informaiton
CN110109598A (en) A kind of animation interaction implementation method, device and electronic equipment
CN103941964A (en) Information loading method based on desktop components and intelligent terminal
KR102413396B1 (en) Method for providing push service using webpush and electronic device supporting the same
US20140279060A1 (en) Systems and methods for a multi-channel, multi-touch marketing service
US20140289761A1 (en) Systems and Methods of Processing Data Involving Presentation of Information on Android Devices
KR102136205B1 (en) Privacy setting metadata for application developers
CN103064782A (en) Method and device for obtaining control
KR20150102395A (en) Smartphone use restrictions Systems
CN109117208A (en) Information sharing method, device, user terminal and readable storage medium storing program for executing
WO2017031008A1 (en) Aercloud application express and aercloud application express launcher
US20170060575A1 (en) Controlling repetitive check-in of intermediate versions of source code from a developer's computer to a source code repository
CN113934913A (en) Data capture method and device, storage medium and electronic equipment
CN106104475B (en) Method, computing device and storage medium for configuring application
EP3244338B1 (en) Requesting resource access permissions
KR20180017168A (en) Method and apparatus for classifying virtual activities of mobile users
CN106897202B (en) Method and apparatus for outputting data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right