CN112130854B - Method for detecting keywords of probe system by IPTV - Google Patents

Method for detecting keywords of probe system by IPTV Download PDF

Info

Publication number
CN112130854B
CN112130854B CN202010941285.4A CN202010941285A CN112130854B CN 112130854 B CN112130854 B CN 112130854B CN 202010941285 A CN202010941285 A CN 202010941285A CN 112130854 B CN112130854 B CN 112130854B
Authority
CN
China
Prior art keywords
button
reporting
parameters
collection
data
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
CN202010941285.4A
Other languages
Chinese (zh)
Other versions
CN112130854A (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.)
Haikan Network Technology Shandong Co ltd
Original Assignee
Haikan Network Technology Shandong 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 Haikan Network Technology Shandong Co ltd filed Critical Haikan Network Technology Shandong Co ltd
Priority to CN202010941285.4A priority Critical patent/CN112130854B/en
Publication of CN112130854A publication Critical patent/CN112130854A/en
Application granted granted Critical
Publication of CN112130854B publication Critical patent/CN112130854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method for detecting keywords of a probe system by IPTV, which combines the life cycle of Android Activity, and when a user clicks a button of a specific type, the corresponding behavior and parameters thereof are reported to a data server through an agent monitor. The method realizes the function of collecting important operation behaviors of users, adopts a light-granularity collection principle on the collection range, reduces unnecessary data summarization, simplifies the data collection process by enumerating the main operation behaviors, reduces the application resource consumption, and in the realization process, the collection time, the collection content and the reporting process in the collection process are processed by interface base class BaseActivity and proxy class in a contract and proxy agent mode, so that the originally divided business logic is concentrated, and the maintenance cost of version iteration is reduced.

Description

Method for detecting keywords of probe system by IPTV
Technical Field
The invention relates to the technical field of network televisions, in particular to a method for detecting keywords of a probe system by IPTV.
Background
In recent years, IPTV has been rapidly developed. IPTV is developed from a traditional media platform to a systematic IPTV ecological ring, and the ecological ring comprises a plurality of business fields of electronic commerce, information media, game entertainment, training teaching, physical fitness and the like. With the great increase of network bandwidth, video becomes the most important information carrier after voice, which will bring about the service direction of IPTV, convert the potential customer quantity and bring new opportunities for the further development of IPTV.
As the amount of users increases, the amount of user churne for various applications increases accordingly. How to save the users and reduce the loss of the users becomes one of the final targets of each application. By recording the use behaviors of the user, the use habits of the user are analyzed, and reasonable designated data are provided for application operation, so that the method becomes an important means for improving application experience and reducing user loss.
Collecting user behavior includes at least which behaviors to collect and how to collect two basic questions. The granularity of the collection behavior often depends on the actual operational needs, with finer behavior collection including all operational details of the user, such as at which interface, at which interface element, which operations were performed. While coarse behavior collection refers to behavior that includes important operational nodes, such as when the interface jumps, causes important traffic (payments, etc.), etc. The finer the granularity of collection, the more data the application reports to the server, and the higher the requirements of the corresponding data analysis system.
And in the Android native development environment, collecting important operation nodes of a user, and uploading core data to a data server. The specific reporting scene comprises the following steps: application entry, page browsing, content playing, program collection, product ordering, etc. How to collect valid information in such an environment and avoid code dispersion in the process to reduce the amount of modification in version iteration is a problem to be solved.
Disclosure of Invention
In order to overcome the defects, the invention aims to provide a method for detecting keywords of a probe system of an IPTV.
The technical scheme adopted for solving the technical problems is as follows: a method for IPTV to detect the key words of the probe system combines the life cycle of Android Activity, and when a user clicks a button of a specific type, the corresponding behavior and parameters thereof are reported to a data server through an agent monitor. The method comprises the following specific steps:
s1, agreeing a non-repeated digital identifier for each reporting scene, and agreeing a corresponding parameter name for the parameter of each scene;
s2, providing a button container in the interface base class BaseActivity, wherein the button container is used for storing all buttons which are possibly triggered to report on a current interface, each button container is a key-value key value pair set, a key represents a button, a value represents an uploaded parameter, and the parameter is a character string in a standard json format;
s3, setting corresponding digital identifications for buttons of the current interface by interface subclasses, collecting corresponding reporting parameters, assembling the parameters according to agreed parameter names, converting the parameters into json character strings, and finally adding the information into a button container;
s4, traversing a button container after the interface is loaded in the interface base class BaseActivity, namely when onResume () is executed for the first time, and executing the following corresponding logic for each button;
s5, acquiring an original monitoring object of the button through a reflection mechanism;
s6, creating a static proxy object for the monitoring object, wherein the proxy object adds a function of reporting data besides the original key function;
s7, when the proxy object executes reporting, firstly acquiring a digital identifier of a button, and acquiring corresponding reporting parameters from a button list through the button;
s8, the proxy object inserts the button type into the report parameters and uploads the parameters to the data server through the OkHttpClient.
The invention has the following beneficial effects: the method realizes the function of collecting important operation behaviors of users, adopts a light-granularity collection principle on the collection range, reduces unnecessary data summarization, simplifies the data collection process by enumerating the main operation behaviors, reduces the application resource consumption, and in the realization process, the collection time, the collection content and the reporting process in the collection process are processed by interface base class BaseActivity and proxy class in a contract and proxy agent mode, so that the originally divided business logic is concentrated, and the maintenance cost of version iteration is reduced.
Drawings
FIG. 1 is a call timing diagram of the present invention.
FIG. 2 is a flow chart of the reflection acquisition of the original monitor object and replacement of the original monitor object.
Detailed Description
The invention will now be described in further detail with reference to the accompanying drawings.
The method for detecting the keywords of the probe system by the IPTV as shown in fig. 1 and 2 comprises the following steps:
step 1, after the initialization of the basic content of the page is finished, namely, when onResume () of the Activity life cycle starts, relevant report information of the page is prepared, and the step is realized in an interface base class BaseActivity;
step 2, the interface base class triggers interface subclasses to collect reporting information by calling a template method, and a specific collecting process is completed by the subclasses;
step 3, the subclass completes a specific collecting process, and specifically comprises the following sub-steps:
and 3.1, setting a corresponding data identifier for a button which possibly triggers reporting in the current interface.
Step 3.2, collecting data parameters required by reporting, wherein the data parameters relate to specific reporting scenes, such as user account information, id numbers of playing contents, id numbers of ordered products and the like, and the reporting parameters are firstly stored in a Map set and then converted into json character strings;
and 3.3, storing the buttons and the corresponding json character strings into the button set.
Step 4, after the step is finished and before onResume () is finished, the reported buttons are required to be triggered, and after the logic of the reported data is added to the processing logic of the buttons, the button set is traversed firstly to acquire each button;
step 5, obtaining the click monitoring object bound with the button through reflection, as shown in fig. 2;
step 6, creating a proxy object attached with a data reporting function according to the obtained clicked monitoring object and related parameters, and setting the proxy object as a monitoring object of a button to obtain the original monitoring object through reflection and replace the original monitoring object, as shown in fig. 2;
step 7, ending the onResume life cycle;
step 8, when clicking the trigger button, clicking will execute the proxy class monitoring method because the button monitoring object is changed in step 6;
step 9, the monitoring method of the proxy class firstly executes the original monitoring processing logic of the button;
and step 10, executing logic of data reporting by the proxy class.
Specifically, in the step 5, the method for obtaining the original monitoring object by reflection and replacing the original monitoring object is as follows:
step 5.1, obtaining a getListenerInfo () method object through a getDeclarledMethod () of a Class object of View.
And 5.2, setting access rights for the method object obtained in the step 5.1.
Step 5.3, executing the method object obtained in the step 5.1, and obtaining a ListenInfo object of the button;
step 5.4, obtaining a Class object of the internal Class ListenerInfo of View;
step 5.5, obtaining an mOnClickListener field object through the Class object obtained in the step 5.4;
step 5.6, setting access rights for the field objects obtained in the step 5.6;
step 5.7, obtaining the value of mOnClickListener of the ListenInfo, namely the original click monitoring object of the button through the click monitoring field object obtained in step 5.5 and the ListenInfo object obtained in step 5.3.
Specifically, the method for acquiring the original monitoring object by replacing reflection comprises the following steps:
step 5.8, creating a proxy object by clicking the monitoring object in the original mode, which is obtained in the step 5.7;
and 5.9, setting the proxy object as the click monitoring object of the button through the click monitoring field object obtained in the step 5.5 or the proxy object obtained in the step 5.8.
The invention is not limited to the embodiments, and any person should know the structural changes made under the teaching of the invention, and all the technical schemes which are the same or similar to the invention fall within the protection scope of the invention.
The technology, shape, and construction parts of the present invention, which are not described in detail, are known in the art.

Claims (2)

1. A method for detecting keywords of a probe system by IPTV is characterized by comprising the following steps: when a user clicks a button of a specific type in combination with the life cycle of the Android Activity, reporting corresponding behaviors and parameters thereof to a data server through an agent monitor, wherein the specific steps are as follows:
s1, agreeing a non-repeated digital identifier for each reporting scene, and agreeing a corresponding parameter name for the parameter of each scene;
s2, providing a button container in the interface base class BaseActivity, wherein the button container is used for storing all buttons which are possibly triggered to report on a current interface, each button container is a key-value key value pair set, a key represents a button, a value represents an uploaded parameter, and the parameter is a character string in a standard json format;
s3, setting corresponding digital identifications for buttons of the current interface by interface subclasses, collecting corresponding reporting parameters, assembling the parameters according to agreed parameter names, converting the parameters into json character strings, and finally adding the information into a button container;
s4, traversing a button container after the interface is loaded in the interface base class BaseActivity, namely when onResume () is executed for the first time, and executing the following corresponding logic for each button;
s5, acquiring an original monitoring object of the button through a reflection mechanism, wherein the method for acquiring the original monitoring object of the button comprises the following steps:
s5.1, obtaining a getListenerInfo () method object through a getDeclarledMethod () of a Class object of View;
s5.2, setting access rights for the method object obtained in the step 5.1;
s5.3, executing the method object obtained in the step 5.1, and obtaining a ListenInfo object of the button;
s5.4, obtaining a Class object of the internal Class ListenerInfo of the View;
s5.5, obtaining an mOnClickListener field object through the Class object obtained in the step 5.4;
s5.6, setting access rights for the field objects obtained in the step 5.6;
s5.7, acquiring the value of mOnClickListener of the ListenInfo through the click monitoring field object acquired in the step 5.5 and the ListenInfo object acquired in the step 5.3, namely the original click monitoring object of the button;
s6, creating a static proxy object for the monitoring object, wherein the proxy object adds a function of reporting data besides the original key function;
s7, when the proxy object executes reporting, firstly acquiring a digital identifier of a button, and acquiring corresponding reporting parameters from a button list through the button;
s8, the proxy object inserts the button type into the report parameter and uploads the button type to the data service through the OkHttpClient.
2. The method for detecting keywords of an IPTV probe system according to claim 1, wherein: the method for interface subclasses and collecting corresponding reporting parameters in the step S3 comprises the following steps:
s3.1, setting corresponding data identifiers for buttons which are possibly triggered to report in a current interface;
s3.2, collecting data parameters required by reporting, wherein the data parameters are related to a specific reporting scene, and the reporting parameters are firstly stored in a Map set and then converted into json character strings;
and S3.3, storing the buttons and the corresponding json character strings into the button set.
CN202010941285.4A 2020-09-09 2020-09-09 Method for detecting keywords of probe system by IPTV Active CN112130854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010941285.4A CN112130854B (en) 2020-09-09 2020-09-09 Method for detecting keywords of probe system by IPTV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010941285.4A CN112130854B (en) 2020-09-09 2020-09-09 Method for detecting keywords of probe system by IPTV

Publications (2)

Publication Number Publication Date
CN112130854A CN112130854A (en) 2020-12-25
CN112130854B true CN112130854B (en) 2023-12-22

Family

ID=73845320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010941285.4A Active CN112130854B (en) 2020-09-09 2020-09-09 Method for detecting keywords of probe system by IPTV

Country Status (1)

Country Link
CN (1) CN112130854B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016898A (en) * 2008-05-01 2011-04-13 阿尔卡特朗讯公司 Facilitating indication of metadata availability within user accessible content
CN105786543A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Interface loading method and device
WO2017101606A1 (en) * 2015-12-15 2017-06-22 北京奇虎科技有限公司 System and method for collecting and analyzing data
CN107844297A (en) * 2017-10-17 2018-03-27 广东广业开元科技有限公司 A kind of data visualization realizes system and method
CN109525667A (en) * 2018-11-18 2019-03-26 杭州智尔科技有限公司 The management system and method for a kind of electronic equipment
CN110188308A (en) * 2019-05-31 2019-08-30 武汉斗鱼网络科技有限公司 Client automatically dotting report method, storage medium, equipment and system
CN111149141A (en) * 2017-09-04 2020-05-12 Nng软件开发和商业有限责任公司 Method and apparatus for collecting and using sensor data from a vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016898A (en) * 2008-05-01 2011-04-13 阿尔卡特朗讯公司 Facilitating indication of metadata availability within user accessible content
CN105786543A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Interface loading method and device
WO2017101606A1 (en) * 2015-12-15 2017-06-22 北京奇虎科技有限公司 System and method for collecting and analyzing data
CN111149141A (en) * 2017-09-04 2020-05-12 Nng软件开发和商业有限责任公司 Method and apparatus for collecting and using sensor data from a vehicle
CN107844297A (en) * 2017-10-17 2018-03-27 广东广业开元科技有限公司 A kind of data visualization realizes system and method
CN109525667A (en) * 2018-11-18 2019-03-26 杭州智尔科技有限公司 The management system and method for a kind of electronic equipment
CN110188308A (en) * 2019-05-31 2019-08-30 武汉斗鱼网络科技有限公司 Client automatically dotting report method, storage medium, equipment and system

Also Published As

Publication number Publication date
CN112130854A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US11755387B1 (en) Updating code of an app feature based on a value of a query feature
USRE48681E1 (en) System and method for tracking web interactions with real time analytics
US11461348B2 (en) Automated presentation of information using infographics
US8756593B2 (en) Map generator for representing interrelationships between app features forged by dynamic pointers
US8589876B1 (en) Detection of central-registry events influencing dynamic pointers and app feature dependencies
US20090327915A1 (en) Automatic GUI Reconfiguration Based On User Preferences
CN110647512B (en) Data storage and analysis method, device, equipment and readable medium
CN101681372A (en) Method and system for providing relevant information to a user of a device in a local network
WO2018205845A1 (en) Data processing method, server, and computer storage medium
CN102043716A (en) Automatic software testing method based on business driving
WO2021088350A1 (en) Script-based web service paging data acquisition system
KR20100135789A (en) Query processing visualization system and method of visualizing query processing
CN108781311A (en) Video player frame for distribution of media and management platform
US20220188283A1 (en) Automatic discovery of executed processes
CN106407092B (en) Interface operation data report and device, interface operation data statistical approach and device
US20100205220A1 (en) Method of determining influence of a member within a dataset
CN117519698B (en) Online form generation method and system based on distributed architecture
CN111565321B (en) Terminal device, server and method for screen recording
US11675773B2 (en) Content management
CN112130854B (en) Method for detecting keywords of probe system by IPTV
CN109684779A (en) A kind of simulation model assembly method based on view
CN111741294A (en) Performance test method based on smart television cloud platform
CN103186571A (en) Method and device for displaying mobile media information in mobile search system
CN110222032A (en) A kind of generalised event model based on software data analysis
CN114385955A (en) Data point burying method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 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