CN108235237A - data reporting method, device, mobile terminal and computer-readable medium - Google Patents

data reporting method, device, mobile terminal and computer-readable medium Download PDF

Info

Publication number
CN108235237A
CN108235237A CN201711445553.8A CN201711445553A CN108235237A CN 108235237 A CN108235237 A CN 108235237A CN 201711445553 A CN201711445553 A CN 201711445553A CN 108235237 A CN108235237 A CN 108235237A
Authority
CN
China
Prior art keywords
network
object run
behavior
run behavior
mobile terminal
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
Application number
CN201711445553.8A
Other languages
Chinese (zh)
Other versions
CN108235237B (en
Inventor
张建都
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711445553.8A priority Critical patent/CN108235237B/en
Publication of CN108235237A publication Critical patent/CN108235237A/en
Application granted granted Critical
Publication of CN108235237B publication Critical patent/CN108235237B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (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, belongs to technical field of information processing, and this method includes:Obtain the information of the corresponding object run behavior of application program in mobile terminal;According to the information of the object run behavior, the corresponding network transmission mode of the object run behavior is obtained;According to the network transmission mode, the corresponding data to be reported of the object run behavior are sent to server.A network transmission mode is all corresponded to for the different operation behaviors under an application program, so that the different data of same application program is different because of affiliated operation behavior, and different network transmission modes can be taken to upload data, improve the diversity of the network settings of data acquisition.

Description

Data reporting method, device, mobile terminal and computer-readable medium
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.But during flow collection, often Different network acquisition modes is set for different application programs, and the network settings of data acquisition are 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:Obtain the application in mobile terminal The information of the corresponding object run behavior of program;According to the information of the object run behavior, the object run behavior is obtained Corresponding network transmission mode;According to the network transmission mode, the corresponding data to be reported of the object run behavior are sent out It send to server.
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 corresponding object run behavior of the application program in mobile terminal Information.Second acquisition unit for the information according to the object run behavior, obtains the corresponding net of the object run behavior Network transmission mode.Transmitting element, for according to the network transmission mode, by the corresponding number to be reported of the object run behavior According to being sent to server.
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 object run behavior of application program in mobile terminal;According to the mesh The information of operation behavior is marked, obtains the corresponding network transmission mode of the object run behavior;According to the network transmission mode, The corresponding data to be reported of the object run behavior are 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, by first obtaining The information of the corresponding object run behavior of application program is taken, according to the information of object run behavior, is obtained and object run behavior Corresponding network transmission mode sends the corresponding data to be reported of the object run behavior further according to the network transmission mode To server.Therefore, a network transmission mode is all corresponded to for the different operation behaviors under an application program so that same The different data of one application program can take different network transmission modes to upload number because affiliated operation behavior is different According to the diversity of the network settings of raising data acquisition.
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, client is interior to include multiple business modules, and each business module represents a certain item function of client, for example, talk business. And each business module includes multiple events, which represents specific operation behavior, for example, sharing a pictures, publication One comment etc..These data of client can be reported to server in the case where meeting condition.Need what is illustrated It is that the quantity of client can be multiple.
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.
But now with network transmission mode setting often for the unified setting of some application program and not Same application program sets different network transmission modes, and set-up mode is excessively single.It therefore, please in order to overcome drawbacks described above Referring to Fig.2, showing that the embodiment of the present application provides a kind of data reporting method, this method is used to improve the network that data report The diversity of transmission mode.Specifically, this method includes:S201 to S203.
S201:Obtain the information of the corresponding object run behavior of application program in mobile terminal.
Wherein, operation behavior is the corresponding event of application program, and specifically, application program corresponds to multiple business, business and Application program corresponds to.Specifically, there are multiple function modules, for example, some has forum using center, answers in application program With functions such as program management, then forum and application program management are exactly two business of application program, then such as communication software Address list, call are also two business.The mark of each business and the correspondence of type of service are preset in mobile terminal.
Operation behavior is corresponding with the business of application program.Specifically, application program includes multiple business, and each business Including multiple events, and each event represents an operation behavior.For example, by taking social class software as an example, under social class software Interactive service, for example, friend's circle business under wechat, and the share photos or sharing video frequency under interactive service just belong to specific Operation behavior, the correspondence of the mark of each operation behavior and the type of operation behavior is preset in mobile terminal.
Wherein, the information of operation behavior includes mark, type of operation behavior etc., and specifically, the type of operation behavior can To include big data quantity type and normal data amount type and low data bulk type.Wherein, big data quantity type represents the behaviour The type of mass data can be generated within a certain period of time by belonging to as behavior, for example, the operation behavior frequently occurred, for example, lock Screen.
And mobile terminal memory contains the corresponding application program of information of each operation behavior, can be each specifically Each business under application program corresponds to an operation behavior.
S202:According to the information of the object run behavior, the corresponding network transmission side of the object run behavior is obtained Formula.
Corresponding table of the operation behavior with network transmission mode is previously provided in mobile terminal, is included in the correspondence table multiple Operation behavior and the corresponding network transmission mode of each operation behavior, wherein, network transmission mode includes charging network mode, non- Charging network mode and overall network mode.Wherein, non-charging network mode represents that the data of the operation behavior pass through non-charging Network transmits, and charging network transmission mode represents that the data of the operation behavior are transmitted by charging network, overall network Mode represents that the data of the operation behavior do not limit network transmission mode, as long as according to the network transmission currently connected. Then according to the correspondence table, it will be able to the corresponding network transmission mode of object run behavior is obtained, wherein, which can use What family was set according to actual needs.
Wherein, charging network is the network collected the charges according to flow, for example, 30 yuan of packet 2G flows every month, then convert Get off, each flow for determining data volume all corresponds to an expense, and the flow of some networks is after certain expense is paid, no Extra-pay will not be all generated again by using how many flow, for example, WiFi, every month pays certain expense, then of that month The flow of WiFi does not limit.
S203:According to the network transmission mode, the corresponding data to be reported of the object run behavior are sent to clothes Business device.
After the corresponding network transmission mode of object run behavior is got, the network that mobile terminal is currently accessed is judged Whether network transmission mode corresponding with object run behavior matches, if it is, object run behavior is corresponding to be reported Data are sent to server by the network that is currently accessed.
For example, obtaining the mark of network that mobile terminal is currently accessed, it is judged according to the mark for the network being currently accessed Whether network transmission mode corresponding with object run behavior matches.Obtaining the mode of the mark of present access network can be, First it is judged whether or not network connection, if so, then consulting network shown on the status bar of the system of mobile terminal Mark, wherein, which is the status bar for showing current phone electricity and network state and signal strength.Certainly, The mark for the network that mobile terminal is currently accessed can also be obtained by the function in the system of mobile terminal, for example, getActiveNetworkInfo()。
Then, then charge type corresponding to the network being currently accessed is determined, wherein, charge type includes charging type and non- Charging type.And the setting of charge type can be for preset, for example, in China, the networks such as 2G, 3G, 4G belong to meter Take network, and WiFi belongs to non-charging network, although alternatively, flow is charging, cost is not too high, then user can be with The mark of the network is classified as non-charging network.
It is of course also possible to it is set with reference to the corresponding specific network service of SIM card of mobile terminal, for example, user makes The 4G networks of telecommunications, user has subscribed the business of monthly payment, that is, the flow of every month is unlimited.These are by user hand Dynamic addition, of course, it is possible to be the user that mobile terminal interacted and obtained the SIM card of the mobile terminal with the server of operator Flow business, for example, mobile terminal transmitted traffic business obtains request to the server of operator, which obtains request The corresponding flow business of the cell-phone number is sent to movement eventually by the cell-phone number including mobile terminal, then, the server of operator End, mobile terminal just obtains the flow business of the user of the SIM card of the mobile terminal, then judges whether mobile terminal is corresponding with The not business of limit flow, if so, the mark of the corresponding network of the operator is classified as non-charging network type, if not provided, The mark of the corresponding network of operator is classified as charging network type.
After the network being currently accessed is got, the charge type of the network being currently accessed is determined, then, then judge Whether its network transmission mode corresponding with object run behavior matches.For example, the network being currently accessed is the 4G of China Telecom Mobile network belongs to charging type, and the corresponding network transmission mode of object run behavior is non-charging network mode, then judges two Person mismatches, then the corresponding data to be reported of object run behavior is not sent to server, if the network being currently accessed is The WiFi network of China Telecom then judges the two matching, the corresponding data to be reported of object run behavior is sent to server.
Furthermore it is possible to use count off in the mode of non-charging network just for the data of the operation behavior of big quantity type According to, and to other operation behaviors, due to its generated data volume very little, the not overall network mode that may be used uploads, then Specific mode can be as follows:Referring to Fig. 3, show that the embodiment of the present application provides a kind of data reporting method, this method For improving the diversity of network transmission mode that data report.Specifically, this method includes:S301 to S308.
S301:Obtain the information of the corresponding object run behavior of application program in mobile terminal.
S302:Judge whether the type of the object run behavior belongs to big data quantity type.
Specifically, according to the historgraphic data recording of the object run behavior, the target behaviour in preset time is obtained Make the length of the corresponding data of behavior.Wherein, it is corresponding to include object run behavior for the historgraphic data recording of object run behavior The identifying of application program, the identifying of corresponding business, every time caused by data and the data corresponding time, and obtain pre- If corresponding data of object run behavior in the time, so as to count the corresponding data of object run behavior in preset time Length.
Then, judge whether the length of the data is located in the range of default value, if in the range of default value, sentence The type of the fixed object run behavior belongs to big data quantity type;If not being located in the range of default value, the mesh is judged The type of mark operation behavior is not belonging to big data quantity type.Wherein, the preset numberical range of default value ranging from user, For example, more than MKB, wherein, M is the natural number more than 0.It should be noted that default value range is corresponding with preset time , preset time is longer, then the numerical value of the M in default value range is bigger.Then be located in the range of the default value, i.e., more than M, It then represents that the object run behavior generated data in preset time are larger, therefore, is classified as big data quantity type, on the contrary then It is classified as non-big data quantity type.
S303:The corresponding network transmission mode of the object run behavior is set as non-charging network mode.
If the type of object run behavior belongs to big data quantity type, by the corresponding network transmission of object run behavior Mode is set as non-charging network mode.I.e. data volume is larger, needs to transmit using non-charging network, avoids cost excessively high.
S304:Obtain the type for the network that the mobile terminal is currently accessed.
S305:Whether the type for the network being currently accessed described in judgement belongs to non-charging type.
Specifically, first obtain the mark for the network being currently accessed, further according to the network being currently accessed mark with it is advance The matching of non-charging type network list and charging type network list, the type for obtaining the network being currently accessed are to belong to charging type also It is non-charging type.Specifically, it can refer to previous embodiment.
Further, it is contemplated that in different areas, corresponding charging network is different, for example, in China, WiFi belongs to In non-charging network, and in India, WiFi belongs to the charging network charged by flow.Therefore, the net being currently accessed described in judgement The mode whether type of network belongs to non-charging type can include:Obtain the current location of the mobile terminal;Obtain with it is described The mark of the corresponding non-charging network in current location;The network being currently accessed described in judgement identifies whether to belong to the non-charging The mark of network;If so, the type of network being currently accessed described in judgement belongs to non-charging type.
Specifically, the current location for obtaining mobile terminal can be by the locating module in mobile terminal, for example, GPS cores Piece obtains, and can also be obtained by the affiliated area for the network being currently accessed, the affiliated area for the network that will be currently accessed Current location as mobile terminal.Wherein, the mode of the affiliated area for the network being currently accessed described in acquisition can be obtained The network address for the network being currently accessed according to the affiliated area of network that network address acquisition is currently accessed, specifically, is moved When dynamic accessing terminal to network or the network address that user accesses the network is got, for example, an IP address, passes through one A little instructions or code can just get the network address of the present access network of mobile terminal.If for example, mobile terminal The network being currently accessed is mobile communications network, such as 4G networks, then pass through getLocal IpAddress () obtain it is mobile eventually The network address of the present access network at end.If the network that mobile terminal is currently accessed is WLAN, such as Wi-Fi, The network address of the present access network of mobile terminal is then obtained by intToIp (ipAddress).
After network address is got, according to preset network address and the correspondence of location information, it can obtain The location information of mobile terminal corresponding to the network address.For example, 103.21.176.0 is the IP address of China, then it is corresponded to Location information for China, 195.090.053.000 be the U.S. IP address, then the location information of its corresponding mobile terminal be The U.S..
The mark of non-charging network corresponding with the current location is obtained, can be set by user according to practical experience Fixed, i.e. user, for example, in China, corresponds in the advance typing position of mobile terminal and the correspondence of the mark of non-charging network Non- charging network be identified as WIFI, in the U.S., corresponding non-charging network is identified as WiFi and mobile network.Again ought The mark of the network of preceding access in the correspondence with searching, to obtain the mark of network being currently accessed in the correspondence Whether the mark of non-charging network is belonged to, for example, the network identity being currently accessed is China Telecom 4G, and it is corresponding with current location Non- charging network be identified as WIFI, then by comparing, judgement China Telecom 4G belongs to charging network.
S306:The corresponding data to be reported of the object run behavior are sent to clothes by the network being currently accessed Business device.
If the corresponding network transmission mode of object run behavior is non-charging network mode, and the network category being currently accessed In non-charging type, then the corresponding data to be reported of the object run behavior are sent to clothes by the network being currently accessed Business device.Otherwise, when waiting for current network as non-charging type, the corresponding data to be reported of object run behavior are being sent to service Device.
Furthermore it is possible in the case where the corresponding network transmission mode of object run behavior is non-charging network mode, sentence Surely in the case that the network being currently accessed belongs to charging type, dialog box is popped up on the interface of mobile terminal, is inquired in current net In the case that network belongs to charging type, if the network reported data is continuing with, if obtaining user and being inputted based on the dialog box The instruction that reports of confirmation after, the corresponding data to be reported of the object run behavior are passed through into the network being currently accessed It is sent to server.
S307:The corresponding network transmission mode of the object run behavior is set as overall network mode.
If it is determined that the type of object run behavior is not belonging to big data quantity type, then by the corresponding net of object run behavior Network transmission mode is set as overall network mode.That is, the data volume of the type is smaller, network transmission side can not be limited Formula.
S308:The network that the corresponding data to be reported of the object run behavior are currently accessed by the mobile terminal It is sent to server.
After the network transmission mode for judging the object run behavior is overall network mode, directly by currently connecing The corresponding data to be reported of object run behavior are sent to server by the network entered.
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 network transmission mode that data report.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 object run behavior of the application program in mobile terminal.
Second acquisition unit 402 for the information according to the object run behavior, obtains the object run behavior pair The network transmission mode answered.
Transmitting element 403, for according to the network transmission mode, by the corresponding number to be reported of the object run behavior According to being sent to server.
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 network transmission mode that data report.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 object run behavior of the application program in mobile terminal.
Second acquisition unit 502 for the information according to the object run behavior, obtains the object run behavior pair The network transmission mode answered.
Specifically, second acquisition unit 502 includes:Judgment sub-unit 5021, first sets subelement 5022, second to set Subelement 5023.
Whether judgment sub-unit 5021, the type for judging the object run behavior belong to big data quantity type.
First setting subelement 5022, based on the corresponding network transmission mode of the object run behavior is set as non- Take network mode.
Second setting subelement 5023, for the corresponding network transmission mode of the object run behavior to be set as all Network mode.
Transmitting element 503, for according to the network transmission mode, by the corresponding number to be reported of the object run behavior According to being sent to server.
Specifically, transmitting element 503 includes:Type judgment sub-unit 5031, the first transmission sub-unit 5032 and the second hair Send subelement 5033.
Type judgment sub-unit 5031, if the network transmission mode for the object run behavior is non-charging network Whether mode, the type of network being currently accessed described in judgement belong to non-charging type.
First transmission sub-unit 5032, for if so, the corresponding data to be reported of the object run behavior are passed through The network being currently accessed is sent to server.
Second transmission sub-unit 5033, if the network transmission mode for the object run behavior is overall network side The corresponding data to be reported of the object run behavior are then sent to clothes by formula by the network that the mobile terminal is currently accessed Business device.
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, by first obtaining the information of the corresponding object run behavior of application program, according to the information of object run behavior, acquisition and mesh The corresponding network transmission mode of operation behavior is marked, is treated further according to the network transmission mode by the object run behavior is corresponding Count off evidence is sent to server.Therefore, a network transmission is all corresponded to for the different operation behaviors under an application program Mode so that the different data of same application program can take different network transmissions because affiliated operation behavior is different Mode uploads data, improves the diversity of the network settings of data acquisition.
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 object run behavior of application program in mobile terminal;
According to the information of the object run behavior, the corresponding network transmission mode of the object run behavior is obtained;
According to the network transmission mode, the corresponding data to be reported of the object run behavior are sent to server.
2. according to the method described in claim 1, it is characterized in that, the information of the object run behavior is grasped including the target Make the type of behavior;The information according to the object run behavior obtains the corresponding network of the object run behavior and passes Defeated mode, including:
Judge whether the type of the object run behavior belongs to big data quantity type;
If so, the corresponding network transmission mode of the object run behavior is set as non-charging network mode;
If it is not, the corresponding network transmission mode of the object run behavior is set as overall network mode.
3. according to the method described in claim 2, it is characterized in that, whether the type for judging the object run behavior belongs to In big data quantity type, including:
According to the historgraphic data recording of the object run behavior, it is corresponding to obtain the object run behavior in preset time The length of data;
Judge whether the length of the data is located in the range of default value;
If in the range of default value, judge that the type of the object run behavior belongs to big data quantity type;
If not being located in the range of default value, judge that the type of the object run behavior is not belonging to big data quantity type.
4. according to the method described in claim 2, it is characterized in that, described according to the network transmission mode, by the target The corresponding data to be reported of operation behavior are sent to server, including:
If the network transmission mode of the object run behavior is non-charging network mode, the network being currently accessed described in judgement Type whether belong to non-charging type;
If so, the corresponding data to be reported of the object run behavior are sent to service by the network being currently accessed Device;
If the network transmission mode of the object run behavior is overall network mode, the object run behavior is corresponded to Data to be reported server is sent to by the network that the mobile terminal is currently accessed.
5. according to the method described in claim 4, it is characterized in that, the type for the network being currently accessed described in the judgement whether Belong to non-charging type, including:
Obtain the current location of the mobile terminal;
Obtain the mark of non-charging network corresponding with the current location;
The mark for identifying whether to belong to the non-charging network for the network being currently accessed described in judgement;
If so, the type of network being currently accessed described in judgement belongs to non-charging type.
6. according to the method described in claim 5, it is characterized in that, the current location for obtaining the mobile terminal, including:
Obtain the network address of the present access network of the mobile terminal;
The current location of the mobile terminal is obtained according to the network address.
7. according to the method described in claim 1, it is characterized in that, the information according to the object run behavior, obtains The corresponding network transmission mode of the object run behavior, including:
In the information of preset operation behavior and the correspondence of network transmission mode, obtain the object run behavior and correspond to Network transmission mode.
8. a kind of data reporting device, which is characterized in that including:
First acquisition unit, for obtaining the information of the corresponding object run behavior of the application program in mobile terminal;
Second acquisition unit for the information according to the object run behavior, obtains the corresponding net of the object run behavior Network transmission mode;
Transmitting element, for according to the network transmission mode, the corresponding data to be reported of the object run behavior to be sent To server.
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 object run behavior of application program in mobile terminal;
According to the information of the object run behavior, the corresponding network transmission mode of the object run behavior is obtained;
According to the network transmission mode, the corresponding data to be reported of the object run behavior are sent to server.
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.
CN201711445553.8A 2017-12-27 2017-12-27 Data reporting method and device, mobile terminal and computer readable medium Expired - Fee Related CN108235237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711445553.8A CN108235237B (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
CN201711445553.8A CN108235237B (en) 2017-12-27 2017-12-27 Data reporting method and device, mobile terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN108235237A true CN108235237A (en) 2018-06-29
CN108235237B CN108235237B (en) 2020-12-08

Family

ID=62648145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711445553.8A Expired - Fee Related CN108235237B (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) CN108235237B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111989948A (en) * 2020-07-17 2020-11-24 北京小米移动软件有限公司 Positioning measurement data reporting method, device, terminal and storage medium
CN114157523A (en) * 2021-11-24 2022-03-08 珠海格力电器股份有限公司 Data reporting method and device, intelligent household equipment and storage medium
CN115086194A (en) * 2022-05-20 2022-09-20 阿里巴巴(中国)有限公司 Data transmission method for cloud application, computing equipment and computer storage medium
CN116381325A (en) * 2023-03-29 2023-07-04 四川辰鳗科技有限公司 Distributed energy metering method, system, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014104068A1 (en) * 2012-12-28 2014-07-03 株式会社Nttドコモ Wireless base station, router device, and mobile station
CN104853393A (en) * 2015-04-29 2015-08-19 努比亚技术有限公司 Network switching method and network switching device for mobile terminals
CN105072646A (en) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 Terminal Internet self-adaptive adjusting method based on China Unicom network type and device
CN105142186A (en) * 2015-07-24 2015-12-09 广东欧珀移动通信有限公司 Method and device for self-adaptively adjusting Internet access of terminal based on China mobile network type

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014104068A1 (en) * 2012-12-28 2014-07-03 株式会社Nttドコモ Wireless base station, router device, and mobile station
CN104853393A (en) * 2015-04-29 2015-08-19 努比亚技术有限公司 Network switching method and network switching device for mobile terminals
CN105072646A (en) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 Terminal Internet self-adaptive adjusting method based on China Unicom network type and device
CN105142186A (en) * 2015-07-24 2015-12-09 广东欧珀移动通信有限公司 Method and device for self-adaptively adjusting Internet access of terminal based on China mobile network type

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨鑫芳: "节省手机数据流量的常规方法", 《电脑知识与技术》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111989948A (en) * 2020-07-17 2020-11-24 北京小米移动软件有限公司 Positioning measurement data reporting method, device, terminal and storage medium
CN111989948B (en) * 2020-07-17 2023-07-25 北京小米移动软件有限公司 Method, device, terminal and storage medium for reporting positioning measurement data
CN114157523A (en) * 2021-11-24 2022-03-08 珠海格力电器股份有限公司 Data reporting method and device, intelligent household equipment and storage medium
CN114157523B (en) * 2021-11-24 2022-10-11 珠海格力电器股份有限公司 Data reporting method and device, intelligent household equipment and storage medium
CN115086194A (en) * 2022-05-20 2022-09-20 阿里巴巴(中国)有限公司 Data transmission method for cloud application, computing equipment and computer storage medium
CN115086194B (en) * 2022-05-20 2024-02-02 阿里巴巴(中国)有限公司 Cloud application data transmission method, computing device and computer storage medium
CN116381325A (en) * 2023-03-29 2023-07-04 四川辰鳗科技有限公司 Distributed energy metering method, system, electronic equipment and medium

Also Published As

Publication number Publication date
CN108235237B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN108134838A (en) data reporting method, device, mobile terminal and computer-readable medium
CN108235237A (en) data reporting method, device, mobile terminal and computer-readable medium
CN108717343A (en) Application icon processing method, device and mobile terminal
CN104917796B (en) Credit accounts creating device, system and method
CN108235308A (en) data reporting method, device, mobile terminal and computer-readable medium
CN108228025A (en) message display method, device, mobile terminal and storage medium
CN108446211A (en) Browser exception collection method, device, mobile terminal and storage medium
CN105516258A (en) Information interaction system, method and device
CN108200546A (en) data reporting method, device, mobile terminal and computer-readable medium
CN108762859A (en) Wallpaper displaying method, device, mobile terminal and storage medium
CN107766548A (en) Method for information display, device, mobile terminal and readable storage medium storing program for executing
CN108255674A (en) multi-process browser process log collecting method, device and mobile terminal
CN108536504A (en) page display method, device, mobile terminal and storage medium
CN108647050A (en) Application program launching method, device and mobile terminal
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN108512997A (en) Display methods, device, mobile terminal and storage medium
CN106255102A (en) The authentication method of a kind of terminal unit and relevant device
CN108650335A (en) The method, apparatus and test equipment being communicatively coupled with mobile terminal to be tested
CN108494851B (en) Application program recommended method, device and server
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN108803961A (en) Data processing method, device and mobile terminal
CN107908664A (en) Information-pushing method, device, mobile terminal and readable storage medium storing program for executing
CN110362699A (en) Picture searching method, apparatus, mobile terminal and computer-readable medium
CN107896285A (en) data reporting method, device, mobile terminal and computer-readable medium
CN107743151A (en) Content delivery method, device, mobile terminal and server

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201208

CF01 Termination of patent right due to non-payment of annual fee