CN111506439B - Data acquisition method and device, storage medium and mobile terminal - Google Patents

Data acquisition method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111506439B
CN111506439B CN202010269194.0A CN202010269194A CN111506439B CN 111506439 B CN111506439 B CN 111506439B CN 202010269194 A CN202010269194 A CN 202010269194A CN 111506439 B CN111506439 B CN 111506439B
Authority
CN
China
Prior art keywords
application
data
acquisition period
acquire
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010269194.0A
Other languages
Chinese (zh)
Other versions
CN111506439A (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.)
Beijing Lange Cloud Commerce Technology Co ltd
Original Assignee
Beijing Lange Cloud Commerce Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lange Cloud Commerce Technology Co ltd filed Critical Beijing Lange Cloud Commerce Technology Co ltd
Priority to CN202010269194.0A priority Critical patent/CN111506439B/en
Publication of CN111506439A publication Critical patent/CN111506439A/en
Application granted granted Critical
Publication of CN111506439B publication Critical patent/CN111506439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a data acquisition method, a device, a storage medium and a mobile terminal, wherein the method comprises the following steps: determining an application needing to acquire data to obtain an application set; acquiring an acquisition period of acquiring the data by each application in the application set; when a first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition period; and if the fact that the second application needs to acquire the data is detected, synchronously transmitting the data acquired by the first application to the second application. The method can avoid the application program from repeatedly sending the data to a plurality of applications, reduce the energy of the occupied battery, and further improve the cruising ability of the battery.

Description

Data acquisition method and device, storage medium and mobile terminal
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for acquiring data, a storage medium, and a mobile terminal.
Background
The functions in the mobile terminal are more and more complex, the functions such as conversation and short messages are far exceeded, more and more technologies such as multimedia, artificial intelligence and the like are also incorporated into the mobile terminal, meanwhile, along with the great increase of users, the corresponding application program development is also in a very popular way, various kinds of application programs are in full view at present, and the users who singly use the application programs use the compass are also very much, such as maps, chat software and the like; these applications also have to be installed by the user in the mobile terminal.
Currently, there are many methods for controlling the flow of liquid. Taking compass data as an example, when an application program requests the compass data, the compass data needs to be sent upwards, and because users often have the habit of not turning off after the application program is opened on a mobile terminal, when various application programs request the compass data, the compass continuously works, so that applications such as the compass occupy more battery energy, and the cruising ability of a battery is reduced.
Disclosure of Invention
The embodiment of the application provides a data acquisition method, which can avoid an application program from repeatedly sending own data to a plurality of applications, reduce the occupied battery energy and further improve the cruising ability of a battery.
The embodiment of the application provides a data acquisition method, which is applied to a mobile terminal and comprises the following steps:
determining an application needing to acquire data to obtain an application set;
acquiring an acquisition period of acquiring the data by each application in the application set;
when a first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition period;
and if the fact that the second application needs to acquire the data is detected, synchronously transmitting the data acquired by the first application to the second application.
The embodiment of the application also provides a data acquisition device, which is applied to the mobile terminal and comprises:
the determining unit is used for determining the application needing to acquire the data to obtain an application set;
the acquisition unit is used for acquiring the acquisition period of each application in the application set for acquiring the data;
the detection unit is used for detecting whether a second application needs to acquire the data currently or not based on the acquisition period when the first application needs to acquire the data;
and the sending unit is used for synchronously sending the data acquired by the first application to the second application if the second application is detected to be required to acquire the data currently.
The embodiment of the application also provides a storage medium in which a computer program is stored, which when run on a computer causes the computer to execute the data acquisition method as described above.
The embodiment of the application also provides a mobile terminal, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the data acquisition method by calling the computer program stored in the memory.
The data acquisition method provided by the embodiment of the application comprises the following steps: determining an application needing to acquire data to obtain an application set; acquiring an acquisition period of acquiring the data by each application in the application set; when a first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition period; and if the fact that the second application needs to acquire the data is detected, synchronously transmitting the data acquired by the first application to the second application. The method can avoid the application program from repeatedly sending the data to a plurality of applications, reduce the energy of the occupied battery, and further improve the cruising ability of the battery.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a first flowchart of a data acquisition method according to an embodiment of the present application.
Fig. 2 is a second flowchart of a data acquisition method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application.
Fig. 4 is a specific structural diagram 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. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Referring to fig. 1, fig. 1 is a first flowchart of a method for acquiring data according to an embodiment of the present application. The data acquisition method applied to the mobile terminal comprises the following steps:
step 101, determining an application needing to acquire data, and obtaining an application set.
Specifically, the mobile terminal may be a device with a camera module, such as a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, etc., where various application programs, such as applications with entertainment functions (e.g., video applications, compass applications, game applications, and reading software), and applications with service functions (e.g., map navigation applications, dining applications, etc.), are stored in the mobile terminal.
Specifically, taking a game application and a map navigation application as examples, the game application and the map navigation application both need to acquire compass data in the compass application, and when the game application and the map navigation application are downloaded in the mobile terminal, the mobile terminal gives the authority of the compass application to the application, so that the parameters of the compass application which need to be acquired can be known by checking the existence of the authority of the compass application in which applications.
Thus, the step further comprises:
acquiring the target authority information to be applied;
and determining the application carrying the target authority information in the mobile terminal as the application needing to acquire data.
Step 102, acquiring an acquisition period of data acquired by each application in the application set.
Specifically, when an application similar to a map navigation application runs in the background, the compass data can be intermittently acquired to update the direction of the mobile terminal in the map, and the intermittent acquisition time is the acquisition period. The acquisition period of acquiring data by each application in the acquisition application set can be determined by acquiring the time interval between two adjacent acquisitions of each application when acquiring data. Thus, the step may further comprise:
acquiring a time difference value when each application in the application set continuously acquires the data twice;
and determining the time difference value as an acquisition period of the application.
Step 103, when the first application needs to acquire the data, detecting whether a second application needs to acquire the data currently based on an acquisition period.
Specifically, in order to avoid that multiple applications, such as a game application and a map navigation application, call a compass application to acquire compass data at the same time, when one application calls the compass application, whether other applications exist or not can be detected according to the acquisition period of the application, and the compass application needs to be called to acquire the compass data at present. If the data is detected to be acquired by other applications, the data sent to the application can be intercepted and sent to other applications needing to acquire the data, so that a plurality of applications can be prevented from calling another application to acquire the data at the same time.
When detecting that an application initiating a call instruction to an application of which parameters are to be acquired exists in an application set, the acquisition periods of other applications in the application set can be matched according to the acquisition periods of the application, and a specific matching mode can be used for detecting whether the acquisition periods of the application initiating the call instruction can divide the acquisition periods of the other applications, for example, the acquisition period of the application A is 4s for acquiring data once, the acquisition period of the application B is 2s for acquiring data once, and then the application B also needs to acquire data when the application A acquires the data, so that the application B can be determined according to the acquisition periods. Thus, the step may further comprise:
acquiring an acquisition period corresponding to the first application and a target acquisition period corresponding to other applications, wherein the other applications are other applications except the first application in the application set;
and detecting whether the acquisition period corresponding to the first application is matched with the target acquisition period.
Because the acquisition period of the application a can be divided by the acquisition period of the application B, detecting whether the acquisition period corresponding to the first application matches the target acquisition period includes:
and detecting whether the target acquisition period is divided by the acquisition period corresponding to the first application.
Step 104, if it is detected that the second application needs to acquire the data currently, synchronously transmitting the data acquired by the first application to the second application.
If it is detected in step 103 that there are other applications that need to acquire data, the data may be intercepted and synchronously sent to other applications in the data set that need to acquire data currently when, for example, the compass application returns the data to the first application that invokes the compass application.
In step 103, since it is required to match whether the second application needs to acquire data according to the data period, the step may further include:
if the acquisition period corresponding to the first application is matched with the target acquisition period, determining the application with the matched acquisition period as a second application;
and synchronously transmitting the data acquired by the first application to the second application.
Because the matching manner may be to detect whether the acquisition period of the first application may be divided by the acquisition period of the other applications, if the acquisition period corresponding to the first application matches the target acquisition period, determining the application with the matched acquisition period as the second application includes:
and if the target acquisition period is divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is divided by the acquisition period corresponding to the first application and the application of which the target acquisition period is divided by the acquisition period corresponding to the first application as a second application.
The data acquisition method provided by the embodiment of the application comprises the following steps: determining an application needing to acquire data to obtain an application set; acquiring an acquisition period of acquiring the data by each application in the application set; when a first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition period; and if the fact that the second application needs to acquire the data is detected, synchronously transmitting the data acquired by the first application to the second application. The method can avoid the application program from repeatedly sending the data to a plurality of applications, reduce the energy of the occupied battery, and further improve the cruising ability of the battery.
In some embodiments, as shown in fig. 2, there is provided a method for acquiring data, the method for acquiring data including:
step 201, obtaining the target authority information of the data application to be obtained.
Specifically, taking a game application and a map navigation application as examples, the game application and the map navigation application both need to acquire compass data in the compass application, and when the game application and the map navigation application are downloaded in the mobile terminal, the mobile terminal gives the authority of the compass application to the application, so that the parameters of the compass application which need to be acquired can be known by checking the existence of the authority of the compass application in which applications.
Step 202, determining the application carrying the target authority information in the mobile terminal as the application needing to acquire data, and obtaining an application set.
Step 203, obtaining a time difference value when each application in the application set continuously obtains data twice.
Specifically, when an application similar to a map navigation application runs in the background, the compass data can be intermittently acquired to update the direction of the mobile terminal in the map, and the intermittent acquisition time is the acquisition period. The acquisition period of acquiring data by each application in the acquisition application set can be determined by acquiring the time interval between two adjacent acquisitions of each application when acquiring data.
Step 204, determining the time difference value as an acquisition period of the application.
Step 205, when the first application needs to acquire the data, acquiring an acquisition period corresponding to the first application and a target acquisition period corresponding to other applications.
Specifically, in order to avoid that multiple applications, such as a game application and a map navigation application, call a compass application to acquire compass data at the same time, when one application calls the compass application, whether other applications exist or not can be detected according to the acquisition period of the application, and the compass application needs to be called to acquire the compass data at present. If the data is detected to be acquired by other applications, the data sent to the application can be intercepted and sent to other applications needing to acquire the data, so that a plurality of applications can be prevented from calling another application to acquire the data at the same time.
Step 206, detecting whether the target acquisition period is divided by the acquisition period corresponding to the first application.
When detecting that an application initiating a call instruction to an application of which parameters are to be acquired exists in an application set, the acquisition periods of other applications in the application set can be matched according to the acquisition periods of the application, and a specific matching mode can be used for detecting whether the acquisition periods of the application initiating the call instruction can divide the acquisition periods of the other applications, for example, the acquisition period of the application A is 4s for acquiring data once, the acquisition period of the application B is 2s for acquiring data once, and then the application B also needs to acquire data when the application A acquires the data, so that the application B can be determined according to the acquisition periods. Since the acquisition period of the application a can be divided by the acquisition period of the application B, it is detected whether the target acquisition period is divided by the acquisition period corresponding to the first application.
Step 207, if the target acquisition period is divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is divided by the acquisition period corresponding to the first application as the second application.
If it is detected in step 206 that the target acquisition period is divided by the acquisition period corresponding to the first application, it is indicated that when the application whose acquisition period is divided by the acquisition period of the first application acquires data from the first application, the application will acquire data, so that the application can be determined as the second application.
Step 208, synchronously sending the data acquired by the first application to the second application.
If it is detected that other applications need to acquire data, the data can be intercepted and synchronously sent to other applications in the data set needing to acquire the data when, for example, the compass application returns the data to the first application calling the compass application.
The data acquisition method provided by the embodiment of the application comprises the following steps: if it is detected that other applications need to acquire data, the data can be intercepted and synchronously sent to other applications in the data set needing to acquire the data when, for example, the compass application returns the data to the first application calling the compass application.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application. The data acquisition device comprises: a determination unit 31, an acquisition unit 32, a detection unit 33, and a transmission unit 34.
The determining unit 31 is configured to determine an application that needs to acquire data, and obtain an application set.
Specifically, the mobile terminal may be a device with a camera module, such as a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, etc., where various application programs, such as applications with entertainment functions (e.g., video applications, compass applications, game applications, and reading software), and applications with service functions (e.g., map navigation applications, dining applications, etc.), are stored in the mobile terminal.
Specifically, taking a game application and a map navigation application as examples, the game application and the map navigation application need to acquire compass data in a compass application, so that the applications are determined to be applications needing to acquire data, and an application set is obtained.
The acquiring unit 32 is configured to acquire an acquisition period for acquiring the data by each application in the application set.
Specifically, when an application similar to a map navigation application runs in the background, the compass data can be intermittently acquired to update the direction of the mobile terminal in the map, and the intermittent acquisition time is the acquisition period. The acquisition period of acquiring data by each application in the acquisition application set can be determined by acquiring the time interval between two adjacent acquisitions of each application when acquiring data.
The detecting unit 33 is configured to detect, when the first application needs to acquire the data, whether there is a second application currently that needs to acquire the data based on the acquisition period.
Specifically, in order to avoid that multiple applications, such as a game application and a map navigation application, call a compass application to acquire compass data at the same time, when one application calls the compass application, whether other applications exist or not can be detected according to the acquisition period of the application, and the compass application needs to be called to acquire the compass data at present. If the data is detected to be acquired by other applications, the data sent to the application can be intercepted and sent to other applications needing to acquire the data, so that a plurality of applications can be prevented from calling another application to acquire the data at the same time.
And the sending unit 34 is configured to send the data acquired by the first application to the second application synchronously if it is detected that the second application needs to acquire the data currently.
If it is detected in the detection unit 33 that there are other applications that need to acquire data, the data may be intercepted and synchronously sent to other applications in the data set that need to acquire data currently when, for example, the compass application returns the data to the first application that invokes the compass application.
In some embodiments, the detection unit 33 may further include:
the first acquisition subunit is used for acquiring an acquisition period corresponding to the first application and a target acquisition period corresponding to other applications, wherein the other applications are other applications except the first application in the application set;
the detection subunit is used for detecting whether the acquisition period corresponding to the first application is matched with the target acquisition period;
a transmitting unit comprising:
a first determining subunit, configured to determine, if an acquisition period corresponding to the first application matches the target acquisition period, an application with the matched acquisition period as a second application;
and the sending subunit is used for synchronously sending the data acquired by the first application to the second application.
In some embodiments, the determining unit 31 may further include:
the second acquisition subunit is used for acquiring the target authority information of the application to be acquired;
and the second determining subunit is used for determining the application carrying the target authority information in the mobile terminal as the application needing to acquire data.
Based on the above method, the present invention also provides a storage medium having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded by a processor and to perform the data acquisition method as described above.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Fig. 4 shows a specific block diagram of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the data acquisition method, the storage medium, and the terminal provided in the foregoing embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one is shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one is shown), and a power supply 190. Those skilled in the art will appreciate that the configuration of the mobile terminal 1200 shown in fig. 4 is not limiting of the mobile terminal 1200 and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
RF circuitry 110 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 the like. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device via a wireless network. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be used to store software programs and modules, such as the data acquisition method, apparatus, storage medium and program instructions/modules corresponding to the mobile terminal in the above embodiments, and the processor 180 executes the software programs and modules stored in the memory 120, thereby performing various functional applications and data processing, that is, implementing the function of chip mutual identification. Memory 120 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 a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 131 or thereabout by using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the mobile terminal 1200, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the displayed display content may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 moves to the ear. As for the second sensor such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. which may be further configured in the mobile terminal 1200, the description thereof will be omitted.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of a peripheral ear bud with mobile terminal 1200.
The mobile terminal 1200 may facilitate user receiving and sending e-mail, browsing web pages, accessing streaming media, etc., via the transmission module 170, which may provide wireless broadband internet access to the user.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Specifically, the processor 180 includes: an arithmetic logic unit (Arithmetic Logic Unit, ALU), an application processor, a global positioning system (Global Positioning System, GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing power, discharging, and power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., front camera, rear camera), a bluetooth module, etc., which will not be described in detail herein.
In particular, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, the mobile terminal 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs comprising instructions for:
determining an application needing to acquire data to obtain an application set;
acquiring an acquisition period of acquiring the data by each application in the application set;
when a first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition period;
and if the fact that the second application needs to acquire the data is detected, synchronously transmitting the data acquired by the first application to the second application.
In some embodiments, in detecting whether there is currently a second application to acquire the data based on the acquisition period, the processor 380 may further execute instructions to:
acquiring an acquisition period corresponding to the first application and a target acquisition period corresponding to other applications, wherein the other applications are other applications except the first application in the application set;
detecting whether an acquisition period corresponding to the first application is matched with the target acquisition period;
if it is detected that the second application needs to acquire the data, synchronously transmitting the data to the first application and the second application, including:
if the acquisition period corresponding to the first application is matched with the target acquisition period, determining the application with the matched acquisition period as a second application;
and synchronously transmitting the data acquired by the first application to the second application.
In some embodiments, in the detecting whether the acquisition period corresponding to the first application matches the target acquisition period, the processor 380 may further execute instructions for:
detecting whether the target acquisition period is divided by the acquisition period corresponding to the first application;
and if the acquisition period corresponding to the first application is matched with the target acquisition period, determining the application with the matched acquisition period as a second application, including:
and if the target acquisition period is divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is divided by the acquisition period corresponding to the first application as the second application.
In some embodiments, in acquiring an acquisition cycle in which each application in the set of applications acquires the data, processor 380 may further execute instructions to:
acquiring a time difference value when each application in the application set continuously acquires the data twice;
and determining the time difference value as an acquisition period of the application.
In some embodiments, upon determining an application that needs to acquire data, processor 380 may also execute instructions to:
acquiring target authority information of the data application to be acquired;
and determining the application carrying the target authority information in the mobile terminal as the application needing to acquire data.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The foregoing describes in detail a method, an apparatus, a storage medium, and a mobile terminal for acquiring data provided by the embodiments of the present application, and specific examples are applied to describe the principles and implementations of the present application, where the descriptions of the foregoing embodiments are only used to help understand the technical solutions and core ideas of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. The data acquisition method is applied to the mobile terminal and is characterized by comprising the following steps:
determining an application needing to acquire data to obtain an application set;
acquiring a time difference value when each application in the application set continuously acquires the data twice;
determining the time difference value as an acquisition period of the application;
when a first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition period;
and if the fact that the second application needs to acquire the data is detected, synchronously transmitting the data acquired by the first application to the second application.
2. The method according to claim 1, wherein the detecting whether the second application currently exists to acquire the data based on the acquisition period includes:
acquiring an acquisition period corresponding to the first application and a target acquisition period corresponding to other applications, wherein the other applications are other applications except the first application in the application set;
detecting whether an acquisition period corresponding to the first application is matched with the target acquisition period;
if it is detected that the second application needs to acquire the data, synchronously transmitting the data to the second application, including:
if the acquisition period corresponding to the first application is matched with the target acquisition period, determining the application with the matched acquisition period as a second application;
and synchronously transmitting the data acquired by the first application to the second application.
3. The method according to claim 2, wherein the detecting whether the acquisition period corresponding to the first application matches the target acquisition period includes:
detecting whether the target acquisition period is divided by the acquisition period corresponding to the first application;
and if the acquisition period corresponding to the first application is matched with the target acquisition period, determining the application with the matched acquisition period as a second application, including:
and if the target acquisition period is divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is divided by the acquisition period corresponding to the first application as the second application.
4. The method for acquiring data according to claim 1, wherein the determining an application that needs to acquire data includes:
acquiring target authority information of a data application to be acquired;
and determining the application carrying the target authority information in the mobile terminal as the application needing to acquire data.
5. A data acquisition apparatus applied to a mobile terminal using the data acquisition method according to any one of claims 1 to 4, characterized by comprising:
the determining unit is used for determining the application needing to acquire the data to obtain an application set;
the acquisition unit is used for acquiring the time difference value when each application in the application set acquires the data twice in succession;
determining the time difference value as an acquisition period of the application;
the detection unit is used for detecting whether a second application needs to acquire the data currently or not based on the acquisition period when the first application needs to acquire the data;
and the sending unit is used for synchronously sending the data acquired by the first application to the second application if the second application is detected to be required to acquire the data currently.
6. The apparatus according to claim 5, wherein the detecting unit includes:
the first acquisition subunit is used for acquiring an acquisition period corresponding to the first application and a target acquisition period corresponding to other applications, wherein the other applications are other applications except the first application in the application set;
the detection subunit is used for detecting whether the acquisition period corresponding to the first application is matched with the target acquisition period;
a transmitting unit comprising:
a first determining subunit, configured to determine, if an acquisition period corresponding to the first application matches the target acquisition period, an application with the matched acquisition period as a second application;
and the sending subunit is used for synchronously sending the data acquired by the first application to the second application.
7. The apparatus according to claim 5, wherein the determining unit includes:
the second acquisition subunit is used for acquiring the target authority information of the application to be acquired;
and the second determining subunit is used for determining the application carrying the target authority information in the mobile terminal as the application needing to acquire data.
8. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to perform the data acquisition method according to any one of claims 1 to 4.
9. A mobile terminal, characterized in that it comprises a processor and a memory, in which a computer program is stored, the processor being adapted to execute the data acquisition method according to any one of claims 1 to 4 by calling the computer program stored in the memory.
CN202010269194.0A 2020-04-08 2020-04-08 Data acquisition method and device, storage medium and mobile terminal Active CN111506439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010269194.0A CN111506439B (en) 2020-04-08 2020-04-08 Data acquisition method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010269194.0A CN111506439B (en) 2020-04-08 2020-04-08 Data acquisition method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111506439A CN111506439A (en) 2020-08-07
CN111506439B true CN111506439B (en) 2024-04-09

Family

ID=71877683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010269194.0A Active CN111506439B (en) 2020-04-08 2020-04-08 Data acquisition method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111506439B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873196A (en) * 2016-03-23 2016-08-17 努比亚技术有限公司 Mobile terminal and method for reducing power consumption of mobile terminal
CN106504777A (en) * 2016-11-25 2017-03-15 维沃移动通信有限公司 A kind of processing method of recording data and mobile terminal
CN106953928A (en) * 2017-04-28 2017-07-14 上海与德科技有限公司 The acquisition methods and device of positional information
CN107040610A (en) * 2017-05-27 2017-08-11 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium, terminal and server
CN107302591A (en) * 2017-07-31 2017-10-27 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
CN107395744A (en) * 2017-08-18 2017-11-24 广东欧珀移动通信有限公司 Method of data synchronization, mobile terminal and storage medium
CN107704754A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of terminal control method and device, computer-readable recording medium
CN107862217A (en) * 2017-10-31 2018-03-30 努比亚技术有限公司 A kind of location information acquisition method, mobile terminal and computer-readable storage medium
WO2019024641A1 (en) * 2017-07-31 2019-02-07 Oppo广东移动通信有限公司 Data synchronization method and apparatus, storage medium and electronic device
CN109714476A (en) * 2018-12-19 2019-05-03 惠州Tcl移动通信有限公司 Data processing method, device, mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10635559B2 (en) * 2016-11-29 2020-04-28 International Business Machines Corporation Maintaining data integrity over multiple applications

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873196A (en) * 2016-03-23 2016-08-17 努比亚技术有限公司 Mobile terminal and method for reducing power consumption of mobile terminal
CN106504777A (en) * 2016-11-25 2017-03-15 维沃移动通信有限公司 A kind of processing method of recording data and mobile terminal
CN106953928A (en) * 2017-04-28 2017-07-14 上海与德科技有限公司 The acquisition methods and device of positional information
CN107040610A (en) * 2017-05-27 2017-08-11 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium, terminal and server
CN107302591A (en) * 2017-07-31 2017-10-27 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
WO2019024641A1 (en) * 2017-07-31 2019-02-07 Oppo广东移动通信有限公司 Data synchronization method and apparatus, storage medium and electronic device
CN107395744A (en) * 2017-08-18 2017-11-24 广东欧珀移动通信有限公司 Method of data synchronization, mobile terminal and storage medium
CN107704754A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of terminal control method and device, computer-readable recording medium
CN107862217A (en) * 2017-10-31 2018-03-30 努比亚技术有限公司 A kind of location information acquisition method, mobile terminal and computer-readable storage medium
CN109714476A (en) * 2018-12-19 2019-05-03 惠州Tcl移动通信有限公司 Data processing method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN111506439A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
JP6492184B2 (en) Method, device, and system for managing information recommendations
CN110837343B (en) Snapshot processing method and device and terminal
US11409567B2 (en) Application management method and terminal
CN112749362B (en) Control creation method, device, equipment and storage medium
CN106293486B (en) Interaction method and device between terminals
CN108984066B (en) Application icon display method and mobile terminal
CN110505660B (en) Network rate adjusting method and terminal equipment
CN110020690B (en) Cheating behavior detection method, device and storage medium
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
CN110958352B (en) Network signal display method, device, storage medium and mobile terminal
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN111506439B (en) Data acquisition method and device, storage medium and mobile terminal
CN111309223B (en) Application function starting method and device, storage medium and mobile terminal
CN109413276B (en) Information display method and terminal equipment
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN110995932A (en) Memorandum setting method and device, storage medium and electronic equipment
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN110109582B (en) Display method and device of mobile terminal and storage medium
CN111414563B (en) Webpage interaction method, device, computer equipment and storage medium
CN110389879B (en) Method and device for acquiring performance data
CN112416584B (en) Process communication method and device, storage medium and mobile terminal

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240314

Address after: No. 9 Huaibaishu Street, Xicheng District, Beijing, 100032

Applicant after: Beijing Lange Cloud Commerce Technology Co.,Ltd.

Country or region after: China

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Applicant before: TCL mobile communication technology (Ningbo) Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant