CN104378682A - Key counting method based on android system and smart television based on android system - Google Patents

Key counting method based on android system and smart television based on android system Download PDF

Info

Publication number
CN104378682A
CN104378682A CN201410649226.4A CN201410649226A CN104378682A CN 104378682 A CN104378682 A CN 104378682A CN 201410649226 A CN201410649226 A CN 201410649226A CN 104378682 A CN104378682 A CN 104378682A
Authority
CN
China
Prior art keywords
button
statistics
message
intelligent television
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410649226.4A
Other languages
Chinese (zh)
Inventor
刘晓民
张海朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201410649226.4A priority Critical patent/CN104378682A/en
Publication of CN104378682A publication Critical patent/CN104378682A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor

Abstract

The embodiment of the invention provides a key counting method based on the android system and a smart television based on the android system. The method concretely comprises the steps that the smart television receives key commands transmitted by a remote controller through a receiver; an input command reading module running in the smart television detects the key commands, wherein the input command reading module is implemented by adopting C++ language or C language; when the key commands are detected, a counting module running in the smart television counts key pressing frequencies corresponding to the key commands to obtain corresponding key counting results, wherein the counting module is implemented by adopting the C++ langue or the C language; an acquisition module running in the smart television acquires the key counting results through a JNI interface according to preset time intervals, wherein the acquisition module is implemented by the adoption of JAVA language; the obtained key counting results are reported to a server. According to the key counting method and the smart television, the key counting speed can be increased, and processing flexibility is improved.

Description

A kind of button statistical method based on Android system and intelligent television
Technical field
The present invention relates to button detection technique field, particularly relate to a kind of button statistical method based on Android system and a kind of intelligent television.
Background technology
Along with the development of network technology, intelligent television business is also developed rapidly, so-called intelligent television is as smart mobile phone, there is the platform of full open model, be equipped with operating system (as domestic self-built operating system, Android system, apple iOS system and Windows system etc.), can install and unload by user the program (as office software, game client etc.) that the third party service provider provides voluntarily, expanded by the function of installation procedure to TV, and can surf the web etc. by interconnection network.
Intelligent television is as the emerging product of one, the service condition of remote controller key on the intelligent television put goods on the market is added up, can as the design basis of remote controller of future generation, such as, analysis result can be utilized to carry out the optimization of button, and more reasonably positional alignment is made to the position of button.
Existing a kind of button statistical project, adds up according to the remote controller key usage behavior of each statistical items to user, and when adding up duration and reaching duration threshold value, triggers the process reporting statistical information to Cloud Server.But when being applied to Android system, often there is the problem that button Statistical Speed is slow in the program.
Summary of the invention
The embodiment of the present invention provides a kind of button statistical method based on Android system and intelligent television, can improve button Statistical Speed, improves the flexibility of process.
The invention discloses a kind of button statistical method based on Android system, comprising:
Intelligent television receives the key command of remote controller transmission by receiver;
The input instruction fetch module run in described intelligent television detects above-mentioned key command; Wherein, described input instruction fetch module adopts C Plus Plus or C language to realize;
When described key command being detected, the touch potential that the statistical module run in described intelligent television is corresponding to described key command is added up, and obtains corresponding button statistics; Wherein, described statistical module adopts C Plus Plus or C language to realize;
The acquisition module run in described intelligent television obtains described button statistics according to the preset time interval by JNI interface; Wherein, described acquisition module adopts JAVA language to realize;
Described intelligent television reports obtained button statistics to server.
Preferably, the acquisition module run in described intelligent television to obtain the step of described button statistics according to the preset time interval by JNI interface, comprising:
Message loop process is carried out according to the preset time interval, wherein, the process of described message comprises: obtain described button statistics by JNI interface, and described message loop process comprises: after processing message at every turn, according to preset time interval time delay to self sending this message.
Preferably, described step of carrying out message loop process according to the preset time interval, comprising:
According to JNI interface specification, in JNI interface document, increase the first function for obtaining described button statistics;
After receiving the message self sent, call described first function to obtain described button statistics.
Preferably, described method also comprises:
Described button statistics is saved in Hash figure Hash-Map.
Preferably, what described key command comprised button lifts instruction.
On the other hand, the invention also discloses a kind of intelligent television, comprising:
Receiver module, for receiving the key command that remote controller sends by receiver;
Input instruction fetch module, for detecting above-mentioned key command; Wherein, described input instruction fetch module adopts C Plus Plus or C language to realize;
Statistical module, for when described key command being detected, the touch potential corresponding to described key command is added up, and obtains corresponding button statistics; Wherein, described statistical module adopts C Plus Plus or C language to realize;
Acquisition module, for obtaining described button statistics according to the preset time interval by JNI interface; Wherein, described acquisition module adopts JAVA language to realize; And
Reporting module, for reporting obtained button statistics to server.
Preferably, described acquisition module, comprising:
Message loop process submodule, for carrying out message loop process according to the preset time interval, wherein, the process of described message comprises: obtain described button statistics by JNI interface, described message loop process comprises: after processing message at every turn, according to preset time interval time delay to self sending this message.
Preferably, described message loop process submodule, comprising:
Increasing unit, for according to JNI interface specification, in JNI interface document, increasing the first function for obtaining described button statistics;
Call unit, for after receiving the message self sent, calls described first function to obtain described button statistics.
Preferably, described intelligent television also comprises:
Preserve module, for described button statistics being saved in Hash figure Hash-Map.
Preferably, what described key command comprised button lifts instruction.
Button statistical method based on Android system provided by the invention and intelligent television, adopt C Plus Plus or C language to realize button statistics, and, adopt JAVA language to realize obtaining button statistics by JNI interface; Because C Plus Plus or C language are Complied executing language, and JAVA language is for explaining effective language, therefore above-mentioned employing C Plus Plus or C language realize button statistic logic, can improve speed and the efficiency of button statistics; And adopt JAVA language to realize obtaining button statistics by JNI interface, then can to meet to server reported data use the requirement of JAVA interface; Further, owing to achieving button statistics and obtaining being separated of button statistics, therefore the coupling of software can also be reduced.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of Android system of the present invention;
Fig. 2 is the flow chart of steps of a kind of button statistical method embodiment one based on Android system of the present invention;
Fig. 3 is the structured flowchart of a kind of intelligent television embodiment of the present invention; And
Fig. 4 is the structural representation of a kind of intelligent television of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 1, show the structural representation of a kind of Android system of the present invention, specifically can comprise: drive layer 101, Framework (framework) layer 102 and application layer 103, wherein, drive layer 101 to can be used for the driving carrying out hardware, C Plus Plus and C language can be adopted; Framework layer 102 can be used for the encapsulation providing service logic to application layer 103, can adopt JAVA language, C Plus Plus and C language; Application layer 103 can be used for being responsible for calling Framework layer 102, generally adopts JAVA language.
It is mutual that application layer 103 is responsible for server, therefore application layer 103 is JAVA interface to the interface that server reported data uses; In addition, based on Event Input (instruction input) characteristic of Android system, the InputReader class process all encapsulated by Framework layer 102 according to buttons all in system;
Therefore, the cutting point that the InputReader class that Framework layer 102 can encapsulate by the present invention is added up as button, and, in order to meet to server reported data use the requirement of JAVA interface, added up by JNI Interface realization button and obtain being separated of button statistics, also, realizing ++ language or C language button statistics, and, adopt JAVA language to realize obtaining button statistics by JNI interface; Because C Plus Plus or C language are Complied executing language, and JAVA language is for explaining effective language, therefore above-mentioned employing C Plus Plus or C language realize button statistic logic, can improve the speed of button statistics; And adopt JAVA language to realize obtaining button statistics by JNI interface, then can to meet to server reported data use the requirement of JAVA interface.
Embodiment one
With reference to Fig. 2, show the flow chart of steps of a kind of button statistical method embodiment one based on Android system of the present invention, specifically can comprise the steps:
Step 201, intelligent television receive the key command of remote controller transmission by receiver;
The embodiment of the present invention can be applied to the various smart machine being equipped with Android system such as intelligent television, smart mobile phone, for adding up the key command on above-mentioned smart machine.The button statistics that the embodiment of the present invention is mainly suitable for remote controller for intelligent television is described, and the button statistics of other smart machine is cross-referenced.
For intelligent television, its remote controller be suitable for specifically can comprise: 39 key remote controllers, super remote controller etc., so, the embodiment of the present invention only can detect a kind of key command of remote controller, also can detect the key command of two or more remote controller simultaneously.
In actual applications, intelligent television generally includes and receives above-mentioned key command receiver, and for 39 key remote controllers, above-mentioned receiver can be infrared remote receiver, and for super remote controller, above-mentioned receiver can be 2.4G receiver.The key command that above-mentioned receiver receives can arrive the input instruction fetch module of Framework layer 102 through the conversion of layer 101 of overdriving.
The input instruction fetch module run in step 202, described intelligent television detects above-mentioned key command; Wherein, described input instruction fetch module adopts C Plus Plus or C language to realize;
Step 203, when described key command being detected, the touch potential that the statistical module run in described intelligent television is corresponding to described key command is added up, and obtains corresponding button statistics; Wherein, described statistical module adopts C Plus Plus or C language to realize;
In actual applications, described input instruction fetch module and described statistical module all can run in the cpu central processing unit of intelligent television and internal memory, and C Plus Plus or C language all can be adopted to realize.
In actual applications, for the one-touch of user, corresponding key command specifically can comprise: KEY UP (button lifts) instruction and KEY DOWN (button is pressed) instruction etc.
Considering that some Android system can send a series of DOWN instruction when length is by button, is also touch potential and DOWN instruction not necessarily man-to-man relation; And the UP instruction that button is corresponding only has one usually at every turn, also, there is man-to-man relation in KEY UP and touch potential, therefore, in one preferred embodiment of the invention, can only add up for KEY UP instruction, to improve button statistical accuracy.
In specific implementation, described input instruction fetch module detects the KEY UP instruction of button by above-mentioned InputReader class, and described statistical module adds up touch potential corresponding to KEY UP instruction by KeyCounter class; Particularly, when KEY UP instruction one-touch being detected, the API:setKeyCounterPlus of KeyCounter class can be called in the processKey function of InputReader class;
The function of this function of setKeyCounterPlus counts button;
void setKeyCounterPlus(REMOTE_CONTROLLER_TYPE type,intkeyCode);
Wherein, REMOTE_CONTROLLER_TYPE type represents remote unit type (as 39 key remote controllers and super remote controller etc.), and keyCode represents corresponding key value, also namely can count respectively various remote unit type.
In one preferred embodiment of the invention, above-mentioned button statistics can be saved in Hash-Map.Hash-Map (Hash figure) is a kind of data structure, uses the above-mentioned button statistics of this data structure storage, greatly can accelerate the speed of above-mentioned button statistics retrieval.The number of Hash-Map can be identical with the number of remote unit type, to realize counting and the statistics of one or more remote unit type.
The acquisition module run in step 204, described intelligent television obtains described button statistics according to the preset time interval by JNI interface; Wherein, described acquisition module adopts JAVA language to realize;
JNI (JAVA local interface, Java Native Interface) provides some API (application programming interface, Application Programming Interface) to realize the communication of JAVA and other language; Therefore, the present invention can adopt JAVA language to realize obtaining above-mentioned button statistics by JNI interface.
Such as, in a kind of application example of the present invention, described acquisition module can realize the timer function in the preset time interval based on JAVA language by InputManager class.Because whole Android system has very thorough management to InputManager class, specifically initialization and abnormality processing etc. can be comprised, so can the logic of the part such as the initialization of direct multiplexing InputManager class and abnormality processing, to meet the robustness requirement of button statistics.
Step 205, described intelligent television report obtained button statistics to server.
In specific implementation, described intelligent television can report obtained button statistics by wireless communication module or wire communication module to server.
In a kind of application example of the present invention, described intelligent television can report interface format that the button statistics obtained by JNI interface is sent to server according to daily record, if without any button in the preset time interval, do not reported; If have button in the preset time interval, then corresponding reported data interface format can use following character string according to ' key-value (key-value) ' is to mode, separator between key and value can be ' & ', also can be other self-defining spcial characters, only need be identical with server end, also namely the embodiment of the present invention is not limited the separator between key and value:
String postmsg="type=1&keycodehome=2&keycodeback=3”;
Wherein, type=1 is 39 key remote controllers, and type=2 is super remote controller, therefore above-mentioned string representation is within the preset time interval, and the home button of 39 key remote controllers has pressed 2 times, and back button has pressed 3 times.
In specific implementation, postMessageToServer (LetvManager manager can be adopted, String postMsg) function sends the button statistics obtained to server, wherein, LetvManager manager is that a public mould is fast, for sending message to server.
To sum up, embodiment of the present invention tool has the following advantages:
First, adopt C Plus Plus or C language to realize button statistics, and, adopt JAVA language to realize obtaining button statistics by JNI interface; Because C Plus Plus or C language are Complied executing language, and JAVA language is for explaining effective language, therefore above-mentioned employing C Plus Plus or C language realize button statistic logic, can improve speed and the efficiency of button statistics; And adopt JAVA language to realize obtaining button statistics by JNI interface, then can to meet to server reported data use the requirement of JAVA interface; Further, owing to achieving button statistics and obtaining being separated of button statistics, therefore the coupling of software can also be reduced;
And, JAVA language is adopted to realize obtaining described button statistics according to the preset time interval by JNI interface, owing to carrying the class of process Timer (timer) function in Android system, therefore realize timer function relative to employing C Plus Plus or C language, the convenience of exploitation can be increased;
To sum up, relative to existing button statistical project, button statistical project of the present invention process is more flexible, be more suitable for Android system, therefore, it is possible to flexibly, convenient, in efficient situation, count on the key information of user, for follow-up large data analysis provides the foundation data, and provide scientific basis for the design of remote controller of future generation.
Embodiment two
Embodiment two is the embodiment of embodiment one, it is on the basis of embodiment one, the acquisition module run in the described intelligent television of refinement to obtain the process of described button statistics by JNI interface according to the preset time interval, it specifically can comprise: carry out message loop process according to the preset time interval, wherein, the process of described message specifically can comprise: obtain described button statistics by JNI interface, described message loop process specifically can comprise: after processing message at every turn, according to preset time interval time delay to self sending this message.
In specific implementation, described step of carrying out message loop process according to the preset time interval, specifically can comprise: definition time interval and type of message in the derived class of Hander, and in the type of message of described definition, realize message loop process.
Such as, a Message Hander can be increased realize calling button statistics once every 15 minutes, to realize the acquisition of button statistics in Hander class:
Wherein, H.KEY_COUNTER is type of message, and H.KEY_COUNTER_INTERVAL is the time interval, such as 15 minutes etc., and TODO some thing represent acquisition button statistics, also namely obtain the data of preserving in Hash-Map by JNI interface.
To sum up, the present embodiment only needs to increase a message in the existing class in Android system, and time delay is carried out to this message, just can realize the timer function in the preset time interval, above-mentioned simple implementation method can improve the simplicity of program development and convenience.
Embodiment three
Embodiment three is the embodiment of embodiment two, it is on the basis of embodiment two, and refinement carries out the process of message loop process according to the preset time interval, and it specifically can comprise:
According to JNI interface specification, in JNI interface document, increase the first function for obtaining described button statistics;
After receiving the message self sent, call described first function to obtain described button statistics.
Such as, in a kind of application example of the present invention, can increase by the first function getKeyCounterInfoString in JNI interface document com_Android_server_InputManager.cpp, this first function can be used for the button statistics obtaining two kinds of remote unit type respectively:
void getKeyCounterInfoString(REMOTE_CONTROLLER_TYPE type,String8&info);
Can find out, the return value String8 & info of this first function is a character string, and particularly, be worth for info, data type is String8.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 3, show the structured flowchart of a kind of intelligent television embodiment of the present invention, specifically can comprise as lower module:
Receiver module 301, for receiving the key command that remote controller sends by receiver;
Input instruction fetch module 302, for detecting above-mentioned key command; Wherein, described input instruction fetch module adopts C Plus Plus or C language to realize;
Statistical module 303, for when described key command being detected, the touch potential corresponding to described key command is added up, and obtains corresponding button statistics; Wherein, described statistical module adopts C Plus Plus or C language to realize;
Acquisition module 304, for obtaining described button statistics according to the preset time interval by JNI interface; Wherein, described acquisition module adopts JAVA language to realize; And
Reporting module 305, for reporting obtained button statistics to server.
In a kind of embodiment of the present invention, described acquisition module 304, specifically can comprise:
Message loop process submodule, for carrying out message loop process according to the preset time interval, wherein, the process of described message comprises: obtain described button statistics by JNI interface, described message loop process comprises: after processing message at every turn, sends message according to preset time interval time delay to self.
In another kind of embodiment of the present invention, described message loop process submodule, specifically can comprise:
Increasing unit, for according to JNI interface specification, in JNI interface document, increasing the first function for obtaining described button statistics;
Call unit, for after receiving the message self sent, calls described first function to obtain described button statistics.
In another embodiment of the present invention, described intelligent television can also comprise:
Preserve module, for described button statistics being saved in Hash figure Hash-Map.
In a kind of embodiment of the present invention, what described key command specifically can comprise button lifts instruction.
The embodiment of the present invention is understood better for making those skilled in the art, with reference to Fig. 4, show the structural representation of a kind of intelligent television of the present invention, it specifically can comprise as lower module: InputReader.cpp 401, KeyCounter.cpp 402, com_Android_server_InputManager.cpp 403 and InputManager.Java 404, wherein, InputReader.cpp 401, KeyCounter.cpp 402, com_Android_server_InputManager.cpp 403 all adopts C Plus Plus to realize, InputManager.Java 404 adopts JAVA language to realize,
Wherein, InputReader.cpp 401 is for detecting key command;
KeyCounter.cpp 402, for counting key command, obtains button statistics, and stores button statistics temporarily, after button statistics is acquired, and can automatic clear;
InputManager.Java 404 for calling com_Android_server_InputManager.cpp 403 according to the preset time interval to obtain button statistics, and sends above-mentioned button statistics by network interface to server;
Com_Android_server_InputManager.cpp 403 is JNI interface document, for obtaining above-mentioned button statistics by JNI interface;
The workflow of above-mentioned each module specifically can comprise:
Step S1.1, InputReader.cpp 401 detect key command;
Particularly, when one-touch instruction being detected, in processKey function, call the API:setKeyCounterPlus of KeyCounter.cpp 402;
Step S1.2, KeyCounter.cpp 402 count for key command;
Preserve the data structure of 2 Hash-Map, and, at self API:setKeyCounterPlus after called, respectively the key command of 39 key remote controllers and super remote controller is counted, and button statistics is saved in corresponding Hash-Map;
Step S2.1, in the derived class of Hander definition time interval and type of message, and in the type of message of described definition, realize message loop process;
Step S2.2, obtain described button statistics by JNI interface;
Step S2.3, receive self send message after, call described first function to obtain described button statistics;
Step S2.4, report obtained button statistics to server.
For intelligent television embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, terminal equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computer or other programmable data processing terminal equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computer or other programmable terminal equipment, thus the instruction performed on computer or other programmable terminal equipment is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other identical element.
Above to a kind of button statistical method based on Android system provided by the present invention and a kind of intelligent television, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1., based on a button statistical method for Android system, it is characterized in that, comprising:
Intelligent television receives the key command of remote controller transmission by receiver;
The input instruction fetch module run in described intelligent television detects above-mentioned key command; Wherein, described input instruction fetch module adopts C Plus Plus or C language to realize;
When described key command being detected, the touch potential that the statistical module run in described intelligent television is corresponding to described key command is added up, and obtains corresponding button statistics; Wherein, described statistical module adopts C Plus Plus or C language to realize;
The acquisition module run in described intelligent television obtains described button statistics according to the preset time interval by JNI interface; Wherein, described acquisition module adopts JAVA language to realize;
Described intelligent television reports obtained button statistics to server.
2. method according to claim 1, is characterized in that, the acquisition module run in described intelligent television to obtain the step of described button statistics according to the preset time interval by JNI interface, comprising:
Message loop process is carried out according to the preset time interval, wherein, the process of described message comprises: obtain described button statistics by JNI interface, and described message loop process comprises: after processing message at every turn, according to preset time interval time delay to self sending this message.
3. method according to claim 2, is characterized in that, described step of carrying out message loop process according to the preset time interval, comprising:
According to JNI interface specification, in JNI interface document, increase the first function for obtaining described button statistics;
After receiving the message self sent, call described first function to obtain described button statistics.
4. method according to claim 1, is characterized in that, described method also comprises:
Described button statistics is saved in Hash figure Hash-Map.
5. method according to claim 1, is characterized in that, what described key command comprised button lifts instruction.
6. an intelligent television, is characterized in that, comprising:
Receiver module, for receiving the key command that remote controller sends by receiver;
Input instruction fetch module, for detecting above-mentioned key command; Wherein, described input instruction fetch module adopts C Plus Plus or C language to realize;
Statistical module, for when described key command being detected, the touch potential corresponding to described key command is added up, and obtains corresponding button statistics; Wherein, described statistical module adopts C Plus Plus or C language to realize;
Acquisition module, for obtaining described button statistics according to the preset time interval by JNI interface; Wherein, described acquisition module adopts JAVA language to realize; And
Reporting module, for reporting obtained button statistics to server.
7. intelligent television according to claim 6, is characterized in that, described acquisition module, comprising:
Message loop process submodule, for carrying out message loop process according to the preset time interval, wherein, the process of described message comprises: obtain described button statistics by JNI interface, described message loop process comprises: after processing message at every turn, sends message according to preset time interval time delay to self.
8. intelligent television according to claim 7, is characterized in that, described message loop process submodule, comprising:
Increasing unit, for according to JNI interface specification, in JNI interface document, increasing the first function for obtaining described button statistics;
Call unit, for after receiving the message self sent, calls described first function to obtain described button statistics.
9. intelligent television according to claim 6, is characterized in that, also comprises:
Preserve module, for described button statistics being saved in Hash figure Hash-Map.
10. intelligent television according to claim 6, is characterized in that, what described key command comprised button lifts instruction.
CN201410649226.4A 2014-11-14 2014-11-14 Key counting method based on android system and smart television based on android system Pending CN104378682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410649226.4A CN104378682A (en) 2014-11-14 2014-11-14 Key counting method based on android system and smart television based on android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410649226.4A CN104378682A (en) 2014-11-14 2014-11-14 Key counting method based on android system and smart television based on android system

Publications (1)

Publication Number Publication Date
CN104378682A true CN104378682A (en) 2015-02-25

Family

ID=52557284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410649226.4A Pending CN104378682A (en) 2014-11-14 2014-11-14 Key counting method based on android system and smart television based on android system

Country Status (1)

Country Link
CN (1) CN104378682A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250131A (en) * 2016-07-26 2016-12-21 北京小米移动软件有限公司 Prompt operation screen method and device
CN107015803A (en) * 2017-03-21 2017-08-04 武汉斗鱼网络科技有限公司 Button monitor method and system based on Linux inner core
CN107092484A (en) * 2017-03-27 2017-08-25 武汉斗鱼网络科技有限公司 By the method and system of the function button information reporting to Java layers of C language layer
CN113326033A (en) * 2021-06-09 2021-08-31 北京八分量信息科技有限公司 Key-value storage system with multi-language API

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032904A1 (en) * 2000-05-24 2002-03-14 Lerner David S. Interactive system and method for collecting data and generating reports regarding viewer habits
US6675371B1 (en) * 1999-04-30 2004-01-06 Hewlett-Packard Development Company, L.P. Java and native application window integration
CN102467432A (en) * 2010-11-04 2012-05-23 周琳 Method for realizing monitoring of communication special service terminal equipment by adopting serial communication
CN103686354A (en) * 2013-12-04 2014-03-26 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors
CN103812953A (en) * 2014-02-25 2014-05-21 中标软件有限公司 Communication interface system of micro-control unit and ARM (advanced RISC (reduced instruction-set computer) machines) processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675371B1 (en) * 1999-04-30 2004-01-06 Hewlett-Packard Development Company, L.P. Java and native application window integration
US20020032904A1 (en) * 2000-05-24 2002-03-14 Lerner David S. Interactive system and method for collecting data and generating reports regarding viewer habits
CN102467432A (en) * 2010-11-04 2012-05-23 周琳 Method for realizing monitoring of communication special service terminal equipment by adopting serial communication
CN103686354A (en) * 2013-12-04 2014-03-26 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors
CN103812953A (en) * 2014-02-25 2014-05-21 中标软件有限公司 Communication interface system of micro-control unit and ARM (advanced RISC (reduced instruction-set computer) machines) processor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250131A (en) * 2016-07-26 2016-12-21 北京小米移动软件有限公司 Prompt operation screen method and device
CN106250131B (en) * 2016-07-26 2020-07-03 北京小米移动软件有限公司 Shortcut operation shielding method and device
CN107015803A (en) * 2017-03-21 2017-08-04 武汉斗鱼网络科技有限公司 Button monitor method and system based on Linux inner core
CN107092484A (en) * 2017-03-27 2017-08-25 武汉斗鱼网络科技有限公司 By the method and system of the function button information reporting to Java layers of C language layer
CN113326033A (en) * 2021-06-09 2021-08-31 北京八分量信息科技有限公司 Key-value storage system with multi-language API
CN113326033B (en) * 2021-06-09 2023-08-11 北京八分量信息科技有限公司 Key-value storage system with multi-language API

Similar Documents

Publication Publication Date Title
CN105573129B (en) Cross-platform smart home mobile terminal based on Cordova
CN110908879B (en) Reporting method, reporting device, reporting terminal and recording medium of buried point data
CN108647089A (en) Resource allocation method, device, terminal and storage medium
TWI699988B (en) Information processing method, device, equipment and system
CN106302618A (en) Long-range control method, remote server, management equipment and terminal
EP3449369B1 (en) Methods for enabling data analytics service at service layer
CN104159294A (en) Cloud positioning platform based on Bluetooth 4.0 technology
CN104378682A (en) Key counting method based on android system and smart television based on android system
CN102196373A (en) Short message alarm system and short message alarm method
CN109684036A (en) A kind of container cluster management method, storage medium, electronic equipment and system
CN106101169A (en) A kind of terminal and data reporting method
CN102780933B (en) A kind of method and television set gathering user profile
CN106055609B (en) Nginx log monitoring method, device, message distribution system and the device of information processing
CN102999608A (en) System and method for tree table demonstration of large data
CN105573733A (en) Communication method for browser and web front end and web front end and system
CN108206864B (en) Vehicle information synchronization real-time query system and information synchronization method based on WeChat
CN105183299A (en) Human-computer interface service processing system and method
CN103368907B (en) Event report request system, method thereof, client device and report request method thereof
CN110807050A (en) Performance analysis method and device, computer equipment and storage medium
CN108833500B (en) Service calling method, service providing method, data transmission method and server
CN107666398B (en) Group notification method, system and storage medium based on user behavior
CN112035466B (en) External index development framework for block chain query
CN106201818B (en) A kind of statistical method and device of application program runing time
CN115982133A (en) Data processing method and device
CN112698829B (en) Abnormal resource positioning method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150225

WD01 Invention patent application deemed withdrawn after publication