CN108235237B - Data reporting method and device, mobile terminal and computer readable medium - Google Patents

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

Info

Publication number
CN108235237B
CN108235237B CN201711445553.8A CN201711445553A CN108235237B CN 108235237 B CN108235237 B CN 108235237B CN 201711445553 A CN201711445553 A CN 201711445553A CN 108235237 B CN108235237 B CN 108235237B
Authority
CN
China
Prior art keywords
operation behavior
target operation
network
data
volume type
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.)
Expired - Fee Related
Application number
CN201711445553.8A
Other languages
Chinese (zh)
Other versions
CN108235237A (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

Images

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 application discloses a data reporting method, a data reporting device, a mobile terminal and a computer readable medium, which belong to the technical field of information processing, and the method comprises the following steps: acquiring information of a target operation behavior corresponding to an application program in the mobile terminal; acquiring a network transmission mode corresponding to the target operation behavior according to the information of the target operation behavior; and sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode. Different operation behaviors of one application program correspond to one network transmission mode, so that different data of the same application program can be uploaded in different network transmission modes due to different operation behaviors, and the diversity of network settings for data acquisition is improved.

Description

Data reporting method and device, mobile terminal and computer readable medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a data reporting method and apparatus, a mobile terminal, and a computer readable medium.
Background
At present, mobile terminals such as mobile phones and tablet computers are increasingly popularized, the functions of the mobile terminals are also increasingly powerful, people can make calls and send short messages by using the mobile terminals, can also watch webpages, send microblogs and the like by using the mobile terminals, a large amount of information related to users and data generated by the mobile terminals during operation can be stored in the mobile terminals, and the behaviors of the users and the operation conditions of the mobile terminals can be analyzed by collecting the data. However, in the flow collection process, different network collection modes are often set for different applications, and the network setting for data collection is too single.
Disclosure of Invention
The application provides a data reporting method, a data reporting device, a mobile terminal and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a data reporting method, including: acquiring information of a target operation behavior corresponding to an application program in the mobile terminal; acquiring a network transmission mode corresponding to the target operation behavior according to the information of the target operation behavior; and sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode.
In a second aspect, an embodiment of the present application further provides a data reporting apparatus, including: the device comprises a first acquisition unit, a second acquisition unit and a sending unit. The first acquisition unit is used for acquiring information of a target operation behavior corresponding to an application program in the mobile terminal. And the second acquisition unit is used for acquiring the network transmission mode corresponding to the target operation behavior according to the information of the target operation behavior. And the sending unit is used for sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode.
In a third aspect, an embodiment of the present application further provides a mobile terminal, which includes a memory and a processor, where the memory is coupled with the processor. The memory stores instructions that, when executed by the processor, cause the processor to: acquiring information of a target operation behavior corresponding to an application program in the mobile terminal; acquiring a network transmission mode corresponding to the target operation behavior according to the information of the target operation behavior; and sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode.
In a fourth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
According to the data reporting method and device, the mobile terminal and the computer readable medium provided by the embodiment of the application, the information of the target operation behavior corresponding to the application program is obtained first, the network transmission mode corresponding to the target operation behavior is obtained according to the information of the target operation behavior, and then the data to be reported corresponding to the target operation behavior is sent to the server according to the network transmission mode. Therefore, different operation behaviors of one application program correspond to one network transmission mode, so that different data of the same application program can be uploaded in different network transmission modes due to different operation behaviors, and the diversity of network settings for data acquisition is improved.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows an application scenario diagram of a data reporting method and apparatus provided in the embodiment of the present application;
fig. 2 is a flowchart illustrating a method for reporting data according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for reporting data according to another embodiment of the present application;
fig. 4 shows a block diagram of a data reporting apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a data reporting apparatus according to another embodiment of the present application;
fig. 6 shows a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
fig. 7 shows a block diagram of modules of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows an application scenario diagram of the data reporting method and apparatus provided in the embodiment of the present application. As shown in fig. 1, a user terminal 1 and a server 2 are located in a wireless network or a wired network, and the user terminal 1 and the server 2 perform data interaction.
In the embodiment of the present application, the user terminal 1 may be a mobile terminal device, and may include, for example, a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a vehicle-mounted computer, a wearable mobile terminal, and the like.
In some embodiments, the client is installed within the user terminal 1. Specifically, the client may be an application installed in the user terminal 1. The operation of the user aiming at the client and the operation data of the client can be reported to the server. Specifically, the client includes a plurality of service modules, each of which represents a certain function of the client, for example, a call service. Each business module comprises a plurality of events, and the events represent specific operation behaviors, such as sharing a picture, publishing a comment and the like. The data of the client can be reported to the server under the condition of meeting the conditions. It should be noted that the number of clients may be multiple.
The server 2 is provided with a storage space for storing data of the client, for managing, storing user data, and providing user services. The server 2 may be an individual server, or a server cluster, or a local server, or a cloud server.
However, the existing network transmission mode setting is usually the unified setting for a certain application program, and different network transmission modes are set for different application programs, and the setting mode is too single. Therefore, in order to overcome the above-mentioned drawbacks, please refer to fig. 2, which shows that the present embodiment provides a data reporting method for improving the diversity of network transmission modes for data reporting. Specifically, the method comprises the following steps: s201 to S203.
S201: and acquiring information of a target operation behavior corresponding to an application program in the mobile terminal.
The operation behavior is an event corresponding to the application program, specifically, the application program corresponds to a plurality of services, and the services correspond to the application program. Specifically, the application program has a plurality of functional modules, for example, an application center has functions of forum and application program management, and the forum and the application program management are two services of the application program, and for example, an address book and a call of communication software are also two services. The mobile terminal is preset with the corresponding relation of the identification of each service and the service type.
The operational behavior corresponds to a business of the application. Specifically, the application program comprises a plurality of services, each service comprises a plurality of events, and each event represents an operation behavior. For example, taking social software as an example, an interactive service under the social software, for example, a friend circle service under WeChat, a picture or a video shared under the interactive service belongs to a specific operation behavior, and a correspondence between an identifier of each operation behavior and a type of the operation behavior is preset in the mobile terminal.
The information of the operation behavior includes identification, type and the like of the operation behavior, and specifically, the type of the operation behavior may include a large data volume type, a normal data volume type and a low data volume type. Wherein the large data volume type indicates that the operation behavior belongs to a type capable of generating a large amount of data in a certain time, for example, a frequently occurring operation behavior, for example, a screen lock.
The mobile terminal stores an application program corresponding to the information of each operation behavior, and specifically, each service under each application program may correspond to one operation behavior.
S202: and acquiring a network transmission mode corresponding to the target operation behavior according to the information of the target operation behavior.
The mobile terminal is internally preset with a corresponding table of operation behaviors and network transmission modes, the corresponding table comprises a plurality of operation behaviors and network transmission modes corresponding to each operation behavior, and the network transmission modes comprise a charging network mode, a non-charging network mode and all network modes. The data of the operation behavior is transmitted through the non-charging network in the non-charging network mode, the data of the operation behavior is transmitted through the charging network in the charging network transmission mode, and the data of the operation behavior represented by all the network modes is not limited in the network transmission mode and can be transmitted according to the currently connected network. Then, according to the corresponding table, the network transmission mode corresponding to the target operation behavior can be obtained, wherein the corresponding table can be set by the user according to the actual needs.
The charging network is a network which charges according to the flow, for example, 30 yuan packet 2G flow per month, the conversion is that each flow of data amount corresponds to a charge, and after a certain charge is paid, the flow of some networks does not generate additional charge no matter how much flow is used, for example, WiFi, and the flow of WiFi in the month is unlimited when a certain charge is paid per month.
S203: and sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode.
After the network transmission mode corresponding to the target operation behavior is obtained, whether the network currently accessed by the mobile terminal is matched with the network transmission mode corresponding to the target operation behavior is judged, and if yes, the data to be reported corresponding to the target operation behavior is sent to the server through the currently accessed network.
For example, an identifier of a network currently accessed by the mobile terminal is obtained, and whether a network transmission mode corresponding to the target operation behavior is matched with the identifier of the currently accessed network is judged according to the identifier of the currently accessed network. The method for acquiring the identifier of the current access network may be to first determine whether there is a network connection currently, and if so, look up the identifier of the network displayed on a status bar of the system of the mobile terminal, where the status bar is a status bar for displaying the current mobile phone power, the network status, and the signal strength. Of course, the identity of the network currently accessed by the mobile terminal, for example, getActiveNetworkInfo (), may also be obtained through a function within the system of the mobile terminal.
Then, the charging type corresponding to the network accessed currently is determined, wherein the charging type comprises a charging type and a non-charging type. The setting of the charging type may be for presetting, for example, in china, the network such as 2G, 3G, 4G, etc. belongs to a charging network, and WiFi belongs to a non-charging network, or, although the traffic is charging, but the cost is not too high, the user may classify the identity of the network as a non-charging network.
Of course, the setting may also be performed in conjunction with a specific network service corresponding to the SIM card of the mobile terminal, for example, a 4G network of telecommunications used by the user, and the user subscribes to a monthly subscription service, that is, the flow rate per month is not limited. The adding is performed manually by the user, and certainly, the mobile terminal may interact with a server of an operator to obtain the traffic service of the user of the SIM card of the mobile terminal, for example, the mobile terminal sends a traffic service obtaining request to the server of the operator, where the traffic service obtaining request includes a mobile phone number of the mobile terminal, then, the server of the operator sends the traffic service corresponding to the mobile phone number to the mobile terminal, the mobile terminal obtains the traffic service of the user of the SIM card of the mobile terminal, and then determines whether the mobile terminal corresponds to a service with unlimited traffic, if so, the identifier of the network corresponding to the operator is classified as a non-charging network type, and if not, the identifier of the network corresponding to the operator is classified as a charging network type.
After the currently accessed network is obtained, the charging type of the currently accessed network is determined, and then whether the network transmission mode corresponding to the target operation behavior is matched or not is judged. For example, if the currently accessed network is a 4G mobile network of the china telecommunication and belongs to a charging type, and the network transmission mode corresponding to the target operation behavior is a non-charging network mode, it is determined that the two are not matched, the data to be reported corresponding to the target operation behavior is not sent to the server, and if the currently accessed network is a WiFi network of the china telecommunication, it is determined that the two are matched, and the data to be reported corresponding to the target operation behavior is sent to the server.
In addition, data can be reported only by using a non-charging network mode for data of a large number of types of operation behaviors, and for other operation behaviors, because the generated data amount is small, the data can be uploaded in a non-complete network mode, and a specific mode can be as follows: fig. 3 shows a method for reporting data, which is used to improve diversity of network transmission modes for reporting data according to an embodiment of the present application. Specifically, the method comprises the following steps: s301 to S308.
S301: and acquiring information of a target operation behavior corresponding to an application program in the mobile terminal.
S302: and judging whether the type of the target operation behavior belongs to a large data volume type.
Specifically, the length of the data corresponding to the target operation behavior within a preset time is obtained according to the historical data record of the target operation behavior. The historical data record of the target operation behavior comprises an identifier of an application program corresponding to the target operation behavior, an identifier of a corresponding service, data generated each time and time corresponding to the data, and the data corresponding to the target operation behavior in the preset time is obtained, so that the length of the data corresponding to the target operation behavior in the preset time is counted.
Then, judging whether the length of the data is within a preset numerical range, and if so, judging that the type of the target operation behavior belongs to a large data volume type; and if the target operation behavior is not within the preset numerical range, judging that the type of the target operation behavior does not belong to a large data volume type. The preset value range is a value range preset by a user, for example, is greater than MKB, where M is a natural number greater than 0. It should be noted that the preset value range corresponds to the preset time, and the longer the preset time is, the larger the value of M in the preset value range is. If the target operation behavior is within the preset value range, that is, greater than M, it means that the data generated by the target operation behavior within the preset time is large, and therefore, the target operation behavior is classified as a large data size type, and conversely, the target operation behavior is classified as a non-large data size type.
S303: and setting the network transmission mode corresponding to the target operation behavior as a non-charging network mode.
And if the type of the target operation behavior belongs to the large data volume type, setting the network transmission mode corresponding to the target operation behavior as a non-charging network mode. That is, the data volume is large, and non-charging network transmission is needed, so as to avoid over-high cost.
S304: and acquiring the type of the network currently accessed by the mobile terminal.
S305: and judging whether the type of the currently accessed network belongs to a non-charging type.
Specifically, the identifier of the currently accessed network is obtained, and then whether the type of the currently accessed network belongs to a charging type or a non-charging type is obtained according to the matching of the identifier of the currently accessed network and a pre-non-charging type network list and a charging type network list. In particular, reference may be made to the foregoing embodiments.
Further, consider that in different regions, the corresponding charging networks are different, e.g., in china, WiFi belongs to a non-charging network, and in india, WiFi belongs to a charging network for charging by flow. Therefore, the manner of determining whether the type of the currently accessed network belongs to the non-charging type may include: acquiring the current position of the mobile terminal; acquiring the identifier of the non-charging network corresponding to the current position; judging whether the identifier of the currently accessed network belongs to the identifier of the non-charging network; if so, judging that the type of the currently accessed network belongs to a non-charging type.
Specifically, the current location of the mobile terminal may be obtained through a positioning module in the mobile terminal, for example, a GPS chip, or may be obtained through an area to which the currently accessed network belongs, that is, the area to which the currently accessed network belongs is taken as the current location of the mobile terminal. The method for acquiring the area to which the currently accessed network belongs may be to acquire a network address of the currently accessed network, and acquire the area to which the currently accessed network belongs according to the network address, specifically, when the mobile terminal accesses the network, or acquire a network address, such as an IP address, of the user accessing the network, and the network address of the currently accessed network of the mobile terminal can be acquired through some instructions or codes. For example, if the network to which the mobile terminal currently accesses is a mobile communication network, e.g., a 4G network, the network address of the current access network of the mobile terminal is acquired through getLocal IpAddress (). If the network currently accessed by the mobile terminal is a wireless local area network, such as Wi-Fi, the network address of the currently accessed network of the mobile terminal is acquired through intoip (ipAddress).
After the network address is obtained, the location information of the mobile terminal corresponding to the network address can be obtained according to the preset corresponding relationship between the network address and the location information. For example, if 103.21.176.0 is the IP address of china, the corresponding location information is china, and if 195.090.053.000 is the IP address of the united states, the corresponding location information of the mobile terminal is the united states.
The identifier of the non-charging network corresponding to the current location is obtained, and may be set by the user according to actual experience, that is, the user enters in advance a correspondence between the location and the identifier of the non-charging network at the mobile terminal, for example, in china, the identifier of the corresponding non-charging network is WIFI, and in the united states, the identifier of the corresponding non-charging network is WIFI and the mobile network. And then, the identifier of the currently accessed network and the corresponding relationship are searched to obtain whether the identifier of the currently accessed network belongs to the identifier of the non-charging network in the corresponding relationship, for example, if the identifier of the currently accessed network is the China telecom 4G, and the identifier of the non-charging network corresponding to the current position is WIFI, the China telecom 4G is judged to belong to the charging network through comparison.
S306: and sending the data to be reported corresponding to the target operation behavior to a server through the currently accessed network.
And if the network transmission mode corresponding to the target operation behavior is a non-charging network mode and the currently accessed network belongs to a non-charging type, sending the data to be reported corresponding to the target operation behavior to a server through the currently accessed network. Otherwise, when the current network is a non-charging type, the data to be reported corresponding to the target operation behavior is sent to the server.
In addition, under the condition that the network transmission mode corresponding to the target operation behavior is a non-charging network mode, under the condition that the currently accessed network is judged to belong to a charging type, a dialog box is popped up on an interface of the mobile terminal, whether the network is continuously used for reporting data under the condition that the current network belongs to the charging type is inquired, if yes, after a report confirmation instruction input by a user based on the dialog box is obtained, the data to be reported corresponding to the target operation behavior is sent to a server through the currently accessed network.
S307: and setting the network transmission modes corresponding to the target operation behaviors as all network modes.
And if the type of the target operation behavior is judged not to belong to the large data volume type, setting the network transmission mode corresponding to the target operation behavior as a whole network mode. That is, the amount of data of this type is small, and the network transmission method may not be limited.
S308: and sending the data to be reported corresponding to the target operation behavior to a server through a network currently accessed by the mobile terminal.
And after judging that the network transmission mode of the target operation behavior is all network modes, directly sending the data to be reported corresponding to the target operation behavior to a server through a currently accessed network.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
Fig. 4 shows a data reporting apparatus 400 for improving diversity of network transmission modes for data reporting according to an embodiment of the present application. Specifically, the apparatus includes: a first acquisition unit 401, a second acquisition unit 402 and a transmission unit 403.
A first obtaining unit 401, configured to obtain information of a target operation behavior corresponding to an application in the mobile terminal.
A second obtaining unit 402, configured to obtain, according to the information of the target operation behavior, a network transmission mode corresponding to the target operation behavior.
A sending unit 403, configured to send, according to the network transmission manner, to-be-reported data corresponding to the target operation behavior to a server.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 5, a data reporting apparatus 500 for improving diversity of network transmission modes for data reporting is provided in the embodiment of the present application. Specifically, the apparatus includes: a first acquisition unit 501, a second acquisition unit 502 and a transmission unit 503.
A first obtaining unit 501, configured to obtain information of a target operation behavior corresponding to an application in a mobile terminal.
A second obtaining unit 502, configured to obtain, according to the information of the target operation behavior, a network transmission mode corresponding to the target operation behavior.
Specifically, the second acquiring unit 502 includes: a judgment subunit 5021, a first setting subunit 5022, and a second setting subunit 5023.
A judging subunit 5021, configured to judge whether the type of the target operation behavior belongs to a large data volume type.
A first setting subunit 5022, configured to set the network transmission mode corresponding to the target operation behavior as a non-charging network mode.
A second setting subunit 5023, configured to set the network transmission mode corresponding to the target operation behavior as a full network mode.
A sending unit 503, configured to send the data to be reported corresponding to the target operation behavior to a server according to the network transmission manner.
Specifically, the transmitting unit 503 includes: a type determination sub-unit 5031, a first transmission sub-unit 5032, and a second transmission sub-unit 5033.
A type determining sub-unit 5031, configured to determine, if the network transmission mode of the target operation behavior is a non-charging network mode, whether the type of the currently accessed network belongs to a non-charging type.
A first sending sub-unit 5032, configured to send, if yes, the data to be reported corresponding to the target operation behavior to a server through the currently accessed network.
A second sending sub-unit 5033, configured to send, if the network transmission mode of the target operation behavior is a full network mode, the data to be reported corresponding to the target operation behavior to a server through a network to which the mobile terminal is currently accessed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 6, based on the method and apparatus, the embodiment of the present application further provides a mobile terminal 100, which includes an electronic body 10, where the electronic body 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 7, in an actual application scenario, the mobile terminal 100 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 7 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE802.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless Communication), Wi-11 Wireless Access (wimax), and any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, gravitational acceleration sensors, and other sensors.
Specifically, the light sensors may include a light sensor 114F, a pressure sensor 114G. Among them, the pressure sensor 114G may detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor 114G may be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, as well as the magnitude of the pressure.
Referring to fig. 6 again, in the embodiment shown in fig. 6, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F may turn off the display output when an object is near the main display 120, for example, when the electronic body portion 10 moves to the ear.
As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the mobile terminal 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The mobile terminal 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 100. In this embodiment, the locator 119 implements the positioning of the mobile terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 100 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
To sum up, according to the data reporting method, the data reporting device, the mobile terminal, and the computer readable medium provided in the embodiments of the present application, information of a target operation behavior corresponding to an application program is obtained first, a network transmission mode corresponding to the target operation behavior is obtained according to the information of the target operation behavior, and then data to be reported corresponding to the target operation behavior is sent to a server according to the network transmission mode. Therefore, different operation behaviors of one application program correspond to one network transmission mode, so that different data of the same application program can be uploaded in different network transmission modes due to different operation behaviors, and the diversity of network settings for data acquisition is improved.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A data reporting method is characterized by comprising the following steps:
acquiring information of a target operation behavior corresponding to an application program in a mobile terminal, wherein the information of the target operation behavior comprises a data volume type of the target operation behavior, the data volume type comprises a large data volume type and a non-large data volume type, and data generated by the target operation behavior corresponding to the large data volume type in a preset time is larger than data generated by the target operation behavior corresponding to the non-large data volume type in the preset time;
acquiring a network transmission mode corresponding to the target operation behavior according to the data volume type of the target operation behavior;
and sending data to be reported corresponding to the target operation behavior to a server according to the network transmission mode, wherein the data to be reported refers to data generated by the target operation behavior, and the data generated by the target operation behavior each time is recorded in a historical data record of the target operation behavior.
2. The method according to claim 1, wherein the obtaining a network transmission mode corresponding to the target operation behavior according to the data volume type of the target operation behavior comprises:
judging whether the data volume type of the target operation behavior belongs to a large data volume type;
if so, setting a network transmission mode corresponding to the target operation behavior as a non-charging network mode;
if not, setting the network transmission mode corresponding to the target operation behavior as a whole network mode.
3. The method of claim 2, wherein the determining whether the data volume type of the target operation behavior belongs to a big data volume type comprises:
acquiring the length of data corresponding to the target operation behavior within preset time according to the historical data record of the target operation behavior;
judging whether the length of the data is within a preset numerical range or not;
if the target operation behavior is within the preset numerical range, judging that the data volume type of the target operation behavior belongs to a large data volume type;
and if the target operation behavior is not within the preset numerical range, judging that the data volume type of the target operation behavior does not belong to a large data volume type.
4. The method according to claim 2, wherein the sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode includes:
if the network transmission mode of the target operation behavior is a non-charging network mode, judging whether the type of the currently accessed network belongs to a non-charging type;
if so, sending the data to be reported corresponding to the target operation behavior to a server through the currently accessed network;
and if the network transmission mode of the target operation behavior is all network modes, sending the data to be reported corresponding to the target operation behavior to a server through a network currently accessed by the mobile terminal.
5. The method of claim 4, wherein the determining whether the type of the currently accessed network is a non-charging type comprises:
acquiring the current position of the mobile terminal;
acquiring the identifier of the non-charging network corresponding to the current position;
judging whether the identifier of the currently accessed network belongs to the identifier of the non-charging network;
if so, judging that the type of the currently accessed network belongs to a non-charging type.
6. The method of claim 5, wherein the obtaining the current location of the mobile terminal comprises:
acquiring a network address of a current access network of the mobile terminal;
and acquiring the current position of the mobile terminal according to the network address.
7. The method according to claim 1, wherein the obtaining a network transmission mode corresponding to the target operation behavior according to the data volume type of the target operation behavior comprises:
and acquiring a network transmission mode corresponding to the target operation behavior in the corresponding relation between the data volume type of the preset operation behavior and the network transmission mode.
8. A data reporting apparatus, comprising:
the mobile terminal comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining information of a target operation behavior corresponding to an application program in the mobile terminal, the information of the target operation behavior comprises a data volume type of the target operation behavior, the data volume type comprises a large data volume type and a non-large data volume type, and data generated by the target operation behavior corresponding to the large data volume type in a preset time is larger than data generated by the target operation behavior corresponding to the non-large data volume type in the preset time;
the second obtaining unit is used for obtaining a network transmission mode corresponding to the target operation behavior according to the data volume type of the target operation behavior;
and the sending unit is used for sending the data to be reported corresponding to the target operation behavior to a server according to the network transmission mode, wherein the data to be reported refers to the data generated by the target operation behavior, and the data generated by the target operation behavior is recorded in the historical data record of the target operation behavior every time.
9. A mobile terminal comprising a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to:
acquiring information of a target operation behavior corresponding to an application program in a mobile terminal, wherein the information of the target operation behavior comprises a data volume type of the target operation behavior, the data volume type comprises a large data volume type and a non-large data volume type, and data generated by the target operation behavior corresponding to the large data volume type in a preset time is larger than data generated by the target operation behavior corresponding to the non-large data volume type in the preset time;
acquiring a network transmission mode corresponding to the target operation behavior according to the data volume type of the target operation behavior;
and sending data to be reported corresponding to the target operation behavior to a server according to the network transmission mode, wherein the data to be reported refers to data generated by the target operation behavior, and the data generated by the target operation behavior each time is recorded in a historical data record of the target operation behavior by the mobile terminal.
10. A computer readable medium having program code stored thereon, the program code being executable by a processor to cause the processor to perform the method of any of claims 1-7.
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 CN108235237A (en) 2018-06-29
CN108235237B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230232266A1 (en) * 2020-07-17 2023-07-20 Beijing Xiaomi Mobile Software Co., Ltd. Method and terminal for reporting location measurement data, and storage medium
CN114157523B (en) * 2021-11-24 2022-10-11 珠海格力电器股份有限公司 Data reporting method and device, intelligent household equipment and 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

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
节省手机数据流量的常规方法;杨鑫芳;《电脑知识与技术》;20161130(第11期);第1节、图1 *

Also Published As

Publication number Publication date
CN108235237A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN107464557B (en) Call recording method and device, mobile terminal and storage medium
CN108235308B (en) Data reporting method and device, mobile terminal and computer readable medium
CN110168483B (en) Shortcut menu for displaying different applications on different screens
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN104518945B (en) A kind of transmission, the methods, devices and systems of reception social network information
KR20150110060A (en) Method and electronic device for displaying contact
CN108834132B (en) Data transmission method and equipment and related medium product
CN107766548B (en) Information display method and device, mobile terminal and readable storage medium
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108134838A (en) data reporting method, device, mobile terminal and computer-readable medium
CN109801136B (en) Food ordering method, system, terminal, server and medium for preventing malicious ordering
CN113038434A (en) Device registration method and device, mobile terminal and storage medium
CN107104930A (en) It is a kind of that the methods, devices and systems for checking authority are set
CN110362699B (en) Picture searching method and device, mobile terminal and computer readable medium
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN108494851A (en) Application program recommends method, apparatus and mobile terminal
CN108848566B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108901062B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN107743151B (en) Content pushing method and device, mobile terminal and server
CN108990104A (en) Wireless communication transmission method, device, mobile terminal and computer-readable 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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201208