CN108235308A - data reporting method, device, mobile terminal and computer-readable medium - Google Patents
data reporting method, device, mobile terminal and computer-readable medium Download PDFInfo
- Publication number
- CN108235308A CN108235308A CN201711445555.7A CN201711445555A CN108235308A CN 108235308 A CN108235308 A CN 108235308A CN 201711445555 A CN201711445555 A CN 201711445555A CN 108235308 A CN108235308 A CN 108235308A
- Authority
- CN
- China
- Prior art keywords
- data
- reported
- application program
- components
- sent
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present application discloses a kind of data reporting method, device, mobile terminal and computer-readable medium, and this method includes:Obtain the information of the corresponding application program of data to be reported;According to the information of the corresponding application program of the data to be reported, the corresponding data acquisition components of the data to be reported are obtained;The data to be reported are sent to server according to the data acquisition components.Therefore, different application programs uses different data acquisition components to carry out data acquisition and is sent to server according to information difference, improves flexibility and the diversity of the data acquisition of application program.
Description
Technical field
This application involves technical field of information processing, whole more particularly, to a kind of data reporting method, device, movement
End and computer-readable medium.
Background technology
At present, the mobile terminals such as mobile phone, tablet computer are more and more universal, and the function of mobile terminal is also increasingly stronger
Greatly, people do not make a phone call and send short messages merely with mobile terminal, and webpage, hair microblogging etc. can also be seen using mobile terminal, mobile
The data that the bulk information related with user and mobile terminal generate at runtime can be stored in terminal, by acquiring these
Data can analyze the behavior of user and the operating condition of mobile terminal.
Existing gathered data is often that the data-interface of different applications is unified, is realized with realizing using an interface
Acquisition to the data of a variety of different applications, still, acquisition mode is excessively single.
Invention content
Present applicant proposes a kind of data reporting method, device, mobile terminal and computer-readable mediums, above-mentioned to improve
Defect.
In a first aspect, the embodiment of the present application provides a kind of data reporting method, including:It is corresponding to obtain data to be reported
The information of application program;According to the information of the corresponding application program of the data to be reported, obtain the data to be reported and correspond to
Data acquisition components;The data to be reported are sent to server according to the data acquisition components.
Second aspect, the embodiment of the present application additionally provide data reporting device, including:First acquisition unit, second obtain
Unit and transmitting element.First acquisition unit, for obtaining the information of the corresponding application program of data to be reported.Second obtains list
Member for the information according to the corresponding application program of the data to be reported, obtains the corresponding data of the data to be reported and adopts
Collect component.Transmitting element, for the data to be reported to be sent to server according to the data acquisition components.
The third aspect, the embodiment of the present application additionally provide a kind of mobile terminal, including memory and processor, the storage
Device is coupled with the processor.The memory store instruction, when executed by the processor so that the place
It manages device and performs following operate:Obtain the information of the corresponding application program of data to be reported;It is corresponding according to the data to be reported
The information of application program obtains the corresponding data acquisition components of the data to be reported;According to the data acquisition components by institute
It states data to be reported and is sent to server.
Fourth aspect, the embodiment of the present application additionally provides a kind of computer of program code that can perform with processor can
Medium is read, said program code makes the processor perform the above method.
Data reporting method provided by the embodiments of the present application, device, mobile terminal and computer-readable medium, first, are obtained
The information of the corresponding application program of data to be reported is taken, is treated according to determining the information of the corresponding application program of data to be reported
Then the data to be reported will be sent to by the corresponding data acquisition components of reported data by the data acquisition components again
Server.Therefore, different application programs uses different data acquisition components to carry out data acquisition according to information difference
Be sent to server, improve application program data acquisition flexibility and diversity.
Other feature and advantage of the embodiment of the present application will illustrate, also, in subsequent specification partly from specification
In become apparent or understood by implementing the embodiment of the present application.The purpose of the embodiment of the present application and other advantages can
It realizes and obtains by specifically noted structure in the specification, claims and attached drawing write.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows the application scenario diagram of data reporting method and device provided by the embodiments of the present application;
Fig. 2 shows the method flow diagrams for the data reporting method that one embodiment of the application provides;
Fig. 3 shows the method flow diagram of data reporting method that another embodiment of the application provides;
Fig. 4 shows the module frame chart for the data reporting device that one embodiment of the application provides;
Fig. 5 shows the module frame chart of data reporting device that another embodiment of the application provides;
Fig. 6 shows the structure diagram of mobile terminal provided by the embodiments of the present application;
Fig. 7 shows the module frame chart of the mobile terminal of the embodiment of the present application.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete
Ground describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist
The component of the embodiment of the present application described and illustrated in attached drawing can be configured to arrange and design with a variety of different herein.Cause
This, the detailed description of the embodiments herein to providing in the accompanying drawings is not intended to limit claimed the application's below
Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not doing
Go out all other embodiments obtained under the premise of creative work, shall fall in the protection scope of this application.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need to that it is further defined and explained in subsequent attached drawing.Meanwhile the application's
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Referring to Fig. 1, show the application scenario diagram of data reporting method and device provided by the embodiments of the present application.Such as figure
Shown in 1, user terminal 1 and server 2 are located in wireless network or cable network, and user terminal 1 and server 2 carry out data
Interaction.
In the embodiment of the present application, user terminal 1 can be mobile terminal device, such as can include smart mobile phone, put down
Plate computer, E-book reader, pocket computer on knee, vehicle-mounted computer, wearable mobile terminal etc..
In some embodiments, client is mounted in user terminal 1.Specifically, client can be mounted in user
The application program of terminal 1.User can be reported to server for the operation of client and the operation data of client.Specifically
Ground, the corresponding data of client can be sent to server by SDK components or system acquisition component.
Wherein, SDK components are mounted in client, are bound with client, and can be updated with the update of client.
The effect of SDK components is to provide access interface for the data of other applications access client, can also actively acquire visitor
The Data Concurrent at family end is sent to other clients or terminal.The acquisition work that system acquisition component is carried for the system of user terminal
Tool, for example, it may be data gathering system (Data Collect System, DCS), generally updates according to the update of system.
Server 2 be equipped with for store client data memory space, for managing, storing user data and provide
User service.Server 2 can be individual server or server cluster, can be local server, can also
It is cloud server.
In some embodiments, SDK components are for acquiring the data of client bound with it, and system acquisition component can
To acquire the data of each client in user terminal.And in present data acquisition, often by the number of different applications
It is unified according to interface, to realize using acquisition of the interface realization to the data of a variety of different applications, still, acquisition mode mistake
In single.
Therefore, in order to overcome drawbacks described above, referring to Fig. 2, showing that the embodiment of the present application provides a kind of data and reports
Method, this method are used to improve the diversity of data acquisition.Specifically, this method includes:S201 to S203.
S201:Obtain the information of the corresponding application program of data to be reported.
Application program is mounted in mobile terminal, local storage space is equipped in mobile terminal, for storing application program
Data to be reported, then the information of the application program is corresponding with data to be reported, wherein, the information of the application program can be with
It is mark, type of application program etc..Wherein, data to be reported include the operation data of application program, for example, application program
Start or exit, further include user and be directed to the operation behavior data of application program, for example, closing some interface or inputting certain
Information etc..As a kind of embodiment, set in application program it is multiple bury a little, each bury and a little represent user for application program
Operation behavior or application program operating status, for example, the startup of application program is buried a little as one, user is opened using journey
Some interface of sequence is buried a little as one, and when these behaviors occur namely is buried and be a little triggered, then its corresponding data is with regard to energy
The corresponding local storage space of application program is enough stored in, the data to be reported as application program are stored in local.
Therefore, when determining to want the data of acquisition applications program, according to the data and application program in local storage space
Correspondence, obtain the information of the corresponding application program of data to be reported.
S202:According to the information of the corresponding application program of the data to be reported, it is corresponding to obtain the data to be reported
Data acquisition components.
As a kind of embodiment, the information of application program can be the mark of application program, wherein, mark can be name
Title or packet name.Then as a kind of embodiment, can be preset with application program mark it is corresponding with data acquisition components
Table includes the mark of multiple application programs in the correspondence table and the data corresponding to the mark of each application program adopts component.Such as
Shown in table 1:
The mark of application program | The type of application program | Data acquisition components |
APK1 | System application | DCS |
APK2 | Third-party application | SDK |
APK3 | Third-party application | SDK |
APK4 | Third-party application | SDK |
Therefore, according to above-mentioned corresponding table, the mark pair of the corresponding application program of data to be reported is searched in the correspondence table
The data acquisition components answered, for example, the corresponding data acquisition components of application program of mark APK1 are DCS, i.e. system acquisition group
Part, the corresponding data acquisition components of application program for identifying APK2 are SDK components.
As another embodiment, according to the type of application program whether to be the number to be reported from upgrading type
According to corresponding application program configuration data acquisition component.Specifically, the information of the application program includes the type of application program,
The information according to the corresponding application program of the data to be reported obtains the corresponding data acquisition group of the data to be reported
Part, including:Judge whether the type of the application program belongs to from upgrading type;If so, the data to be reported are corresponded to
Data acquisition components be set as SDK components;If it is not, the corresponding data acquisition components of the data to be reported are set as
System acquisition component.
Wherein, it from the application program for upgrading type, when the operating system of mobile terminal does not upgrade, can voluntarily rise
Grade, and system applies the relationship for belonging to close coupling with system, cannot generally upgrade automatically or not have the ability upgraded automatically, example
Such as camera, it is strongly dependent upon the hardware and system of mobile terminal.Therefore, the application program for belonging to system application type can be defined
To be non-from upgrading type, and third-party application is defined as from upgrading type.Then if the corresponding application of the data to be reported
The type of program belongs to from upgrading type, then the corresponding data acquisition components of data to be reported is set as SDK components, if institute
The type for stating the corresponding application program of data to be reported belongs to non-from upgrading type, then acquires the corresponding data of data to be reported
Component is set as system acquisition component.
S203:The data to be reported are sent to server according to the data acquisition components.
If the corresponding data acquisition components of the data to be reported are SDK components, it will be acquired and treated by SDK components
Count off evidence, and the data to be reported of acquisition are sent to server.As a kind of embodiment, can be judge it is described to be reported
Whether the corresponding application program of data meets default report condition, if satisfied, the data to be reported are acquired by SDK components,
And the data to be reported acquired are sent to server.
Specifically, application program is mounted in mobile terminal, and SDK components are bound with application program, for acquisition applications journey
The data of sequence simultaneously report.SDK components judge whether application program meets default report condition according to preset strategy, for example, can
To be that the data of application program are sent to server according to preset interval time.Specifically, at judgement current time and upper
When time interval between the time point of secondary transmission data meets predetermined interval, decide that application program meets default upper tape
Part.
It is also possible that when the data length of the data to be reported of application program meets certain value, by the number of application program
According to being sent to server.Specifically, the data length of the data to be reported of application program described in current time is obtained;Described in judgement
Whether data length is more than preset length;If more than judgement application program meets default report condition.
It should be noted that the data in data to be reported are acquired with SDK components and are gone through what the data of application program were sent
Records of the Historian record is related, for example, after application program launching, generated data A is stored in local, and SDK components using A as treating on
Count off is according to server is sent to, and then, as continuing to run with for application program produces data B, then the local of application program is deposited
The data stored up in space are A and B, but data A has been sent to server, then this data to be reported are B.
A preset length is pre-set, wherein, which can be the byte number of data, for example, 3M bytes,
Can be the item number of data, such as 30.And the data that SDK components can monitor the data to be reported of application program in real time are long
Degree.For example, after the data of application program are sent to server by the SDK component last times, the length of data to be reported is 0, with
The operation of application program, the data length of the data to be reported of application program gradually increases, and constantly accumulates, and is arrived in accumulation default
After length, SDK components decide that application program meets default report condition.Therefore, once by application program on SDK components
Data send after, this data to be reported data length accumulation to after certain length, just meet default reports
Condition can then perform the operation that the data to be reported of application program are sent to server.
It as another embodiment, can also be when the state of application program is in some state, judgement is using journey
Sequence meets default report condition.Specifically, whether the state for monitoring the application program by operating status is switched to background state;
If monitoring, the state of the application program is switched to background state by operating status, judges that application program meets default report
Condition.
The state of application program includes operating status, background state and exits state, wherein, operating status is mobile whole
It is run on the display interface at end, for example, an activity of level of application is in topmost states, then it represents that application program
In operating status, when user clicks home keys or screen locking key, application program then enters background state, at this point, using journey
Sequence is run in system background.If the process of application program killed completely, application program, which enters, exits state.Using journey
When sequence is switched to background state by operating status, then it represents that user may use the application program in portion whithin a period of time,
That is the data that application program is locally stored may be unchanged whithin a period of time, then it can be after application program entrance
When platform, the data to be reported of application program are reported, that is to say, that monitoring the state of the application program by running
State is switched to background state, then judges that application program meets default report condition.
If the corresponding data acquisition components of the data to be reported are system acquisition component, pass through the system acquisition component
The data to be reported of the application program are acquired, the data to be reported acquired are sent to server.
Specifically, DCS components are by all numbers to be reported of the application program received within a preset time interval
According to being sent to server.Wherein, prefixed time interval is preset time interval, such as 12 hours or 2 hours.DCS groups
The time that data to be reported are sent to server by part every time is all recorded in transmission record, and one is obtained in transmission record
It is secondary to send data to be reported to the time of server, historical time is denoted as, using the historical time as starting point, is obtained in the history
Between after prefixed time interval in all data to be reported, then all numbers to be reported received within a preset time interval
According to being sent to server.
It should be noted that multiple application programs can be included in mobile terminal, and each application program is one corresponding
SDK components, each SDK components are when the corresponding application program of judgement meets default report condition, by treating for application program
Count off evidence is sent to server.DCS components can the different application program of continuous collecting within a preset time interval it is to be reported
Then the data to be reported of all application programs received in prefixed time interval, are sent to server by data.
Furthermore it is possible to when the type for judging the application program belongs to from upgrading type, by described in the acquisition of SDK components
Data to be reported, and the data to be reported acquired are sent to system acquisition component, then will be received by system acquisition component
Data to be reported be sent to server.
Referring to Fig. 3, showing that the embodiment of the present application provides a kind of data reporting method, this method is used to improve data
The diversity of acquisition.Specifically, this method includes:S301 to S310.
S301:Obtain the information of the corresponding application program of data to be reported.
S302:Judge whether the type of the application program belongs to from upgrading type.
S303:The corresponding data acquisition components of the data to be reported are set as SDK components.
If the type of the application program belongs to from upgrading type, by the corresponding data acquisition group of the data to be reported
Part is set as SDK components.Specifically, can be to set a SDK component in the corresponding application program of data to be reported, will be
One SDK component of installation in the application program, the SDK components are used to acquire the data of the application program.
S304:Monitor whether that the data for receiving the application program report request.
The data of application program report request of the request for the data to be reported of instruction SDK sending application programs, specifically,
It can be the operation that reports button of the user based on application program that the data, which report request, i.e., user is in certain for clicking application program
A interface report button after, then SDK assemblies monitors report request to the data for having received application program.
As another embodiment, whether the SDK assemblies monitors receive is submitted a report asking in the data of the application program
If the mode asked be also possible that the SDK assemblies monitors to the corresponding predeterminable event of the application program occur when, judgement receives
Data to the application program report request.
Wherein, which is the corresponding operation behavior of the preset application program of user or operating status, in SDK
When assemblies monitor is to the corresponding operation behavior of application program or operating status generation, mean that SDK assemblies monitors to predeterminable event
Occur.For example, predeterminable event is clicked for some floating frame of application program, then when user clicks the floating frame, just
Judge that the corresponding predeterminable event of application program occurs, then data to be reported at this time just include the clicking operation with the floating frame
Relevant data.Specifically, which can be aforementioned bury a little.
S305:Judge received data report request whether be application program this start after the data that obtain for the first time
Report request.
Mobile terminal memory contains data record corresponding with application program, which includes the startup of application program
Number, the time started every time, the time exited every time and the time for sending data to be reported every time etc..
It when detecting that application program is in operating status, represents that the application program has been started up, is obtaining this startup
The startup time, then in the time for obtaining current acquired data and reporting request, with currently being obtained between judging on startup
Between the time that the data taken report request, if there are other data to report request, if it does not exist, then judging current institute
The data that the data of acquisition report request to be obtained for the first time after this starts for the application program report request, then perform S309
Operation.If it is present the current acquired data of judgement report request be not the application program this start after it is first
The data of secondary acquisition report request, i.e., the non-data obtained for the first time report request, then perform the operation of S306.
S306:It obtains through the data to be reported of the SDK components last time transmission application program to the service
The history sending time of device.
Specifically, it is obtained in the above-mentioned corresponding data record of application program and once sends treating for the application program
Count off is according to the time to system acquisition component, as history sending time.
S307:It obtains between the time that this received data is reported between the time of request and the history sending time
Every.
S308:Judge whether the time interval is more than preset time threshold.
Preset time threshold is set for user according to the demand that real data reports, for example, it may be 5 minutes.Such as
Fruit time interval then performs S309 more than preset time threshold, if no more than terminate if preset time threshold this method or
Person, which returns, performs S307, naturally it is also possible to be by other logic reported datas, for example, obtaining application program described in current time
Data to be reported data length;Judge whether the data length is more than preset length, if more than then performing S309, having
The embodiment of body can refer to previous embodiment, that is to say, that in not up to preset time threshold, but data length is
Through being more than preset length, then S309 is performed.
S309:The data to be reported are acquired, and the data to be reported acquired are sent to service by SDK components
Device.
S310:The corresponding data acquisition components of the data to be reported are set as system acquisition component.
If the type of the application program is not belonging to from type is upgraded, that is, belongs to non-from upgrading type, then treated described
The corresponding data acquisition components of reported data are set as system acquisition component.Specifically, mobile terminal memory contains system acquisition
The management list of component has the mark of multiple application programs in the list, wherein, the application program that each identifies is corresponding to be treated
Count off, will if the type of the application program is not belonging to from type is upgraded according to being acquired by system acquisition component
The mark of the application program is added to the management list, then the data acquisition components of the data to be reported of the application program are system
Acquisition component.
S311:Being needed for the application program generation within a preset time interval is acquired by the system acquisition component
The data to be reported acquired are sent to server by reported data.
It should be noted that the part not being described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein
It states.
Referring to Fig. 4, showing that the embodiment of the present application provides a kind of data reporting device 400, which is used to improve
The diversity of data acquisition.Specifically, which includes:First acquisition unit 401, second acquisition unit 402 and transmitting element
403。
First acquisition unit 401, for obtaining the information of the corresponding application program of data to be reported.
Second acquisition unit 402 for the information according to the corresponding application program of the data to be reported, is treated described in acquisition
The corresponding data acquisition components of reported data.
Transmitting element 403, for the data to be reported to be sent to server according to the data acquisition components.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
With the specific work process of unit, the corresponding process in preceding method embodiment can be referred to, details are not described herein.
Referring to Fig. 5, showing that the embodiment of the present application provides a kind of data reporting device 500, which is used to improve
The diversity of data acquisition.Specifically, which includes:First acquisition unit 501, second acquisition unit 502 and transmitting element
503。
First acquisition unit 501, for obtaining the information of the corresponding application program of data to be reported.
Second acquisition unit 502 for the information according to the corresponding application program of the data to be reported, is treated described in acquisition
The corresponding data acquisition components of reported data.
Specifically, second acquisition unit 502 includes:Type judgment sub-unit 5021, first sets subelement 5022 and the
Two setting subelements 5023.
Type judgment sub-unit 5021, for judging whether the type of the application program belongs to from upgrading type.
First setting subelement 5022, for if so, will the corresponding data acquisition components setting of the data to be reported
For SDK components.
Second setting subelement 5023, for if it is not, the corresponding data acquisition components of the data to be reported are set
It is set to system acquisition component.
Transmitting element 503, for the data to be reported to be sent to server according to the data acquisition components.
Specifically, transmitting element 503 includes:Monitor subelement 5031, the first judgment sub-unit 5032, first obtains son list
Member 5033, second obtains subelement 5034, the second judgment sub-unit 5035, the first transmission sub-unit 5036 and second and sends son list
Member 5037.
Subelement 5031 is monitored, for monitoring whether that the data for receiving the application program report request.
First judgment sub-unit 5032, for judging that received data reports whether request is this startup of application program
The data obtained for the first time later report request.
First obtains subelement 5033, and treating for the application program is sent by the SDK components last time for obtaining
Reported data to the server history sending time.
Second obtains subelement 5034, the time of request and the history is reported to send out for obtaining this received data
Send the time interval between the time.
Second judgment sub-unit 5035, for judging whether the time interval is more than preset time threshold.
First transmission sub-unit 5036 acquires the data to be reported, and treat what is acquired for passing through SDK components
Count off evidence is sent to server.
Second transmission sub-unit 5037, for being answered by the way that system acquisition component acquisition is described within a preset time interval
The data to be reported acquired are sent to server by all data to be reported generated with program.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
With the specific work process of unit, the corresponding process in preceding method embodiment can be referred to, details are not described herein.
Referring to Fig. 6, based on above-mentioned method and apparatus, the embodiment of the present application also provides a kind of mobile terminal 100, packet
Electronic body portion 10 is included, the electronic body portion 10 includes housing 12 and the main display 120 being arranged on the housing 12.Institute
State that metal can be used in housing 12, such as steel, aluminium alloy are made.In the present embodiment, the main display 120 generally includes display surface
Plate 111 may also comprise to respond circuit for carrying out the display panel 111 touch control operation etc..The display panel 111 can
Think a liquid crystal display panel (Liquid Crystal Display, LCD), in some embodiments, the display panel
111 be simultaneously a touch screen 109.
Please refer to Fig. 7, in practical application scenarios, the mobile terminal 100 can be used as intelligent mobile phone terminal into
It exercises and uses, the electronic body portion 10 also typically includes one or more (one is only shown in figure) processors in this case
102nd, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module
118th, power module 122.It will appreciated by the skilled person that structure shown in Fig. 7 is only to illustrate, not to described
The structure in electronic body portion 10 causes to limit.For example, the electronic body portion 10 may also include than shown in Fig. 7 more or more
Few component or with the configuration different from shown in Fig. 6.
It will appreciated by the skilled person that for the processor 102, every other component belongs to
It is coupled between peripheral hardware, the processor 102 and these peripheral hardwares by multiple Peripheral Interfaces 124.The Peripheral Interface 124 can
Based on following standard implementation:Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/
Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect
Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit,
I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples
In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display
The display controller of panel 111 or the storage control for connecting memory.In addition, these controllers can also be from described
Detached in Peripheral Interface 124, and be integrated in the processor 102 or corresponding peripheral hardware in.
The memory 104 can be used for storage software program and module, and the processor 102 is stored in institute by operation
The software program and module in memory 104 are stated, so as to perform various functions application and data processing.The memory
104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges
It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute
The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10
Or the main display 120.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile communication
Net and combinations thereof.
The RF modules 106 are used to receive and transmit electromagnetic wave, realize the mutual conversion of electromagnetic wave and electric signal, so as to
It is communicated with communication network or other equipment.The RF modules 106 may include various existing for performing these functions
Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module
(SIM) card, memory etc..The RF modules 106 can be carried out with various networks such as internet, intranet, wireless network
Communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, wireless
LAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to
Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill
Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code
Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division
Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity,
WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/or
IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses
(Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger
The agreement of news and short message and any other suitable communications protocol or even it may include that those are not developed currently yet
Agreement.
Voicefrequency circuit 110, receiver 101, sound jack 103, microphone 105 provide user and the electronic body portion jointly
Audio interface between 10 or described main displays 120.Specifically, the voicefrequency circuit 110 receives at the processor 102
Voice data is converted to electric signal by voice data, by electric signal transmission to the receiver 101.The receiver 101 is by electric signal
Be converted to the sound wave that human ear can be heard.The voicefrequency circuit 110 receives electric signal also at the microphone 105, by electric signal
Voice data is converted to, and the processor 102 is given to be further processed data transmission in network telephony.Audio data can be with
It is obtained at the memory 104 or by the RF modules 106.In addition, audio data can also be stored to the storage
It is sent in device 104 or by the RF modules 106.
The sensor 114 is arranged in the electronic body portion 10 or in the main display 120, the sensor
114 example includes but is not limited to:Optical sensor, operation sensor, pressure sensor, gravity accelerometer and
Other sensors.
Specifically, the optical sensor may include light sensor 114F, pressure sensor 114G.Wherein, pressure sensing
Device 114G can detect the sensor of the pressure generated by being pressed on mobile terminal 100.That is, pressure sensor 114G detection by with
The pressure that contact between family and mobile terminal or pressing generate, for example, by the contact between the ear and mobile terminal of user or
Press the pressure generated.Therefore, whether pressure sensor 114G may be used to determine occurs between user and mobile terminal 100
Contact or the size of pressing and pressure.
Referring to Fig. 6, specifically in the embodiment shown in fig. 6, the light sensor 114F and the pressure
Sensor 114G is set adjacent to the display panel 111.The light sensor 114F can have object close to the main display
When shielding 120, such as when the electronic body portion 10 is moved in one's ear, the processor 102 closes display output.
As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and accelerate
The size of degree can detect that size and the direction of gravity when static, can be used to identify the application of 100 posture of mobile terminal
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc..
In addition, the electronic body portion 10 can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, herein no longer
It repeats,
In the present embodiment, the input module 118 may include the touch screen being arranged on the main display 120
109, the touch screen 109 collect user on it or neighbouring touch operation (for example user is any using finger, stylus etc.
Operation of the suitable object or attachment on the touch screen 109 or near the touch screen 109), and according to presetting
The corresponding attachment device of driven by program.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller.
Wherein, the touch orientation of the touch detecting apparatus detection user, and the signal that touch operation is brought is detected, it transmits a signal to
The touch controller;The touch controller receives touch information from the touch detecting apparatus, and by the touch information
Contact coordinate is converted into, then gives the processor 102, and the order that the processor 102 is sent can be received and performed.
Furthermore, it is possible to realize touching for the touch screen 109 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Touch detection function.
The main display 120 is used to show by information input by user, is supplied to the information of user and the electronics
The various graphical user interface of body part 10, these graphical user interface can by figure, text, icon, number, video and its
Arbitrary to combine to form, in an example, the touch screen 109 may be disposed on the display panel 111 thus with described
Display panel 111 forms an entirety.
The power module 122 is used to provide supply of electric power to the processor 102 and other each components.Specifically,
The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit,
Power-fail detection circuit, inverter, indicator of the power supply status and any other and the electronic body portion 10 or the master
Generation, management and the relevant component of distribution of electric power in display screen 120.
The mobile terminal 100 further includes locator 119, and the locator 119 is used to determine 100 institute of mobile terminal
The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the mobile terminal 100 using positioning service,
The positioning service, it should be understood that the location information of the mobile terminal 100 is obtained by specific location technology (as passed through
Latitude coordinate), it is marked on the electronic map by the technology of the position of positioning object or service.
It should be understood that above-mentioned mobile terminal 100 is not limited to intelligent mobile phone terminal, should refer to can move
The computer equipment used in dynamic.Specifically, mobile terminal 100, refer to be equipped with the mobile computer of intelligent operating system
Equipment, mobile terminal 100 include but not limited to smart mobile phone, smartwatch, tablet computer, etc..
In conclusion data reporting method provided by the embodiments of the present application, device, mobile terminal and computer-readable Jie
Matter first, obtains the information of the corresponding application program of data to be reported, according to the information of the corresponding application program of data to be reported
Determine the corresponding data acquisition components of the data to be reported, it, will be described to be reported then again by the data acquisition components
Data are sent to server.Therefore, different application programs it is different according to the information and use different data acquisition components into
Row data acquire and are sent to server, improve flexibility and the diversity of the data acquisition of application program.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments "
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the different embodiments or examples described in this specification and the feature of different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, " multiple " are meant that at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
It puts.The more specific example (non-exhaustive list) of computer-readable medium is including following:Electricity with one or more wiring
Connecting portion (mobile terminal), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art
Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.In addition, in each embodiment of the application
In each functional unit can be integrated in a processing module or each unit is individually physically present, can also two
A or more than two units are integrated in a module.The form that hardware had both may be used in above-mentioned integrated module is realized, also may be used
It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as
Independent product is sold or in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the application
System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of application
Type.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art are when understanding:It still can be with
It modifies to the technical solution recorded in foregoing embodiments or equivalent replacement is carried out to which part technical characteristic;And
These modification or replace, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and
Range.
Claims (10)
1. a kind of data reporting method, which is characterized in that including:
Obtain the information of the corresponding application program of data to be reported;
According to the information of the corresponding application program of the data to be reported, the corresponding data acquisition group of the data to be reported is obtained
Part;
The data to be reported are sent to server according to the data acquisition components.
2. according to the method described in claim 1, it is characterized in that, the information of the application program includes the class of application program
Type;The information according to the corresponding application program of the data to be reported obtains the corresponding data of the data to be reported and adopts
Collect component, including:
Judge whether the type of the application program belongs to from upgrading type;
If so, the corresponding data acquisition components of the data to be reported are set as SDK components;
If it is not, the corresponding data acquisition components of the data to be reported are set as system acquisition component.
3. according to the method described in claim 2, it is characterized in that, described will be described to be reported according to the data acquisition components
Data are sent to server, including:
If the corresponding data acquisition components of the data to be reported are SDK components, the corresponding application of the data to be reported is judged
Whether program meets default report condition;
If satisfied, acquiring the data to be reported by SDK components, and the data to be reported acquired are sent to server.
4. according to the method described in claim 3, it is characterized in that, described judge the corresponding application program of the data to be reported
Whether satisfaction presets report condition, including:
Monitor whether that the data for receiving the application program report request;
Judge received data report request whether be the application program this start after the data that obtain for the first time report
Request;
If so, judgement application program meets default report condition.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
If it is not, it obtains through the data to be reported of the SDK components last time transmission application program to the server
History sending time;
It obtains this received data and reports time interval between the time of request and the history sending time;
Judge whether the time interval is more than preset time threshold;
If more than judgement application program meets default report condition.
6. according to the method described in claim 3, it is characterized in that, described judge the corresponding application program of the data to be reported
Whether satisfaction presets report condition, including:
Obtain the data length of the data to be reported of application program described in current time;
Judge whether the data length is more than preset length;
If more than judgement application program meets default report condition.
7. according to the method described in claim 2, it is characterized in that, described will be described to be reported according to the data acquisition components
Data are sent to server, including:
If the corresponding data acquisition components of the data to be reported are system acquisition component, pass through the system acquisition component and acquire
The data to be reported acquired are sent to clothes by all data to be reported that the application program generates within a preset time interval
Business device.
8. a kind of data reporting device, which is characterized in that including:
First acquisition unit, for obtaining the information of the corresponding application program of data to be reported;
Second acquisition unit for the information according to the corresponding application program of the data to be reported, obtains the number to be reported
According to corresponding data acquisition components;
Transmitting element, for the data to be reported to be sent to server according to the data acquisition components.
9. a kind of mobile terminal, which is characterized in that including memory and processor, the memory is coupled with the processor;
The memory store instruction, when executed by the processor so that the processor performs following operate:
Obtain the information of the corresponding application program of data to be reported;
According to the information of the corresponding application program of the data to be reported, the corresponding data acquisition group of the data to be reported is obtained
Part;
The data to be reported are sent to server according to the data acquisition components.
A kind of 10. computer-readable medium of program code that can perform with processor, which is characterized in that said program code
The processor is made to perform any one of claim 1-7 the methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711445555.7A CN108235308B (en) | 2017-12-27 | 2017-12-27 | Data reporting method and device, mobile terminal and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711445555.7A CN108235308B (en) | 2017-12-27 | 2017-12-27 | Data reporting method and device, mobile terminal and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108235308A true CN108235308A (en) | 2018-06-29 |
CN108235308B CN108235308B (en) | 2021-06-15 |
Family
ID=62648144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711445555.7A Active CN108235308B (en) | 2017-12-27 | 2017-12-27 | Data reporting method and device, mobile terminal and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108235308B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111182493A (en) * | 2020-01-09 | 2020-05-19 | 浙江中新电力工程建设有限公司自动化分公司 | Intelligent sensor based on ubiquitous power internet of things |
CN111327711A (en) * | 2020-03-18 | 2020-06-23 | 上海商米科技集团股份有限公司 | Data service method, data service device, terminal and machine readable storage medium |
CN111552521A (en) * | 2020-04-26 | 2020-08-18 | 深圳乐信软件技术有限公司 | Application data reporting method, device, server and storage medium |
CN112308501A (en) * | 2019-07-31 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Service processing method and related device |
CN112395173A (en) * | 2019-08-14 | 2021-02-23 | 腾讯科技(深圳)有限公司 | Method and device for reporting information stream data |
CN113079054A (en) * | 2021-06-07 | 2021-07-06 | 智道网联科技(北京)有限公司 | Monitoring method, device and system of vehicle-mounted terminal |
CN113377643A (en) * | 2021-07-02 | 2021-09-10 | 四川新网银行股份有限公司 | SDK monitoring and tracking method and device and readable storage medium |
CN114501303A (en) * | 2021-12-27 | 2022-05-13 | 天翼云科技有限公司 | Method and device for determining positioning data and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104899325A (en) * | 2015-06-19 | 2015-09-09 | 上海卓悠网络科技有限公司 | APP (application) acquired data collection method, terminal, server and system |
CN105376335A (en) * | 2015-12-15 | 2016-03-02 | 北京奇虎科技有限公司 | Method and device for collection data uploading |
CN105607986A (en) * | 2015-01-06 | 2016-05-25 | 北京志翔科技股份有限公司 | Acquisition method and device of user behavior log data |
CN107018046A (en) * | 2017-06-06 | 2017-08-04 | 上海鋆创信息技术有限公司 | A kind of collecting method, device, terminal and storage medium |
CN107077386A (en) * | 2014-10-28 | 2017-08-18 | 电子湾有限公司 | Prioritization is carried out to software application to manage prompting |
-
2017
- 2017-12-27 CN CN201711445555.7A patent/CN108235308B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107077386A (en) * | 2014-10-28 | 2017-08-18 | 电子湾有限公司 | Prioritization is carried out to software application to manage prompting |
CN105607986A (en) * | 2015-01-06 | 2016-05-25 | 北京志翔科技股份有限公司 | Acquisition method and device of user behavior log data |
CN104899325A (en) * | 2015-06-19 | 2015-09-09 | 上海卓悠网络科技有限公司 | APP (application) acquired data collection method, terminal, server and system |
CN105376335A (en) * | 2015-12-15 | 2016-03-02 | 北京奇虎科技有限公司 | Method and device for collection data uploading |
CN107018046A (en) * | 2017-06-06 | 2017-08-04 | 上海鋆创信息技术有限公司 | A kind of collecting method, device, terminal and storage medium |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112308501A (en) * | 2019-07-31 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Service processing method and related device |
CN112395173A (en) * | 2019-08-14 | 2021-02-23 | 腾讯科技(深圳)有限公司 | Method and device for reporting information stream data |
CN112395173B (en) * | 2019-08-14 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Method and device for reporting information flow data |
CN111182493A (en) * | 2020-01-09 | 2020-05-19 | 浙江中新电力工程建设有限公司自动化分公司 | Intelligent sensor based on ubiquitous power internet of things |
CN111182493B (en) * | 2020-01-09 | 2022-03-15 | 浙江中新电力工程建设有限公司自动化分公司 | Intelligent sensor based on ubiquitous power internet of things |
CN111327711A (en) * | 2020-03-18 | 2020-06-23 | 上海商米科技集团股份有限公司 | Data service method, data service device, terminal and machine readable storage medium |
CN111552521A (en) * | 2020-04-26 | 2020-08-18 | 深圳乐信软件技术有限公司 | Application data reporting method, device, server and storage medium |
CN113079054A (en) * | 2021-06-07 | 2021-07-06 | 智道网联科技(北京)有限公司 | Monitoring method, device and system of vehicle-mounted terminal |
CN113377643A (en) * | 2021-07-02 | 2021-09-10 | 四川新网银行股份有限公司 | SDK monitoring and tracking method and device and readable storage medium |
CN113377643B (en) * | 2021-07-02 | 2023-08-25 | 四川新网银行股份有限公司 | SDK monitoring and tracking method and device and readable storage medium |
CN114501303A (en) * | 2021-12-27 | 2022-05-13 | 天翼云科技有限公司 | Method and device for determining positioning data and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108235308B (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108235308A (en) | data reporting method, device, mobile terminal and computer-readable medium | |
CN108134838A (en) | data reporting method, device, mobile terminal and computer-readable medium | |
CN109194818B (en) | Information processing method and terminal | |
CN108712561A (en) | Right management method, device, mobile terminal and storage medium | |
CN108632460A (en) | Right management method, device, mobile terminal and storage medium | |
CN110166439B (en) | Equipment sharing method, terminal, router and server | |
CN108647048A (en) | Doze mode regulating methods, device, mobile terminal and storage medium | |
CN108228025A (en) | message display method, device, mobile terminal and storage medium | |
CN108345422A (en) | Application control method, apparatus, mobile terminal and computer-readable medium | |
CN108763892A (en) | Right management method, device, mobile terminal and storage medium | |
CN108446211A (en) | Browser exception collection method, device, mobile terminal and storage medium | |
CN108235237B (en) | Data reporting method and device, mobile terminal and computer readable medium | |
CN108536415A (en) | Using method for controlling volume, device, mobile terminal and computer-readable medium | |
CN108009031B (en) | Application program control method and mobile terminal | |
CN109428871B (en) | Defense strategy determination method and device | |
CN108200546A (en) | data reporting method, device, mobile terminal and computer-readable medium | |
CN111131607A (en) | Information sharing method, electronic equipment and computer readable storage medium | |
CN108494851B (en) | Application program recommended method, device and server | |
CN108803961A (en) | Data processing method, device and mobile terminal | |
CN113238868A (en) | Task processing method, device, server, equipment, system and storage medium | |
CN108647070A (en) | Information prompting method, device, mobile terminal and computer-readable medium | |
CN107819938A (en) | Footmark collocation method, device, mobile terminal and server | |
CN108763243A (en) | Application program recommends method, apparatus, mobile terminal and server | |
CN107688498B (en) | Application program processing method and device, computer equipment and storage medium | |
CN107896285A (en) | data reporting method, device, mobile terminal and computer-readable 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |