CN111506439A - 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
CN111506439A
CN111506439A CN202010269194.0A CN202010269194A CN111506439A CN 111506439 A CN111506439 A CN 111506439A CN 202010269194 A CN202010269194 A CN 202010269194A CN 111506439 A CN111506439 A CN 111506439A
Authority
CN
China
Prior art keywords
application
data
acquisition period
acquire
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010269194.0A
Other languages
Chinese (zh)
Other versions
CN111506439B (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
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo 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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a data acquisition method, a data acquisition 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 for each application in the application set to acquire the data; when a first application needs to acquire the data, detecting whether a second application needs to acquire the data or not at present based on the acquisition period; and if the current second application needs to acquire the data is detected, the data acquired by the first application is synchronously sent to the second application. The method and the device can avoid the situation that the application program repeatedly sends self data to a plurality of applications, reduce the energy occupied by the 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 application relates to the field of communications, and in particular, to a method and an 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 far exceed the functions of conversation, short message and the like, more and more technologies such as multimedia, artificial intelligence and the like are also brought into the mobile terminal, and simultaneously with the great increase of users, the development of corresponding application programs is also in progress as well as fiery and funny, various kinds of map are full of the current application programs, and a single application program uses a compass, such as a map, chatting software and the like; and these applications are also installed by the user in the mobile terminal.
Currently, the current practice is. Taking compass data as an example, when an application program requests compass data, the compass needs to transmit the compass data upwards, and because a user usually opens a habit of turning off the compass after the application, when various application programs request the compass data, the compass continuously works, so that the application like the compass occupies more battery energy, and the cruising ability of the battery is reduced.
Disclosure of Invention
The embodiment of the application provides a data acquisition method, which can avoid that an application program repeatedly sends self data to a plurality of applications, reduce the energy occupied by a battery, and further improve the cruising ability of the 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 for each application in the application set to acquire the data;
when a first application needs to acquire the data, detecting whether a second application needs to acquire the data or not at present based on the acquisition period;
and if the current second application needs to acquire the data is detected, the data acquired by the first application is synchronously sent to the second application.
The embodiment of the present application further provides an apparatus for acquiring data, which is applied to a mobile terminal, and includes:
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 cycle 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 or not at present based on the acquisition cycle 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 which needs to acquire the data is detected to exist currently.
The embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the method for acquiring data as described above.
The embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the data obtaining method described above 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 for each application in the application set to acquire the data; when a first application needs to acquire the data, detecting whether a second application needs to acquire the data or not at present based on the acquisition period; and if the current second application needs to acquire the data is detected, the data acquired by the first application is synchronously sent to the second application. The method and the device can avoid the situation that the application program repeatedly sends self data to a plurality of applications, reduce the energy occupied by the battery and further improve the cruising ability of the battery.
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 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 obtaining method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data acquisition apparatus 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 is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a data acquisition method according to an embodiment of the present disclosure. 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 such as a mobile phone, a tablet computer, a notebook computer, and a personal digital assistant, which has a camera module, and various application programs are stored in the mobile terminal, such as an application having an entertainment function (e.g., a video application, a compass application, a game application, and a reading software), and an application having a service function (e.g., a map navigation application, a dining application, and the like).
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 a compass application, and when the game application and the map navigation application are downloaded in a mobile terminal, the mobile terminal gives the application the authority of the compass application, so that the user can know which applications need to acquire parameters of the compass application by checking the existence of the authority of the compass application in which applications exist.
Therefore, the method further comprises the following steps:
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.
And 102, acquiring an acquisition period of acquisition data of each application in the application set.
Specifically, when an application similar to a map navigation application runs in the background, the compass data is also acquired intermittently, so as to update the direction in which the mobile terminal is located in the map, and the time of the intermittent acquisition is the acquisition period. Therefore, the acquisition period for acquiring the data of each application in the application set can be determined by acquiring the time interval between two adjacent times of acquiring the data of each application. Therefore, the step may further include:
acquiring a time difference value when each application in the application set acquires the data twice continuously;
and determining the time difference value as the acquisition period of the application.
And 103, when the first application needs to acquire the data, detecting whether a second application needs to acquire the data currently or not based on the acquisition cycle.
Specifically, in order to avoid that a plurality of applications, such as a game application and a map navigation application, call a compass application to acquire compass data at the same time, when a certain application calls the compass application, it is possible to detect whether other applications exist according to the acquisition period of the application, and the compass application is also called to acquire compass data. If the data acquisition request is detected to have other applications to acquire the data, the data sent to the application can be intercepted and sent to other applications needing to acquire the data, so that the situation that a plurality of applications call another application to acquire the data at the same time is avoided.
When detecting that there is an application initiating call instruction to an application to acquire parameters in the application set, the acquisition periods of other applications in the application set may be matched according to the acquisition period of the application, and the specific matching manner may be to detect whether the acquisition period of the application initiating the call instruction is completely divisible from the acquisition periods of other applications, for example, the acquisition period of the application a is 4s to acquire data once, and the acquisition period of the application B is 2s once, so that the application a also acquires data when acquiring data, and thus may be determined according to the acquisition periods. Therefore, the step may further include:
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 in the application set except the first application;
and detecting whether the acquisition period corresponding to the first application is matched with the target acquisition period.
Since the obtaining period of the application a is divisible by the obtaining period of the application B, detecting whether the obtaining period corresponding to the first application matches the target obtaining period includes:
and detecting whether the target acquisition period is completely divided by the acquisition period corresponding to the first application.
And step 104, if it is detected that the second application needs to acquire the data, the data acquired by the first application is synchronously sent 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 sent to other applications in the data set that currently need to acquire data synchronously, for example, when the compass application returns the data to the first application that invoked the compass application.
In step 103, it is necessary to match whether there is a second application that needs to acquire data currently according to the data period, so this 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 sending the data acquired by the first application to the second application.
Since the matching manner may be to detect whether the acquisition period of the first application is divisible by the acquisition periods of the other applications, 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 the second application includes:
and if the target acquisition period is completely divided by the acquisition period corresponding to the first application, determining the application of the target acquisition period which is completely divided by the acquisition period corresponding to the first application and the application of the target acquisition period which is completely divided by the acquisition period corresponding to the first application as the 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 for each application in the application set to acquire the data; when a first application needs to acquire the data, detecting whether a second application needs to acquire the data or not at present based on the acquisition period; and if the current second application needs to acquire the data is detected, the data acquired by the first application is synchronously sent to the second application. The method and the device can avoid the situation that the application program repeatedly sends self data to a plurality of applications, reduce the energy occupied by the battery and further improve the cruising ability of the battery.
In some embodiments, as shown in fig. 2, a method for acquiring data is provided, the method for acquiring data comprising:
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 a compass application, and when the game application and the map navigation application are downloaded in a mobile terminal, the mobile terminal gives the application the authority of the compass application, so that the user can know which applications need to acquire parameters of the compass application by checking the existence of the authority of the compass application in which applications exist.
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 obtains data twice continuously.
Specifically, when an application similar to a map navigation application runs in the background, the compass data is also acquired intermittently, so as to update the direction in which the mobile terminal is located in the map, and the time of the intermittent acquisition is the acquisition period. Therefore, the acquisition period for acquiring the data of each application in the application set can be determined by acquiring the time interval between two adjacent times of acquiring the data of each application.
And step 204, determining the time difference as the 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 target acquisition periods corresponding to other applications.
Specifically, in order to avoid that a plurality of applications, such as a game application and a map navigation application, call a compass application to acquire compass data at the same time, when a certain application calls the compass application, it is possible to detect whether other applications exist according to the acquisition period of the application, and the compass application is also called to acquire compass data. If the data acquisition request is detected to have other applications to acquire the data, the data sent to the application can be intercepted and sent to other applications needing to acquire the data, so that the situation that a plurality of applications call another application to acquire the data at the same time is avoided.
Step 206, detecting whether the target acquisition period is completely divided by the acquisition period corresponding to the first application.
When detecting that there is an application initiating call instruction to an application to acquire parameters in the application set, the acquisition periods of other applications in the application set may be matched according to the acquisition period of the application, and the specific matching manner may be to detect whether the acquisition period of the application initiating the call instruction is completely divisible from the acquisition periods of other applications, for example, the acquisition period of the application a is 4s to acquire data once, and the acquisition period of the application B is 2s once, so that the application a also acquires data when acquiring data, and thus may be determined according to the acquisition periods. Since the acquisition period of the application a is divisible by the acquisition period of the application B, it is detected whether the target acquisition period is divisible by the acquisition period corresponding to the first application.
Step 207, if the target acquisition period is completely divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is completely 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 indicates that the application whose acquisition period is divided by the acquisition period of the first application acquires data when the first application acquires data, and thus the application can be determined as the second application.
And step 208, synchronously sending the data acquired by the first application to the second application.
Detecting that there are other applications that need to acquire data, the data may be intercepted and sent to other applications in the data set that currently need to acquire data synchronously, for example, when the compass application returns the data to the first application that invoked the compass application.
The data acquisition method provided by the embodiment of the application comprises the following steps: detecting that there are other applications that need to acquire data, the data may be intercepted and sent to other applications in the data set that currently need to acquire data synchronously, for example, when the compass application returns the data to the first application that invoked 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 disclosure. 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 such as a mobile phone, a tablet computer, a notebook computer, and a personal digital assistant, which has a camera module, and various application programs are stored in the mobile terminal, such as an application having an entertainment function (e.g., a video application, a compass application, a game application, and a reading software), and an application having a service function (e.g., a map navigation application, a dining application, and the like).
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, so that the applications are determined as applications that need to acquire data, and an application set is obtained.
The obtaining unit 32 is configured to obtain an obtaining period for each application in the application set to obtain the data.
Specifically, when an application similar to a map navigation application runs in the background, the compass data is also acquired intermittently, so as to update the direction in which the mobile terminal is located in the map, and the time of the intermittent acquisition is the acquisition period. Therefore, the acquisition period for acquiring the data of each application in the application set can be determined by acquiring the time interval between two adjacent times of acquiring the data of each application.
The detecting unit 33 is configured to, when the first application needs to acquire the data, detect whether a second application currently exists and needs to acquire the data based on the acquisition period.
Specifically, in order to avoid that a plurality of applications, such as a game application and a map navigation application, call a compass application to acquire compass data at the same time, when a certain application calls the compass application, it is possible to detect whether other applications exist according to the acquisition period of the application, and the compass application is also called to acquire compass data. If the data acquisition request is detected to have other applications to acquire the data, the data sent to the application can be intercepted and sent to other applications needing to acquire the data, so that the situation that a plurality of applications call another application to acquire the data at the same time is avoided.
A sending unit 34, 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 sent synchronously to the other applications in the data set that currently need to acquire data, for example when the compass application returns the data to the first application that invoked the compass application.
In some embodiments, the detection unit 33 may further include:
a first obtaining subunit, configured to obtain an obtaining period corresponding to the first application and a target obtaining period corresponding to other applications, where the other applications are other applications in the application set except the first application;
a detection subunit, configured to detect whether an acquisition period corresponding to the first application matches 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 matching 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 target permission information of the application to be acquired;
and the second determining subunit is configured to determine the application carrying the target permission information in the mobile terminal as the application needing to acquire data.
Based on the above method, the present invention further provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are suitable for being loaded by a processor and executing the data obtaining method.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is 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 obtaining 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 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 shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the 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 so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise 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 program instructions/modules corresponding to the method, the apparatus, the storage medium and the mobile terminal for acquiring data in the foregoing embodiments, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, that is, implements functions 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 generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as 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 by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by 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. In the above embodiment, the display interface of the mobile terminal 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 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
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 operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles 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 L, a L U), an application processor, a 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) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, 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., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and 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 the one or more programs configured to be executed by the one or more processors 180 include instructions for:
determining an application needing to acquire data to obtain an application set;
acquiring an acquisition period for each application in the application set to acquire the data;
when a first application needs to acquire the data, detecting whether a second application needs to acquire the data or not at present based on the acquisition period;
and if the current second application needs to acquire the data is detected, the data acquired by the first application is synchronously sent to the second application.
In some embodiments, in detecting whether there is currently a second application to fetch the data based on the fetch cycle, 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 in the application set except the first application;
detecting whether an acquisition period corresponding to the first application is matched with the target acquisition period;
if it is detected that a second application needs to acquire the data, the current data is synchronously sent to the first application and the second application, and the method comprises the following steps:
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 sending the data acquired by the first application to the second application.
In some embodiments, in detecting whether the acquisition period corresponding to the first application matches the target acquisition period, processor 380 may further execute instructions to:
detecting whether the target acquisition period is completely divided by an acquisition period corresponding to a first application;
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 completely divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is completely divided by the acquisition period corresponding to the first application as a 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 acquires the data twice continuously;
and determining the time difference value as the acquisition period of the application.
In some embodiments, upon determining an application that needs to obtain data, processor 380 may further 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 respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The method, the apparatus, the storage medium, and the mobile terminal for acquiring data provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the embodiments above is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A data acquisition method is applied to a mobile terminal, and is characterized by comprising the following steps:
determining an application needing to acquire data to obtain an application set;
acquiring an acquisition period for each application in the application set to acquire the data;
when a first application needs to acquire the data, detecting whether a second application needs to acquire the data or not at present based on the acquisition period;
and if the current second application needs to acquire the data is detected, the data acquired by the first application is synchronously sent to the second application.
2. The method for acquiring data according to claim 1, wherein the detecting whether a second application currently acquires the data based on the acquisition period comprises:
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 in the application set except the first application;
detecting whether an acquisition period corresponding to the first application is matched with the target acquisition period;
if it is detected that a second application needs to acquire the data, the current data is synchronously sent to the first application and the second application, and the method comprises the following steps:
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 sending the data acquired by the first application to the second application.
3. The method for acquiring data 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 completely divided by an acquisition period corresponding to a first application;
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 completely divided by the acquisition period corresponding to the first application, determining the application of which the target acquisition period is completely divided by the acquisition period corresponding to the first application as a second application.
4. The method for acquiring data according to claim 1, wherein an acquisition cycle for each application in the acquisition application set to acquire the data includes:
acquiring a time difference value when each application in the application set acquires the data twice continuously;
and determining the time difference value as the acquisition period of the application.
5. The method for acquiring data according to claim 1, wherein the determining an application that needs to acquire data comprises:
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.
6. An apparatus for acquiring data, applied to a mobile terminal, includes:
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 cycle 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 or not at present based on the acquisition cycle 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 which needs to acquire the data is detected to exist currently.
7. The apparatus for acquiring data according to claim 6, wherein the detecting unit comprises:
a first obtaining subunit, configured to obtain an obtaining period corresponding to the first application and a target obtaining period corresponding to other applications, where the other applications are other applications in the application set except the first application;
a detection subunit, configured to detect whether an acquisition period corresponding to the first application matches 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 matching 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.
8. The apparatus for acquiring data according to claim 6, wherein the determining unit includes:
the second acquisition subunit is used for acquiring target permission information of the application to be acquired;
and the second determining subunit is configured to determine the application carrying the target permission information in the mobile terminal as the application needing to acquire data.
9. A computer-readable storage medium, in which a computer program is stored, which, when run on a computer, causes the computer to execute the method of acquiring data according to any one of claims 1 to 5.
10. A mobile terminal, characterized in that it comprises a processor and a memory, in which a computer program is stored, said processor being adapted to execute the method for acquiring data according to any one of claims 1 to 5 by calling said computer program stored in said 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 true CN111506439A (en) 2020-08-07
CN111506439B 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 (11)

* 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
US20180150338A1 (en) * 2016-11-29 2018-05-31 International Business Machines Corporation Maintaining data integrity over multiple applications
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

Patent Citations (11)

* 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
US20180150338A1 (en) * 2016-11-29 2018-05-31 International Business Machines Corporation Maintaining data integrity over multiple applications
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
CN111506439B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
WO2018006841A1 (en) Qr code information transmission method, device and apparatus
WO2019047862A1 (en) Fingerprint acquisition method and terminal device and storage medium
MX2014008884A (en) Mobile terminal resource processing method, device and apparatus.
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110958352B (en) Network signal display method, device, storage medium and mobile terminal
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN112243259A (en) Network disconnection method, device, storage medium and mobile terminal
CN111556248A (en) Shooting method, shooting device, storage medium and mobile terminal
CN111083285A (en) Mobile terminal call positioning system and method
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN106357522B (en) Data sharing method and device
CN112905328B (en) Task processing method, device and computer readable storage medium
CN114706135A (en) Magnetic field intensity compensation method and device, storage medium and mobile terminal
CN111309224B (en) Sound effect adjusting method and device, storage medium and mobile terminal
CN111309223B (en) Application function starting method and device, storage medium and mobile terminal
CN111506439B (en) Data acquisition method and device, storage medium and mobile terminal
CN113590272A (en) Virtual machine deployment method, device, electronic device and storage medium
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal
CN108111553B (en) Method and device for providing service
CN105988801B (en) Method and device for displaying annotation information
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN111008049A (en) Communication control method, communication control 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

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

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant