CN106293445B - Method and device for acquiring application program use data and terminal equipment - Google Patents

Method and device for acquiring application program use data and terminal equipment Download PDF

Info

Publication number
CN106293445B
CN106293445B CN201510368584.2A CN201510368584A CN106293445B CN 106293445 B CN106293445 B CN 106293445B CN 201510368584 A CN201510368584 A CN 201510368584A CN 106293445 B CN106293445 B CN 106293445B
Authority
CN
China
Prior art keywords
time
app
terminal equipment
trigger event
duration
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
CN201510368584.2A
Other languages
Chinese (zh)
Other versions
CN106293445A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510368584.2A priority Critical patent/CN106293445B/en
Publication of CN106293445A publication Critical patent/CN106293445A/en
Application granted granted Critical
Publication of CN106293445B publication Critical patent/CN106293445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an acquisition method and device of application program use data and terminal equipment. The method for acquiring the application program use data comprises the following steps: acquiring a first trigger event; according to a first trigger event, starting from the screen lightening of the terminal equipment, reading system information once every other preset monitoring period and determining an APP in use according to the system information; and counting the use times, the accumulated use duration, the use time period and the use times and the use duration in each use time period of each APP within a preset time range according to the system time and the APP in use to obtain the use data of the application program. The invention periodically records the starting time, the ending time and the using time of the APP in use, improves the obtaining efficiency of the using data of the application program, and pushes the relevant information to the user by analyzing the using habit, the preference and the like of the user to the APP, so that the user obtains good user experience.

Description

Method and device for acquiring application program use data and terminal equipment
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method and a device for acquiring application program use data and terminal equipment.
Background
The Android system uses a statistical service (UsageStatsService) function to count the condition that a user uses each Application program (APP for short) on the terminal equipment, obtains the Application program use data, and stores the Application program use data in a "/data/system/usages" directory. The application usage data includes: time, duration, frequency, etc. of use of the respective APP by the user.
In the terminal device adopting the android system, only a system (system) application can acquire the application program use data, and a third-party application program has no right to directly call the use statistical service and access the "/data/system/usages" directory. For third-party applications, the "/data/system/usagstats" directory can only be accessed in the root state, and the application usage data under the directory is parsed, so that the acquisition of the application usage data is inefficient.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring application program use data and terminal equipment, and aims to improve the acquisition efficiency of the application program use data.
The embodiment of the invention provides a method for acquiring application program use data, which comprises the following steps:
acquiring a first trigger event, wherein the first trigger event is used for indicating the terminal equipment to light a screen;
reading system information once every other preset monitoring period from the start of the screen lightening of the terminal equipment according to the first trigger event, and determining an APP (application) used by a user according to the system information, wherein the system information comprises information of an APP positioned at the top of an operation time stack or information of an APP with the highest operation priority in the terminal equipment;
counting the use times, the accumulated use duration, the use time period of each APP within a preset time range and the use times and the use duration within each use time period according to the system time and the APP being used by the user, wherein the time period is a time segment of the preset duration so as to obtain the use data of the application program.
The embodiment of the invention provides a device for acquiring application program use data, which comprises:
the event acquisition module is used for acquiring a first trigger event, and the first trigger event is used for indicating the terminal equipment to light up;
the reading module is used for reading system information once every other preset monitoring period from the start of the screen lightening of the terminal equipment according to the first trigger event, and determining the APP used by a user according to the system information, wherein the system information comprises information of the APP positioned at the top of an operation time stack or information of the APP with the highest operation priority in the terminal equipment;
and the counting module is used for counting the use times, the accumulated use duration, the use time period and the use times and the use duration of each APP in a preset time range according to the system time and the APP in use by the user, wherein the time period is a time segment of preset duration so as to obtain the use data of the application program.
An embodiment of the present invention provides a terminal device, including: a processor and a memory; the processor is used for executing the method for acquiring the application program use data; the memory is used for storing instructions executable by the processor and application program use data.
According to the method, the device and the terminal equipment for acquiring the application program use data, the system information is read every other preset monitoring period, the APP in use is determined according to the system information, and the application program use data is acquired according to the system time and the APP in use, so that the acquisition efficiency of the application program use data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device to which the present invention is applied;
FIG. 2 is a flow chart of one embodiment of a method for obtaining application usage data in accordance with the present invention;
FIG. 3 is a schematic view of a bright screen of the terminal device;
FIG. 4 is a schematic diagram of an interface for a user to use APP;
FIG. 5 is a flow chart of another embodiment of a method for obtaining application usage data in accordance with the present invention;
FIG. 6 is a schematic diagram illustrating an embodiment of an apparatus for obtaining application usage data according to the present invention;
FIG. 7 is a schematic structural diagram of an apparatus for acquiring application usage data according to another embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an apparatus for acquiring application usage data according to another embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a fourth embodiment of an apparatus for acquiring application usage data according to the present invention;
fig. 10 is a block diagram showing a partial structure of a cellular phone related to a terminal device provided in an embodiment of the present invention.
Detailed Description
In order to solve the above problems, the present invention provides a new method for setting a pattern lock. In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic structural diagram of a terminal device applied in the present invention, and as shown in fig. 1, the terminal device of this embodiment may include: a processor 11, such as a Central Processing Unit (CPU), a memory 12, at least one communication bus 13, and an operating system 14 running on hardware. The communication bus 13 is used to realize communication connection between the elements. The Memory 12 may include a Random Access Memory (RAM) Memory, and may also include a NonVolatile Memory (NVM), such as at least one disk Memory, in which various programs may be stored for completing various processing functions and implementing the method steps of the embodiment.
It will be understood by those skilled in the art that the terminal device shown in fig. 1 may further include various other possible elements, such as an antenna, a wireless communication module, and the like, and the present invention is not limited thereto. Moreover, the terminal device of this embodiment may be, for example, a smart phone, a tablet computer, or other various terminal devices, and the present invention is not limited thereto. The terminal device may be set according to personal habits, for example, security settings (including screen locking password setting, screen locking time setting, and the like) and various Applications (APP) may also be installed on the terminal device, where the APP may be an Application carried by the terminal device when the terminal device leaves a factory or an Application installed on the terminal device by a user downloading from the internet, and the source and form of the APP are not limited in this embodiment. The relevant program code of the APP can be stored in the memory 12 of the terminal device shown in fig. 1.
When the user needs to count the APP information on the terminal device, the processor 11 may obtain the executable instruction from the memory 12, record the start time, end time and use duration of the APP, obtain the operation information of the user using the APP by counting the time information, and analyze the use habit, preference and the like of the user to the APP, so as to push the relevant information to the user, so that the user obtains good user experience.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart of an embodiment of a method for acquiring application usage data in the present invention, as shown in fig. 2, an execution main body of this embodiment may be the terminal device shown in fig. 1, and the terminal device implements statistics on APP usage by a user through the method of this embodiment, where the method of this embodiment may include:
step 101, acquiring a first trigger event, wherein the first trigger event is used for indicating the terminal equipment to light up;
in general, the terminal device is turned on, which means that a user clicks a relevant key on the terminal device, for example, an HOME key, and the screen of the terminal device is triggered to be turned on through the click operation, fig. 3 is a schematic diagram of the terminal device being turned on, as shown in fig. 3, after the terminal screen is turned on, the user can start an APP installed on a certain terminal device by clicking an icon on the screen, fig. 4 is a schematic diagram of an interface through which the user uses the APP, as shown in fig. 4, for example, the user is using a social APP, and at this time, what is displayed on the terminal device screen is the interface of the social APP. As long as a user starts to operate the terminal device, the terminal device needs to be awakened from a dormant state at first, the corresponding terminal device is changed from a black screen to a bright screen, and the terminal device acquires a trigger event which just indicates that the terminal device is bright.
102, according to the first trigger event, reading system information once every other preset monitoring period from the time when the terminal device is turned on, and determining an APP in use according to the system information, wherein the system information comprises information of APPs located at the top of an operation stack or operation priority of APPs in the terminal device;
in order to count the time, duration, frequency and the like of each APP used by a user, the terminal equipment starts monitoring from the moment of being lightened, and monitors periodically, wherein the preset monitoring period can be 1 second, 500 milliseconds and the like.
The terminal device determines the APP being used by the user every a preset monitoring period, for example, the user is using WeChat, QQ, reading APP and the like. In this embodiment, it may be considered that the APP in use is the APP displayed on the screen of the terminal device, and the terminal device reads the system information and determines which APP is on the screen of the terminal device according to the system information. The process of reading the system information by the terminal device may have the following specific implementation methods:
the first method comprises the following steps: the running time stack of the terminal equipment operating system is a data structure for recording the running state of the APP, and when a user uses a certain APP, the information of the APP is pressed into the stack top of the running time stack, so that the terminal equipment can acquire the information of the APP from the stack top of the running time stack, and the information of the APP corresponds to the APP which is being used. For the terminal device of the Android system, the method is suitable for the version before the 5.0 version of the Android system, in the version, Runningtask is the running time stack, and information of the APP which is in use in the monitoring period is located at the top of the Runningtask stack.
And the second method comprises the following steps: the running priority is also an identifier for recording the running state of the APPs in the terminal device operating system, when the APPs are being used, the running priority is highest, usually, a user may start a plurality of APPs when operating the terminal device, if the user does not perform the closing operation, the APPs are in the background of the terminal device except for the APPs in use, that is, only one APP in use by the user is in use, and the rest APPs are not closed, but are only in the background because the APPs are not used by the user. Therefore, the terminal device determines the APP corresponding to the highest priority level in the running priority levels of the operating system as the APP in use. For the terminal equipment of the Android system, the method is suitable for the version after the 5.0 version of the Android system, in the version, the current non-closed APP is obtained according to the running process, and then the import value of the non-closed APP is judged, wherein the import value indicates that the corresponding APP is the APP with the highest priority.
Each monitoring can correspond to a system time, for example, if the APP being used is started from the current preset monitoring period during monitoring, the start time of the APP can be recorded according to the system time, and if the APP being used is determined to have been started from the previous monitoring, the use time of the APP can be accumulated. The terminal device may record the monitored system time and the APP in use by using the date and the recording time as identifiers, and store the system time and the APP in use from the memory of the terminal device into the database at a first preset time, for example, at a certain time every day, or every other day, several hours, and report the system time and the APP in use to the server at a second preset time, or report the change of the APP in use as a condition for triggering reporting.
103, counting the use times, the accumulated use duration, the use time period of each APP within a preset time range and the use times and the use duration within each use time period according to the system time and the APP in use, wherein the time period is a time segment of the preset duration so as to obtain the use data of the application program.
When monitoring each time, the terminal device may record the start time, end time or use duration of the APP being used by the following method: if the APP in use is different from the APP in use during the last monitoring, recording the starting time of the monitoring as the starting time of the APP in use, and recording the use time of the APP in use as the time of a preset monitoring period; if the APP in use is the same as the APP in use during the last monitoring, accumulating the use duration of the APP in use by the duration of a preset monitoring period; if the APP in use is different from the APP in use in the next monitoring, the end time of the current monitoring is recorded as the end time of the APP in use.
For example, the number of the current monitoring is 2, the number of the previous monitoring is 1, and the number of the next monitoring is 3. The APP in use at the time 2 is different from the APP in use at the time 1, which indicates that the user has replaced the APP in use between the time 1 and the time 2, and then the APP in use, the starting time and the use duration of the APP need to be recorded again; the APP in use at the time 2 is the same as the APP in use at the time 1, which indicates that the APP in use by the user from the time 1 to the time 2 is not changed, and then the use duration of the APP in use only needs to be accumulated at the time 2; the APP in use at the time 2 is different from the APP in use at the time 3, which means that the APP in use is replaced by the user between the time 2 and the time 3, so that the end time of the APP in use needs to be recorded at the time 2, the use duration is accumulated, and the start time and the use duration of another APP are recorded from the time 3.
The terminal equipment accumulates the system time monitored each time and the APP in use, and counts the system time and the APP to obtain application program use data.
The system information is read once every preset monitoring period, the APP in use at least once at the monitoring time point can be determined, statistics is carried out according to the system time of the at least once monitoring time point and the APP in use, the statistical time can be certain fixed time every day and certain fixed date every month, summary is carried out on the system time recorded by previous monitoring and the APP in use at the statistical time, and therefore the number of times that each APP is used every day or every month and the accumulated use duration are obtained through statistics. For example, statistics are performed every morning zero to obtain the number of times of use, the accumulated time of use, which time period (which hours) of the day the WeChat, QQ, reading APP, browser and the like are used, the number of times of start and the time of use in each time period (each hour) respectively.
According to the embodiment, the system information is read every other preset monitoring period, the APP in use is determined according to the system information, the application program use data is obtained according to the system time and the APP in use through statistics, and the obtaining efficiency of the application program use data is improved.
Further, after the step 103, the method further includes: and acquiring a second trigger event, wherein the second trigger event is used for indicating the terminal equipment to blank the screen, and terminating reading the system information according to the second trigger event.
Generally, after a user does not operate the terminal device, the terminal device enters a screen locking state, the terminal device acquires another trigger event, the trigger event just indicates that the terminal device is in a black screen state, and the terminal device does not need to monitor according to the second trigger event, so that reading of system information can be stopped, running of a background program of the terminal device is reduced, and power consumption of the terminal device is reduced. Before the terminal device stops reading the system information, it needs to determine whether there is an APP in use when the terminal device is in a blank screen, for example, when the user is using the WeChat, the user needs to lock the screen to do other things, then when the terminal device is in a blank screen, the screen is still an interface of the WeChat, at this time, the time of the corresponding preset monitoring period when the screen is locked needs to be updated to the end time of the WeChat, and the use duration is accumulated.
Preferably, after acquiring the application program usage data, the terminal device may store the application program usage data in a database at a first preset time for long-term data storage, or report the application program usage data to the server at a second preset time, so that the server performs data accumulation and statistics.
Fig. 5 is a flowchart of another embodiment of the method for acquiring application usage data in the present invention, as shown in fig. 5, an execution main body of this embodiment may be the terminal device shown in fig. 1, and the terminal device implements statistics on APP usage by a user through the method of this embodiment, where the method of this embodiment may include, on the basis of the method shown in fig. 2:
step 201, recording the screen-on time of each terminal device according to a first trigger event;
202, counting the unlocking times and frequency of a user according to the screen lightening time of the terminal equipment at least once;
step 203, recording the time of each time of the terminal equipment screen blacking according to a second trigger event;
and 204, counting the screen locking times and frequency of the user according to the screen blacking time of the terminal equipment at least once.
The steps 201 and 203 and 204 record and count the time information of the bright screen and the black screen of the terminal device respectively, and there is no definite sequence between them. The bright screen of the terminal indicates that the user unlocks the terminal equipment, the black screen of the terminal indicates that the user locks the screen of the terminal equipment, and the degree of dependence of the user on the terminal equipment, the use habit and the like can be analyzed by counting the unlocking times and frequency of the user and the screen locking times and frequency of the user within a period of time (such as one day, several hours, half day and the like).
Fig. 6 is a schematic structural diagram of an embodiment of an apparatus for acquiring application usage data according to the present invention, and as shown in fig. 6, the apparatus of this embodiment may include: the device comprises an event acquisition module 21, a reading module 22 and a counting module 23, wherein the event acquisition module 21 is used for acquiring a first trigger event, and the first trigger event is used for indicating the terminal equipment to be on; a reading module 22, configured to read system information once every preset monitoring period from the time when the terminal device is turned on according to the first trigger event, and determine an APP being used according to the system information, where the system information includes information of APPs located at a stack top of an operation time stack or an operation priority of APPs in the terminal device; the counting module 23 is configured to count the number of times of use, the cumulative duration of use, the period of time of use, and the number of times of use and the duration of use in each APP within a preset time range according to the system time and the APP being used, where the period of time is a time segment of a preset duration to obtain application program use data.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of another embodiment of an apparatus for acquiring application usage data according to the present invention, as shown in fig. 7, the apparatus of this embodiment may further include, based on the apparatus structure shown in fig. 6: the module 24 is terminated. The event obtaining module 21 is further configured to obtain a second trigger event, where the second trigger event is used to indicate that the terminal device is blank; and a termination module 24, configured to terminate reading the system information according to the second trigger event.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of another embodiment of an apparatus for acquiring application usage data according to the present invention, as shown in fig. 8, the apparatus of this embodiment may further include, based on the apparatus structure shown in fig. 7: an unlocking statistical module 25 and a screen locking statistical module 26, wherein the unlocking statistical module 25 is configured to record, according to the first trigger event, the screen-on time of the terminal device each time; counting the unlocking times and frequency of a user according to the screen lightening time of the terminal equipment at least once; a screen locking counting module 26, configured to record, according to the second trigger event, a time for each time that the terminal device turns out to be black; and counting the screen locking times and frequency of the user according to the screen blacking time of the terminal equipment at least once.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a fourth embodiment of an apparatus for acquiring application program usage data according to the present invention, as shown in fig. 9, the apparatus of this embodiment may further include, based on the apparatus structure shown in fig. 6: a data processing module 27, configured to store the application usage data in a database at a first preset time; and reporting the application program use data to a server at a second preset time.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
The terminal device provided by the embodiment of the invention can be a mobile phone, a tablet Personal computer, a Personal Digital Assistant (Personal Digital Assistant, abbreviated as PDA) and the like, and takes the terminal device as the mobile phone as an example: fig. 10 is a block diagram showing a partial structure of a cellular phone related to a terminal device provided in an embodiment of the present invention. Referring to fig. 10, the cellular phone includes: a Radio Frequency (RF) circuit 10, a memory 20, an input unit 30, a display unit 40, a sensor 50, an audio circuit 60, a wireless fidelity (WiFi) module 70, a processor 80, and a power supply 90. Those skilled in the art will appreciate that the handset configuration shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 10:
the RF circuit 10 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 80; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 10 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short message Service (Short Messaging Service: SMS), etc.
The memory 20 may be used to store software programs and modules, and the processor 80 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 30 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 30 may include a touch panel 31 and other input devices 32. The touch panel 31, also called a touch screen, may collect touch operations of a user on or near the touch panel 31 (for example, operations of the user on or near the touch panel 31 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 31 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 80, and can receive and execute commands sent by the processor 80. In addition, the touch panel 31 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 30 may include other input devices 32 in addition to the touch panel 31. In particular, other input devices 32 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 40 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 40 may include a Display panel 41, and optionally, the Display panel 41 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 31 may cover the display panel 41, and when the touch panel 31 detects a touch operation on or near the touch panel 31, the touch operation is transmitted to the processor 80 to determine the type of the touch event, and then the processor 80 provides a corresponding visual output on the display panel 41 according to the type of the touch event. Although the touch panel 31 and the display panel 41 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 31 and the display panel 41 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 50, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 41 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 41 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 60, speaker 61, microphone 62 may provide an audio interface between the user and the handset. The audio circuit 60 may transmit the electrical signal converted from the received audio data to the speaker 61, and the electrical signal is converted into a sound signal by the speaker 61 and output; on the other hand, the microphone 62 converts the collected sound signal into an electric signal, which is received by the audio circuit 60 and converted into audio data, which is then processed by the audio data output processor 80 and then transmitted to, for example, another cellular phone via the RF circuit 10, or the audio data is output to the memory 20 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through WiFi module 70, which provides wireless broadband internet access for the user. Although the WiFi module 70 is illustrated, it is understood that it does not belong to the essential constitution of the handset and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 80 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the mobile phone. Alternatively, processor 80 may include one or more processing units; preferably, the processor 80 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 80.
The handset also includes a power supply 90 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 80 via a power management system, so that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 80 included in the terminal device further has the following functions: acquiring a first trigger event, wherein the first trigger event is used for indicating the terminal equipment to light a screen; reading system information once every other preset monitoring period from the start of the screen lightening of the terminal equipment according to the first trigger event, and determining the APP in use according to the system information, wherein the system information comprises information of the APP positioned at the top of an operation time stack or the operation priority of the APP in the terminal equipment; counting the use times, the accumulated use duration, the use time period of each APP within a preset time range and the use times and the use duration within each use time period according to the system time and the APP in use, wherein the time period is a time segment of the preset duration so as to obtain the use data of the application program.
For how the mobile phone sets the pattern lock when the terminal device of the present invention is the mobile phone, reference may be made to the detailed description of the embodiment of the method for setting the pattern lock, which is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A method for obtaining application usage data, comprising:
acquiring a first trigger event, wherein the first trigger event is used for indicating the terminal equipment to light a screen;
reading system information once every other preset monitoring period from the start of the screen lightening of the terminal equipment according to the first trigger event, and determining an APP (application) used by a user according to the system information, wherein the system information comprises information of an APP positioned at the top of an operation time stack or information of an APP with the highest operation priority in the terminal equipment;
counting the use times, the accumulated use duration, the use time period of each APP within a preset time range and the use times and the use duration within each use time period according to the system time and the APP in use by the user, wherein the time period is a time segment of the preset duration so as to obtain the use data of the application program;
if a first APP in use by the user during the current monitoring is different from a second APP in use by the user during the last monitoring, recording the end time of the last monitoring as the end time of the second APP, recording the start time of the current monitoring as the start time of the first APP, and recording the use time of the first APP as the time of a preset monitoring period;
if the first APP is the same as the second APP, accumulating the use duration of the first APP by the duration of a preset monitoring period;
and acquiring a second trigger event, wherein the second trigger event is used for indicating the terminal equipment to blank the screen, and terminating reading the system information according to the second trigger event.
2. The method of claim 1, further comprising:
recording the screen lightening time of the terminal equipment every time according to the first trigger event;
and counting the unlocking times and frequency of the user according to the screen lightening time of the terminal equipment at least once.
3. The method of claim 1, further comprising:
recording the time of each time of the terminal equipment screen blacking according to the second trigger event;
and counting the screen locking times and frequency of the user according to the screen blacking time of the terminal equipment at least once.
4. The method according to claim 1, wherein the counting, according to the system time and the APPs being used by the user, the number of times of use, the cumulative duration of use, the period of use, and the number of times of use and the duration of use in each of the periods of use within a preset time range, where the period is a time segment of a preset duration, to obtain the application use data, further comprises:
and storing the application program use data into a database at a first preset time.
5. The method according to claim 1, wherein the counting, according to the system time and the APPs being used by the user, the number of times of use, the cumulative duration of use, the period of use, and the number of times of use and the duration of use in each of the periods of use within a preset time range, where the period is a time segment of a preset duration, to obtain the application use data, further comprises:
and reporting the application program use data to a server at a second preset time.
6. An apparatus for acquiring application usage data, comprising:
the event acquisition module is used for acquiring a first trigger event, and the first trigger event is used for indicating the terminal equipment to light up; acquiring a second trigger event, wherein the second trigger event is used for indicating the terminal equipment to be in a black screen state;
the reading module is used for reading system information once every other preset monitoring period from the start of the screen lightening of the terminal equipment according to the first trigger event, and determining the APP used by a user according to the system information, wherein the system information comprises information of the APP positioned at the top of an operation time stack or information of the APP with the highest operation priority in the terminal equipment;
the counting module is used for counting the use times, the accumulated use duration and the use time period of each APP within a preset time range according to the system time and the APP in use by the user, and the use times and the use duration within each use time period, wherein the time period is a time segment of the preset duration so as to obtain the use data of the application program; if a first APP in use by the user during the current monitoring is different from a second APP in use by the user during the last monitoring, recording the end time of the last monitoring as the end time of the second APP, recording the start time of the current monitoring as the start time of the first APP, and recording the use time of the first APP as the time of a preset monitoring period; if the first APP is the same as the second APP, accumulating the use duration of the first APP by the duration of a preset monitoring period; and
and the termination module is used for terminating the reading of the system information according to the second trigger event.
7. The apparatus of claim 6, further comprising:
the unlocking counting module is used for recording the screen lightening time of the terminal equipment every time according to the first trigger event; and counting the unlocking times and frequency of the user according to the screen lightening time of the terminal equipment at least once.
8. The apparatus of claim 6, further comprising:
the screen locking counting module is used for recording the time of screen blacking of the terminal equipment every time according to the second trigger event; and counting the screen locking times and frequency of the user according to the screen blacking time of the terminal equipment at least once.
9. The apparatus of claim 6, further comprising:
and the data processing module is used for storing the application program use data into a database at a first preset time.
10. The apparatus of claim 9, wherein the data processing module is further configured to report the application usage data to a server at a second predetermined time.
11. A terminal device, comprising: a processor and a memory; wherein the processor is configured to perform the method of any one of claims 1-5; the memory is used for storing instructions executable by the processor and application program use data.
12. A computer storage medium storing computer readable instructions that can cause one or more processors to perform the method of any one of claims 1-5.
CN201510368584.2A 2015-06-29 2015-06-29 Method and device for acquiring application program use data and terminal equipment Active CN106293445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510368584.2A CN106293445B (en) 2015-06-29 2015-06-29 Method and device for acquiring application program use data and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510368584.2A CN106293445B (en) 2015-06-29 2015-06-29 Method and device for acquiring application program use data and terminal equipment

Publications (2)

Publication Number Publication Date
CN106293445A CN106293445A (en) 2017-01-04
CN106293445B true CN106293445B (en) 2021-03-23

Family

ID=57651183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510368584.2A Active CN106293445B (en) 2015-06-29 2015-06-29 Method and device for acquiring application program use data and terminal equipment

Country Status (1)

Country Link
CN (1) CN106293445B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815025A (en) * 2017-01-17 2017-06-09 广东欧珀移动通信有限公司 Sensing data report method and device
CN107092520B (en) * 2017-04-18 2019-07-19 Oppo广东移动通信有限公司 Recommended method, device, storage medium and the mobile terminal of application program
CN106911537A (en) * 2017-04-19 2017-06-30 深圳天珑无线科技有限公司 Information collecting method and information collecting device
CN107133172A (en) * 2017-05-02 2017-09-05 北京小米移动软件有限公司 The power consumption detection method and device of application program
CN107122284A (en) * 2017-05-04 2017-09-01 广州优视网络科技有限公司 Using monitoring method, device, electronic equipment and storage medium
CN107291328B (en) * 2017-05-27 2020-05-26 Oppo广东移动通信有限公司 Interface display method and related product
CN107302633B (en) * 2017-06-30 2020-05-12 Oppo广东移动通信有限公司 Application control method, device, storage medium and electronic equipment
CN107613145B (en) * 2017-10-20 2020-02-28 维沃移动通信有限公司 Screen unlocking method and mobile terminal
CN108509261B (en) * 2018-03-07 2022-04-15 海信视像科技股份有限公司 Method and device for setting object in terminal equipment and terminal equipment
CN110515791A (en) * 2018-05-21 2019-11-29 珠海格力电器股份有限公司 A kind of data interactive method, equipment and computer can storage mediums
CN109240779A (en) * 2018-08-03 2019-01-18 闻泰通讯股份有限公司 Time management system, method and the mobile terminal of mobile terminal
CN109165145A (en) * 2018-09-11 2019-01-08 北京奇安信科技有限公司 A kind of the service condition statistical method and device of application program
CN109299054B (en) * 2018-09-30 2020-09-15 维沃移动通信有限公司 Data statistical method and terminal equipment
CN111352793A (en) * 2018-12-24 2020-06-30 中移(杭州)信息技术有限公司 Method and device for monitoring application use data
CN113016169A (en) * 2019-01-15 2021-06-22 深圳市欢太科技有限公司 Information pushing method and related product
CN110070468A (en) * 2019-03-30 2019-07-30 程慧玲 A kind of cell phone software behavioral data extraction system
CN110618913A (en) * 2019-09-18 2019-12-27 青岛海信移动通信技术股份有限公司 Application use duration segmented statistics method and terminal
CN110677285A (en) * 2019-09-24 2020-01-10 京信通信系统(中国)有限公司 Parent management method, device, communication equipment and storage medium
CN112799746A (en) * 2019-11-14 2021-05-14 青岛海信移动通信技术股份有限公司 Communication terminal and terminal data processing method
CN113127751B (en) * 2019-12-30 2023-10-27 中移(成都)信息通信科技有限公司 User portrait construction method, device, equipment and computer readable storage medium
CN111857476B (en) * 2020-07-17 2022-07-08 维沃移动通信有限公司 Display method and device and electronic equipment
CN112068947A (en) * 2020-09-23 2020-12-11 深圳市欢太科技有限公司 Application program entering method and device, terminal equipment and computer readable medium
CN112564987B (en) * 2020-12-29 2023-09-22 中国联合网络通信集团有限公司 Service data configuration method, network system, network element and data storage system
CN113791881B (en) * 2021-08-10 2023-10-03 浪潮金融信息技术有限公司 Periodic task processing method, system and medium
CN115079959B (en) * 2022-07-26 2023-06-09 荣耀终端有限公司 File management method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852538A (en) * 2005-10-25 2006-10-25 华为技术有限公司 Method and apparatus for monitoring and updating software in apparatus management
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752447A (en) * 2012-06-08 2012-10-24 广东欧珀移动通信有限公司 Method for calculating using frequency of application program based on mobile phone side
CN104239179B (en) * 2013-06-13 2019-01-08 中兴通讯股份有限公司 A kind of terminal and its method for realizing application management
CN104166696B (en) * 2014-08-01 2018-07-27 小米科技有限责任公司 Application program method for pushing and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852538A (en) * 2005-10-25 2006-10-25 华为技术有限公司 Method and apparatus for monitoring and updating software in apparatus management
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal

Also Published As

Publication number Publication date
CN106293445A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106293445B (en) Method and device for acquiring application program use data and terminal equipment
CN107146616B (en) Equipment control method and related product
CN107272872B (en) Power saving control method and related product
CN108112063B (en) Power management method, power management device, terminal and readable storage medium
CN105830016B (en) Power management method and power management device for user equipment
CN112560001B (en) Method for managing application program use time offline and terminal equipment
CN103455407A (en) Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal
CN107172267B (en) Fingerprint identification control method and related product
CN107634952B (en) Method and device for determining brushing amount resource, service equipment, mobile terminal and storage medium
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN107329778B (en) System updating method and related product
CN108966317B (en) Network searching method based on mobile terminal and mobile terminal
CN105303361B (en) Alarm clock adjusting method and device and terminal
CN107715449B (en) Account login method and related equipment
CN106331370A (en) Data transmission method and terminal device
CN110798511B (en) Method for predicting number of daily active users of target APP and computer equipment
WO2015007145A1 (en) Method and device for ascertaining required charging time
WO2014206295A1 (en) Method, device and computer-readable storage medium for monitoring uninstallation event in operation platform
CN106095566B (en) Response control method and mobile terminal
CN104573437A (en) Information authentication method, device and terminal
CN110741346B (en) Application management method and terminal
CN111966373B (en) APN resetting method, terminal equipment and storage medium
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant