CN110081903A - Step counting, exchange, step counting data transmission method for uplink, device, equipment and storage medium - Google Patents
Step counting, exchange, step counting data transmission method for uplink, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110081903A CN110081903A CN201910333610.6A CN201910333610A CN110081903A CN 110081903 A CN110081903 A CN 110081903A CN 201910333610 A CN201910333610 A CN 201910333610A CN 110081903 A CN110081903 A CN 110081903A
- Authority
- CN
- China
- Prior art keywords
- step number
- target application
- same day
- small routine
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C22/00—Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
- G01C22/006—Pedometers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0208—Trade or exchange of goods or services in exchange for incentives or rewards
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of step counting, exchange, step counting data transmission method for uplink, device, equipment and storage mediums.Wherein, which includes: and obtains same day initial baseline step number from default application by step counting small routine when target application detects that the same day triggers step number acquisition function for the first time and obtain the first system step number that system sensor provides;Wherein, step counting small routine is mounted in default application, default to apply the real time execution in the electronic equipment of configuration target application;When target application detects that the same day triggers step number acquisition function again, the second system step number that system sensor provides is obtained;Target application determines the current day step number of user based on same day initial baseline step number, the first system step number and second system step number.Technical solution provided in an embodiment of the present invention, can accurately determine the day step number of user, especially when target application is not in system white list, can also accurately determine the day step number of user.
Description
Technical field
The present embodiments relate to electrical application technology field more particularly to a kind of step counting, exchange, step counting data senders
Method, device, equipment and storage medium.
Background technique
With the development of science and technology, the electronic equipments such as mobile phone, tablet computer, wearable device in our life increasingly
It is universal, meanwhile, in order to meet the daily demand of user, electronic equipment provides various functions.Such as in terms of health,
Concern with people to physical health issues and physical exercise problem, user want to know about oneself daily amount of exercise, and
Walking can be considered the daily basic exercise of each user, therefore step function has become a common features of electronic equipment.
Wherein, realize that the step function of electronic equipment can be by following method: a kind of method can be to be set in electronics
Standby upper setting acceleration transducer obtains the data of acceleration transducer by the application on electronic equipment with step function,
Data based on acceleration transducer calculate the day step number of user, but the day step number that this method obtains user is inaccurate;And
And the application with step function needs to obtain the data of acceleration transducer in real time, just can determine that the day step number of user, still
Application with step function is most not in the system white list of electronic equipment, to cannot transport in the electronic device in real time
Row, so that the day step number of user cannot be calculated accurately.
Another method may is that, and default application is arranged in electronic equipment in system white list, and presetting application can be with
It is put and is intercepted at a fixed time based on the system step number that system sensor provides, so as to accurately determine the day step of user
Number.User can check the day step number of user by the step counting small routine installed in default application.But when target application does not have
When in system white list, target application can not real time execution in the electronic device, to cannot put at a fixed time to being
The system step number that system sensor provides is intercepted, so that the day step number of user can not be determined accurately.
Summary of the invention
The embodiment of the invention provides a kind of step counting, exchange, step counting data transmission method for uplink, device, equipment and storage medium,
It can accurately determine that the day step number of user can also accurately obtain user especially when target application does not have system white list
Day step number.
In a first aspect, the embodiment of the invention provides a kind of step-recording methods, comprising:
When target application detects that the same day triggers step number acquisition function for the first time, through step counting small routine from default application
It obtains same day initial baseline step number and obtains the first system step number that system sensor provides;Wherein, the step counting small routine
It is mounted in the default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When the target application detects that the same day triggers step number acquisition function again, obtains the system sensor and provide
Second system step number;
The target application is based on the same day initial baseline step number, the first system step number and the second system
Step number determines the current day step number of user.
Second aspect, the embodiment of the invention also provides a kind of exchanging methods, comprising:
When target application detects that the same day triggers step number acquisition function for the first time, through step counting small routine from default application
It obtains same day initial baseline step number and obtains the first system step number that system sensor provides;Wherein, the step counting small routine
It is mounted in the default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When the target application detects that the same day triggers step number acquisition function again, obtains the system sensor and provide
Second system step number;
The target application is based on the same day initial baseline step number, the first system step number and the second system
Step number determines the current day step number of user;
When the target application detects the step number exchange operation of the user, redemption request is sent to server, and connect
Receive the exchange object corresponding with the redemption request of the server feedback.
The third aspect, the embodiment of the invention also provides a kind of step counting data transmission method for uplink, comprising:
When step counting small routine is opened in default application, same day initial baseline step number is obtained from the default application;
Wherein, the step counting small routine is opened by target application by the default application;Default apply is configuring target application
Electronic equipment in real time execution;
The same day initial baseline step number is fed back to the target application by the step counting small routine.
Fourth aspect, the embodiment of the invention also provides a kind of step count sets, and described device configuration is in target application, packet
It includes:
First obtain module, for when detect the same day trigger for the first time step number obtain function when, by step counting small routine from
Same day initial baseline step number is obtained in default application and obtains the first system step number that system sensor provides;Wherein, described
Step counting small routine is mounted in the default application, and described preset is applied in the electronic equipment for configuring the target application in real time
Operation;
Second obtains module, for obtaining the system sensing when detecting that the same day triggers step number acquisition function again
The second system step number that device provides;
Day step number determining module, for based on the same day initial baseline step number, the first system step number and described
Second system step number determines the current day step number of user.
5th aspect, the embodiment of the invention also provides a kind of exchanging devices, and described device configuration is in target application, packet
It includes:
First obtain module, for when detect the same day trigger for the first time step number obtain function when, by step counting small routine from
Same day initial baseline step number is obtained in default application and obtains the first system step number that system sensor provides;Wherein, described
Step counting small routine is mounted in the default application, and described preset is applied in the electronic equipment for configuring the target application in real time
Operation;
Second obtains module, for obtaining the system sensing when detecting that the same day triggers step number acquisition function again
The second system step number that device provides;
Day step number determining module, for based on the same day initial baseline step number, the first system step number and described
Second system step number determines the current day step number of user;
Module is exchanged, for sending redemption request to server, and connect when detecting the step number exchange operation of the user
Receive the exchange object corresponding with the redemption request of the server feedback.
6th aspect, the embodiment of the invention also provides a kind of step counting data sending devices, comprising:
Module is obtained, for obtaining the same day from the default application when step counting small routine is opened in default application
Initial baseline step number;Wherein, the step counting small routine is opened by target application by the default application;Described preset is applied
Configure real time execution in the electronic equipment of target application;
Feedback module, for the same day initial baseline step number to be fed back to the target application.
7th aspect, the embodiment of the invention also provides a kind of equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes a kind of step-recording method provided in an embodiment of the present invention, such as a kind of exchanging method provided in an embodiment of the present invention, such as this hair
A kind of step counting data transmission method for uplink that bright embodiment provides.
Eighth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program is realized when the program is executed by processor such as a kind of step-recording method provided in an embodiment of the present invention, such as embodiment of the present invention
A kind of exchanging method provided, such as a kind of step counting data transmission method for uplink provided in an embodiment of the present invention.
Technical solution provided in an embodiment of the present invention, when target application triggered step number acquisition function by the same day for the first time, from
The initial baseline step number on the same day is obtained in default application and obtains the first system step number from system sensor;When detecting the same day
When triggering the step number acquisition function of target application again, second system step number is obtained from system sensor, and for the first time by the same day
Triggering and the same day trigger step number again and obtain the step count data that function obtains, and determine that user's same day triggers step number again and obtains function
Corresponding day step number when energy, may not need the day step number that user is calculated using acceleration transducer, improve what day step number determined
Accuracy, and may not need target application real time execution in the electronic device, thus when target application is not in the white name of system
Dan Shi can also accurately obtain the day step number of user.
Detailed description of the invention
Fig. 1 is a kind of step-recording method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of step-recording method flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of step-recording method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of step-recording method flow chart provided in an embodiment of the present invention;
Fig. 5 is a kind of step-recording method flow chart provided in an embodiment of the present invention;
Fig. 6 is a kind of exchanging method flow chart provided in an embodiment of the present invention;
Fig. 7 is a kind of step counting data transmission method for uplink flow chart provided in an embodiment of the present invention;
Fig. 8 is a kind of step-recording method flow chart provided in an embodiment of the present invention;
Fig. 9 is a kind of step count set structural block diagram provided in an embodiment of the present invention;
Figure 10 is a kind of exchanging device structural block diagram provided in an embodiment of the present invention;
Figure 11 is a kind of step counting data sending device structural block diagram provided in an embodiment of the present invention;
Figure 12 is a kind of device structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Fig. 1 is a kind of step-recording method flow chart provided in an embodiment of the present invention, and the method is held by a kind of step count set
Row, described device can be realized that described device can be only fitted to mobile phone, tablet computer, wearable device etc. by software and/or hardware
In electronic equipment.Wherein, electronic equipment can configure android system, can also configure IOS system, or can also configure
WP system perhaps Windows system or other systems.Wherein, the system version in electronic equipment can be not limited,
Optionally, the version of Android4.4 or more can be configured in electronic equipment.
Method provided in an embodiment of the present invention can be applied to apply not in the target application in system white list
In can not be in the target application of electronic equipment (backstage or foreground) real time execution.Method provided in an embodiment of the present invention is applied to
The case where step counting is carried out to day step number.
Method provided in an embodiment of the present invention can be applied to solve the technical problem in following scene: set in realization electronics
When standby step function, there is following method in the related technology: one is acceleration transducer is arranged on an electronic device, leading to
The data that the application on electronic equipment with step function obtains acceleration transducer are crossed, based on the data of acceleration transducer
The day step number of user is calculated, but the user day step number that this method obtains is inaccurate;And the application with step function needs
The data for obtaining acceleration transducer in real time just can determine that the day step number of user, but the application with step function does not have mostly
Have in the white list of electronic equipment, to cannot run in the electronic device in real time, so that the day of user cannot accurately be calculated
Step number.Another method is: default application being arranged in system white list in electronic equipment, default application can be based on system
The system step number that sensor provides is put at a fixed time to be intercepted, so as to accurately determine the day step number of user.User
The day step number of user can be checked by the step counting small routine installed in default application.But this method is also required to target application and exists
In white list in system, realization is run in the electronic device in real time, just can determine that the day step number of user.If target application does not have
In system white list, target application can not real time execution in the electronic device, system is passed to cannot put at a fixed time
The system step number that sensor provides is intercepted, and can not accurately determine the day step number of user.
Technical solution provided in an embodiment of the present invention, when target application triggered step number acquisition function by the same day for the first time, from
The initial baseline step number on the same day is obtained in default application and obtains the first system step number from system sensor;When detecting the same day
When triggering the step number acquisition function of target application again, second system step number is obtained from system sensor, and for the first time by the same day
Triggering and the same day trigger step number again and obtain the step count data that function obtains, and determine that user's same day triggers step number again and obtains function
Corresponding day step number when energy, may not need the day step number that user is calculated using acceleration transducer, improve what day step number determined
Accuracy, and may not need target application real time execution in the electronic device, thus when target application is not in the white name of system
Dan Shi can also accurately obtain the day step number of user.
Optionally, technical solution provided in an embodiment of the present invention can be applied to need the day using user in some business
In the scene of step number, it specifically can be in the scene for needing to be exchanged to the day step number of user or other needed using use
In the scene of family day step number.
As shown in Figure 1, technical solution provided in an embodiment of the present invention includes:
S110: when target application detects that the same day triggers step number for the first time and obtains function, by step counting small routine from default
The first system step number of same day initial baseline step number and system sensor offer is obtained in, wherein the step counting little Cheng
Sequence is mounted in the default application, and described preset applies the real time execution in the electronic equipment for configuring the target application.
In embodiments of the present invention, optionally, target application can be the application of consumer sale, i.e. user is answered by target
With consumer applications can be carried out.Target application is not limited to the application of consumer sale, can also be that other are not white in system
Application in list.Default application is the application in system white list, preset application can real time execution in the electronic device,
The system step number that can be provided based on system sensor is intercepted in set time point, to obtain the first primordium on user's same day
Quasi- step number.Wherein, target application and default application can be the application of different developers' exploitations, preset application do not have directly with
The function that target application is communicated, so realizing target application and default application by the small routine being mounted in default application
Indirect communication, i.e., step counting small routine can obtain same day benchmark step number from default application, and feed back to target application, or
So that user checks.
In embodiments of the present invention, optionally, step counting small routine can be the wechat small routine being mounted in wechat application,
Correspondingly, default application is wechat application or step counting small routine can be the small routine being mounted in Alipay application, accordingly
, presetting application is Alipay application.
In embodiments of the present invention, when target application detects that the same day triggers step number acquisition function for the first time, target application
It can be the same day for the first time, or may not be and be initially opened.
In embodiments of the present invention, optionally, the step number that user triggers target application for the first time obtains a kind of mode of function
It may is that the control for obtaining function on the display interface of target application with step number, if user's same day triggers the control, mesh for the first time
Mark application detects that the same day triggers step number for the first time and obtains function.Wherein, triggering step number, which obtains function, can be understood as triggering entrance
The operation of step number displayed page.Wherein, the mode for triggering the step number acquisition function of target application is not limited to above-mentioned mode,
For example, can be triggered by user speech.
In embodiments of the present invention, when target application detects that the same day triggers step number acquisition function for the first time, pass through step counting
The first system step number that small routine obtains same day initial baseline step number from default application and system sensor provides.Wherein,
As triggering step number obtains corresponding user day step number when function to same day initial baseline step number for the first time.By step counting small routine from pre-
If obtaining same day benchmark step number in, and the first system step number that system sensor provides is obtained, two operations can be simultaneously
Row executes, or can also serially execute.Wherein, when two operations are parallel to be executed, efficiency can be improved;When two operations are gone here and there
When row executes, two operating procedures are not intended to limit and execute sequence.
S120: when the target application detects that the same day triggers step number acquisition function again, the system sensing is obtained
The second system step number that device provides.
In embodiments of the present invention, optionally, after the target application same day detects that triggering step number obtains function for the first time,
And before detecting that the same day triggers step number acquisition function again, target application can be always in the open state or mesh
Mark application may be at closed state, or the case where open and close status switches at least once can also occurs.Optionally,
Refer to again the same day it is non-for the first time, can be second, third time or other numbers etc..
In embodiments of the present invention, optionally, system sensor is that the TYPE_STEP_COUNTER of android system is counted
Sensor is walked, system sensor can also be the sensor of IOS system, and system step number is that the electronic equipment of configuration target application is opened
The accumulated value of step number since machine.
S130: the target application is based on the same day initial baseline step number, the first system step number and described the
Two system step number determines the current day step number of user.
In an embodiment of the embodiment of the present invention, optionally, target application is walked based on the same day initial baseline
Several, the described the first system step number and the second system step number determine the current day step number of user, may include: the target
The current day step number of user is determined using based on following formula:
B=W+ (M2-M1);
Wherein, B is the current day step number of user, and W is the same day initial baseline step number, M2For second system step
Number, M1For the first system step number;Step number is tired since system step number is the electronic equipment booting for configuring the target application
It is value added.Wherein, the difference of second system step number and the first system step number detects that the same day triggers step number for the first time and obtains for target application
Function is taken, to the step number for detecting user in triggering step number acquisition function course again, the step number and the same day triggered step number for the first time
The sum of the same day initial baseline step number obtained when obtaining function, the as current day step number of user.
Method provided in an embodiment of the present invention, when target application is by detecting that the same day triggers step number acquisition function for the first time,
Same day initial baseline step number is obtained from the default application run in the electronic device in real time by step counting small routine, and is obtained
The first system step number that system sensor provides;By obtaining system when detecting that the same day triggers step number acquisition function again
The second system step number that sensor provides, it is true based on same day initial baseline step number, the first system step number and second system step number
Determine the current day step number of user to obtain from default application when that is, target application triggered step number acquisition function by the same day for the first time
The initial baseline step number on the same day and from system sensor obtain the first system step number;When detecting that the same day triggers target again and answer
When step number obtains function, second system step number is obtained from system sensor, and touched again by triggering and the same day for the first time
It sends out step number and obtains the step count data that function obtains, determine that user's same day triggers step number again and obtains corresponding day step number when function,
It may not need the day step number for calculating user using acceleration transducer, improve the accuracy that day step number determines, and can nothing
Target application real time execution in the electronic device is needed, thus when target application is not in system white list, can also be accurate
To the day step number of user.
Fig. 2 is a kind of step-recording method flow chart provided in an embodiment of the present invention, and the embodiment of the present invention can be with said one
Or each optinal plan in multiple embodiments combines.In the present embodiment, optionally, it is described by step counting small routine from default
Same day initial baseline step number is obtained in, comprising:
The target application opens the step counting small routine by default application so that when the step counting small routine is opened from
Same day initial baseline step number is obtained in the default application, and feeds back the target application;
The target application obtains the same day initial baseline step number of the step counting small routine feedback.
As shown in Fig. 2, technical solution provided in an embodiment of the present invention includes:
S210: when target application detects that the same day triggers step number acquisition function for the first time, the target application passes through default
Using the step counting small routine is opened, so that primordium at the beginning of obtaining the same day from the default application when step counting small routine is opened
Quasi- step number, and feed back the target application.
In an embodiment of the embodiment of the present invention, optionally, the target application opens institute by default application
Step counting small routine is stated, may include: the opening request that the target application sends step counting small routine to the default application, so that
The small routine is opened in the default application.Specifically, target application sends the opening request of step counting small routine to default application;
When default application receives opening request, start step counting small routine, to open step counting small routine.Or when default application receives
To when opening request, enabled instruction is sent to step counting small routine, so that step counting small routine is opened in default application.
Wherein, when step counting small routine is opened, step counting small routine obtains the same day initial baseline of user from default application
The initial baseline step number on the same day can be automatically fed to target application by step number, or can also be synchronous based on the data of user
Request feeds back to target application.
As a result, by passing through step counting small routine when detecting that the same day triggers the step number acquisition function of target application for the first time
Same day initial baseline step number is obtained when opening from default application, and feeds back to target application, target application and pre- may be implemented
If the indirect communication of application, solves the problems, such as that target application can not obtain data from default application.
S220: the target application obtains the same day initial baseline step number of the step counting small routine feedback, and obtains
The first system step number that system sensor provides.
S230: when the target application detects that the same day triggers step number acquisition function again, the system sensing is obtained
The second system step number that device provides.
S240: the target application is based on the same day initial baseline step number, the first system step number and described the
Two system step number determines the current day step number of user.
Step number relative to each triggering target application obtains function, needs to open step counting small routine, passes through step counting little Cheng
Sequence from the step number obtained in default application it is current as user day step number technical solution for, it is provided in an embodiment of the present invention
Technical solution when target application triggered step number acquisition function by the same day for the first time, opens small routine by default application, and pass through
Same day initial baseline step number is obtained when small routine is opened from default application, and feeds back to target application, and obtains system and passes
The first system step number that sensor provides;When detecting that the same day triggers step number acquisition function again, direct access systems sensor
The second system step number of offer does not need to be again turned on step counting small routine, can save the time, and the effect of step number acquisition can be improved
Rate can determine the current step number of user by same day initial baseline step number, the first system step number and second system step number, only beat
A step counting small routine is opened, the number of step counting small routine opening is reduced, improves the efficiency that step number obtains.
Fig. 3 is a kind of step-recording method flow chart provided in an embodiment of the present invention, and in the present embodiment, the embodiment of the present invention can
In conjunction with each optinal plan in said one or multiple embodiments.Technical solution provided in an embodiment of the present invention is suitable for
The case where making step counting small routine feed back same day initial baseline step number based on user data synchronization request.In the present embodiment, optional
, the same day initial baseline step number is fed back into the target application, comprising:
The step counting small routine feeds back to the same day initial baseline step number when detecting user data synchronization request
The target application.
As shown in figure 3, technical solution provided in an embodiment of the present invention includes:
S310: when target application detects that the same day triggers step number acquisition function for the first time, target application is answered to described preset
With the opening request for sending step counting small routine, so that the step counting small routine is opened in the default application, and work as the step counting
Same day initial baseline step number is obtained when small routine is opened from the default application, and when step counting small routine detects user data
When synchronization request, the same day initial baseline step number is fed back into the target application.
In embodiments of the present invention, when step counting small routine is opened, at the beginning of step counting small routine obtains the same day from default application
The quasi- step number of primordium, and show the synchronization controls of the same day initial baseline step number of synchronous user.Wherein, the form of synchronization controls is not
It is restricted, can be the forms such as button.Synchronization controls can be used identification information and be identified, for example, can using text into
Line identifier, or can also be rendered by using color.By being identified to synchronization controls, family can be used and be easy to distinguish
Know synchronization controls, synchronization controls is quickly found out, to improve operating efficiency.
In an embodiment of the embodiment of the present invention, optionally, when detecting user data synchronization request, by institute
It states same day initial baseline step number and feeds back to the target application, may include: when the step counting small routine detects that user triggers
When the synchronization controls that the step counting small routine is shown, the same day initial baseline step number is fed back into the target application.Wherein,
If user needs for the same day initial baseline step number that step counting small routine obtains to be synchronized in target application, user can trigger synchronization
Control.When user triggers synchronization controls, step counting small routine detects that user triggers the operation of synchronization controls, by primordium at the beginning of the same day
Quasi- step number feeds back to target application.
As a result, when target application detects that the same day triggers step number acquisition function for the first time, passes through default application and open step counting
Small routine obtains same day initial baseline step number from default application when opening by step counting small routine, and same based on user data
Step is requested so that same day initial baseline step number is fed back to target application by step counting small routine, can carry out data according to user demand
It is synchronous.
It should be noted that same day initial baseline step number is fed back to target for step counting small routine in the embodiment of the present invention
The triggering mode of application is not limited to above-mentioned mode, is also possible to be triggered by user speech, or pass through other
Mode is triggered.
S320: the target application obtains the same day initial baseline step number of the step counting small routine feedback, and obtains
The first system step number that system sensor provides.
S330: when the target application detects that the same day triggers step number acquisition function again, the system sensing is obtained
The second system step number that device provides.
S340: the target application is based on the same day initial baseline step number, the first system step number and described the
Two system step number determines the current day step number of user.
Fig. 4 is a kind of step-recording method flow chart provided in an embodiment of the present invention, and in the present embodiment, the embodiment of the present invention can
With in conjunction with each optinal plan in said one or multiple embodiments, method provided in an embodiment of the present invention be suitable for
After the step number that the family same day triggers target application for the first time obtains function, and obtained in the step number that user's same day triggers target application again
Before taking function, close in the scene of target application.
S410: when target application detects that the same day triggers step number acquisition function for the first time, target application is answered to described preset
With the opening request for sending step counting small routine, so that the step counting small routine is opened in the default application, and work as the step counting
Same day initial baseline step number is obtained when small routine is opened from the default application, and when step counting small routine detects user data
When synchronization request, the same day initial baseline step number is fed back into the target application.
S420: the target application obtains the same day initial baseline step number of the step counting small routine feedback, and obtains
The first system step number that system sensor provides.
S430: when the target application is switched to opening state by closed state, and detect that triggering step number obtains again
When function, the second system step number that the system sensor provides is obtained.
In embodiments of the present invention, after user's same day triggers step number acquisition function for the first time, target application can be shown
The same day initial baseline step number of acquisition makes the day step number of user's understanding at this time, and system sensor is provided so that user checks
The first system step number stored.After user checks day step number at this time, in order to reduce the power consumption of electronic equipment
And memory consumption etc., target application can be closed.If user is it should be understood that walk current day by preset time period
Number, user can be again turned on target application, and the same day triggers the step number acquisition function of target application again, thus target application
When being switched to opening state by closed state, and detecting that the same day triggers step number acquisition function again, obtains system sensor and mention
The second system step number of confession.
S440: the target application is based on the same day initial baseline step number, the first system step number and described the
Two system step number determines the current day step number of user.
Technical solution provided in an embodiment of the present invention, user's same day trigger for the first time target application step number obtain function it
Afterwards, it and before the step number that user's same day triggers target application again obtains function, closes in the scene of target application, by working as
It triggers target application day for the first time and the same day triggers the step number acquisition getable step count data of function of target application again, determination is worked as
It triggers corresponding day step number when target application day again, may not need target application real time execution, it can accurately obtain user
Day step number.
Fig. 5 is a kind of step-recording method flow chart provided in an embodiment of the present invention, as shown in figure 5, the embodiment of the present invention provides
Technical solution include:
S510: user's same day enters step number for the first time and obtains function.
S520: the same day initial baseline step number in the synchronous wechat application of wechat small routine is opened, and returns to target application.
S530: the same day initial baseline step number of target application storage feedback, and label is stored, is named as W.
S540: target application has been got since electronic equipment is switched on by TYPE_STEP_COUNTER step-counting sensor and is walked
Several accumulated values, and stored, it is named as M1。
S550: the total step number on user's same day is the synchronous same day initial baseline step number of wechat small routine, as W at this time.
S560: the step number for exiting target application obtains function.
S570: user's same day enters step number for the second time and obtains function.
S580: step number is cumulative since getting electronic equipment booting by TYPE_STEP_COUNTER step-counting sensor
Value, is named as M2。
S590: determine that the current day step number of user is W+ (M2-M1)。
S591: it exits step number and obtains function.
S592: when user, which enters step number, obtains function next time, last operation is repeated, updates M2, used with determining
The current day step number in family.
For example, can repeat secondary operation when user's third time enters step number and obtains function, update M2。
Or step-recording method may also is that the current day step number of determining user is W+ (M2-M1) after, it can also be by user
Current day step number upload server is saved, and B is denoted as1, when entering step number acquisition function next time, pass through TYPE_
STEP_COUNTER step-counting sensor has got the accumulated value of step number since electronic equipment is switched on, and is denoted as M3, then user is current
Total step number is B2=B1+(M3-M2), and the current general headquarters' number of user is uploaded, for example, W=2000, M1=1000, M2=
1200, then B1=2200, if M3=1500, then B2=B1+(M3-M2)=2200+ (1500-1200)=2500.When n-th enters
When step number obtains function, step number is tired since getting electronic equipment booting by TYPE_STEP_COUNTER step-counting sensor
It is value added, it is denoted as Bn=Bn-1+(Mn-Mn-1)。
Fig. 6 is a kind of exchanging method flow chart provided in an embodiment of the present invention, and the method can be by a kind of exchanging device
Execute, described device can realize by software and/or hardware, described device can be only fitted to mobile phone, tablet computer or
In the electronic equipments such as wearable device.
Technical solution provided in an embodiment of the present invention can be applied to need the day step number using user in some business
In scene, a specific scene be in the scene that can be applied to need to exchange the day step number of user or other
Need using user day step number scene in.
As shown in fig. 6, technical solution provided in an embodiment of the present invention includes:
S610: when target application detects that the same day triggers step number acquisition function for the first time, obtain what step counting small routine provided
The first system step number that same day initial baseline step number and system sensor provide.
S620: when the target application detects that the same day triggers step number acquisition function again, the system sensing is obtained
The second system step number that device provides.
S630: the target application is based on the same day initial baseline step number, the first system step number and described the
Two system step number determines the current day step number of user.
In embodiments of the present invention, being discussed in detail for S610-S630 can be no longer tired with reference to the introduction in above-described embodiment
It states.
S640: when the target application detects the step number exchange operation of the user, sending redemption request to server,
And receive the exchange object corresponding with the redemption request of the server feedback.
In embodiments of the present invention, optionally, the mark for carrying user identity information in the redemption request, exchanging object
Information and the current day step number of user;The redemption request, is used to indicate:
The server is determined according to the identification information for exchanging object exchanges object;
The server judges whether the current day step number of user meets the redemption of conditional for exchanging object;
If so, the exchange object is fed back to target application corresponding with user identity information by the server;
If it is not, the server is fed back to target application corresponding with user identity information exchanges failure news.
In embodiments of the present invention, it specifically, user can log in target application, or can also be answered without logging into target
With, but target application and user identity information have binding relationship.It, can after target application determines user's current day step number
Day step number to be shown, and show step count information required for exchanging object and exchange object.When target application detects
To user step number exchange operation when, send redemption request to server, user identity information can be carried in redemption request, converted
Change the identification information of object and the day step number that user is current.When server receives redemption request, according to exchange object
Identification information, which determines, exchanges object, judges whether the current day step number of user meets the redemption of conditional for exchanging object;If so, will convert
It changes object and feeds back to target application, exchange failure news if it is not, feeding back to target application, converted with reminding user to carry out other
It changes.
If server judges that the current day step number of user meets the redemption of conditional for exchanging object, will exchange object and updates
Target application is fed back into the user information of storage, and by the user information of update, so that user can be with by target application
View the exchange object of oneself exchange.Optionally, exchanging object includes franchise gold, discount coupon, cash red packet or integral, is converted
Changing object can also include public welfare fund or other objects.Wherein, redemption of conditional can be set according to the actual situation, example
Such as, 5000 steps can exchange 2 yuan of discount coupons.
Technical solution provided in an embodiment of the present invention, when target application triggered step number acquisition function by the same day for the first time, from
The first system step number and the same day that the same day initial step number and system sensor that the default application of real time execution obtains provide
The step number for triggering target application again obtains the second system step number that the system sensor that function obtains provides, and determines user's same day
The step number for triggering target application again obtains corresponding day step number when function, can accurately determine the day step number of user, especially
When target application is not in system white list, the day step number of user can also be accurately determined, the day step number for passing through user carries out
It exchanges, the exchange source for exchanging object can be increased, can also be improved the enthusiasm of user movement.
Fig. 7 is a kind of step counting data transmission method for uplink flow chart provided in an embodiment of the present invention, and the method is by step counting data
Sending device executes, and described device can realize that described device can be only fitted to step counting small routine by software and/or hardware
In, step counting small routine may be mounted in the default application in system white list.Default application can be only fitted to mobile phone, plate electricity
In the electronic equipments such as brain or wearable device.
Method provided in an embodiment of the present invention is applied in step counting small routine, wherein step counting small routine can be and not have
The small routine that target application in system white list is communicated.
As shown in fig. 7, technical solution provided in an embodiment of the present invention includes:
S710: when step counting small routine is opened in default application, same day initial baseline is obtained from the default application
Step number;Wherein, the step counting small routine is opened by target application by the default application;Described preset is applied real-time from the background
Operation.
S720: the same day initial baseline step number is fed back to the target application by the step counting small routine.
In an embodiment of the embodiment of the present invention, optionally, the step counting small routine is by primordium at the beginning of the same day
Quasi- step number feeds back to the target application, comprising:
The step counting small routine feeds back to the same day initial baseline step number when detecting user data synchronization request
The target application.
Optionally, the step counting small routine walks the same day initial baseline when detecting user data synchronization request
Number feeds back to the target application, comprising: when the step counting small routine detects that user triggers what the step counting small routine was shown
When synchronization controls, the same day initial baseline step number is fed back into the target application.
Step introduction in the embodiment of the present invention can be with reference to the introduction in above-described embodiment about step counting small routine, no longer
It is tired to state.
Method provided in an embodiment of the present invention, primordium at the beginning of obtaining the same day from default application when opening by step counting small routine
Quasi- step number, and same day initial baseline step number is fed back into target application, so that user determines that the day of user walks by target application
The indirect communication of target application and default application may be implemented in number, and number can not be obtained from default application by solving target application
According to the problem of.
Fig. 8 is a kind of step-recording method flow chart provided in an embodiment of the present invention, as shown in figure 8, the embodiment of the present invention provides
Technical solution include:
S810: target application detects that the same day triggers step number for the first time and obtains function.
S820: the opening for sending step counting small routine is requested to the default application.
S830: default application opens the step counting small routine based on opening request.
S840: when step counting small routine is opened, step counting small routine obtains the same day initial baseline of user from default application
Step number.
S850: the data synchronization request of step counting small routine reception user.
S860: same day initial baseline step number is fed back to target application by step counting small routine.
S870: target application receives the same day initial baseline step number, and obtains the first system of system sensor offer
Step number.
S880: it when target application detects that the same day triggers step number acquisition function again, obtains the system sensor and mentions
The second system step number of confession.
S890: the target application is based on the same day initial baseline step number, the first system step number and described the
Two system step number determines the current day step number of user.
Technical solution provided in an embodiment of the present invention may not need the day step number that user is calculated using acceleration transducer,
The accuracy that day step number determines is improved, and may not need target application real time execution in the electronic device, to work as target
When using no system white list, the day step number of user can also be accurately obtained.
Fig. 9 is a kind of step count set structural block diagram provided in an embodiment of the present invention, as shown in figure 9, described device includes:
One, which obtains module 910, second, obtains module 920 and day step number determining module 930.First obtains module 910, for answering when target
When with detecting that the same day triggers step number acquisition function for the first time, same day initial baseline is obtained from default application by step counting small routine
Step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine is mounted on described preset and answers
In, described preset applies the real time execution in the electronic equipment for configuring the target application;
Second obtains module 920, for obtaining the system and passing when detecting that the same day triggers step number acquisition function again
The second system step number that sensor provides;
Day step number determining module 930, for being based on the same day initial baseline step number, the first system step number and institute
It states second system step number and determines the current day step number of user.
It is optionally, described to obtain same day initial baseline step number from default application by step counting small routine, comprising:
The target application opens the step counting small routine by default application so that when the step counting small routine is opened from
Same day initial baseline step number is obtained in the default application, and the initial baseline step number is fed back into the target application;
The target application obtains the same day initial baseline step number of the step counting small routine feedback.
Optionally, the target application opens the step counting small routine by the default application, comprising:
The target application sends the opening request of the step counting small routine to the default application, so that described preset is answered
With the opening step counting small routine.
It is optionally, described that the initial baseline step number is fed back into the target application, comprising:
The step counting small routine feeds back to the same day initial baseline step number when detecting user data synchronization request
The target application.
Optionally, the step counting small routine walks the same day initial baseline when detecting user data synchronization request
Number feeds back to the target application, comprising:
When the step counting small routine detects that user triggers the synchronization controls that the step counting small routine is shown, work as by described in
Day initial baseline step number feeds back to the target application.
Optionally, second module 920 is obtained, for being switched to opening state by closed state when the target application, and
When detecting that the same day triggers step number acquisition function again, the second system step number that the system sensor provides is obtained.
Optionally, day step number determining module 930, for determining the current day step number of user based on following formula:
B=W+ (M2-M1);
Wherein, B is the current day step number of user, and W is the same day initial baseline step number, M2For second system step
Number, M1For the first system step number;The accumulated value of step number since system step number is electronic equipment booting.
Optionally, the target application is the application of consumer sale.
Optionally, the system sensor is the TYPE_STEP_COUNTER step-counting sensor of android system.
Optionally, the step counting small routine is the wechat small routine or the step counting little Cheng being mounted in wechat application
Sequence is the small routine being mounted in Alipay application.
Method provided by any embodiment of the invention can be performed in above-mentioned apparatus, has the corresponding functional module of execution method
And beneficial effect.
Figure 10 is a kind of exchanging device structural block diagram provided in an embodiment of the present invention, as shown in Figure 10, described device configuration
In target application, comprising: first, which obtains module 1010, second, obtains module 1020, day step number determining module 1030 and exchange mould
Block.
First obtains module 1010, for passing through step counting little Cheng when detecting that the same day triggers step number acquisition function for the first time
Sequence obtains same day initial baseline step number from default application and obtains the first system step number that system sensor provides;Wherein,
The step counting small routine is mounted in the default application, and described preset is applied in the electronic equipment for configuring the target application
Real time execution;
Second obtains module 1020, for obtaining the system when detecting that the same day triggers step number acquisition function again
The second system step number that sensor provides;
Day step number determining module 1030, for based on the same day initial baseline step number, the first system step number and
The second system step number determines the current day step number of user;
Module 1040 is exchanged, for sending redemption request to server when detecting the step number exchange operation of the user,
And receive the exchange object corresponding with the redemption request of the server feedback.
Optionally, it is current that user identity information, the identification information for exchanging object and user are carried in the redemption request
Day step number;
The redemption request, is used to indicate:
The server is determined according to the identification information for exchanging object exchanges object;
The server judges whether the current day step number of user meets the redemption of conditional for exchanging object;
If so, the exchange object is fed back to target application corresponding with user identity information by the server;
If it is not, the server is fed back to target application corresponding with user identity information exchanges failure news.
Optionally, the exchange object includes franchise gold, discount coupon, cash red packet or integral.
Method provided by any embodiment of the invention can be performed in above-mentioned apparatus, has the corresponding functional module of execution method
And beneficial effect.
Figure 11 is a kind of step counting data sending device structural block diagram provided in an embodiment of the present invention, as shown in figure 11, described
Device includes: to obtain module 1110 and feedback module 1120.
Wherein, module 1110 is obtained, for when step counting small routine is opened in default application, from the default application
Obtain same day initial baseline step number;Wherein, the step counting small routine is opened by target application by the default application;It is described pre-
If applying the real time execution in the electronic equipment of configuration target application;
Feedback module 1120, for the same day initial baseline step number to be fed back to the target application.
Optionally, feedback module 1120, for when detect user data synchronization request when, by the same day initial baseline
Step number feeds back to the target application.
Optionally, when detecting user data synchronization request, the same day initial baseline step number is fed back into the mesh
Mark application, comprising:
When detecting that user triggers the synchronization controls that the step counting small routine is shown, by the same day initial baseline step number
Feed back to the target application.
Method provided by any embodiment of the invention can be performed in above-mentioned apparatus, has the corresponding functional module of execution method
And beneficial effect.
Figure 12 is a kind of device structure schematic diagram provided in an embodiment of the present invention, and as shown in figure 12, which includes:
One or more processors 1210, in Figure 12 by taking a processor 1210 as an example;
Memory 1220;
The equipment can also include: input unit 1230 and output device 1240.
Processor 1210, memory 1220, input unit 1230 and output device 1240 in the equipment can pass through
Bus or other modes connect, in Figure 12 for being connected by bus.
Memory 1220 is used as a kind of non-transient computer readable storage medium, can be used for storing software program, computer
Executable program and module, if the corresponding program instruction/module of one of embodiment of the present invention step-recording method is (for example, attached
Shown in Fig. 9 first, which obtains module 910, second, obtains module 920 and day step number determining module 930), or as the present invention is implemented
One of the example corresponding program instruction/module of exchanging method is (for example, the first acquisition module 1010 shown in Fig. 10, second obtain
Modulus block 1020, day step number determining module 1030 and exchange module), or such as one of embodiment of the present invention step counting data hair
Corresponding program instruction/the module of delivery method (for example, acquisition module 1110 and feedback module 1120 shown in Figure 11).Processor
1210 software program, instruction and the modules being stored in memory 1220 by operation, thereby executing each of computer equipment
A kind of step-recording method of above method embodiment is realized in kind functional application and data processing, it may be assumed that
When detecting that the same day triggers step number acquisition function for the first time, the same day is obtained from default application by step counting small routine
Initial baseline step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine is mounted on institute
It states in default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When detecting that the same day triggers step number acquisition function again, the second system step that the system sensor provides is obtained
Number;
User is determined based on the same day initial baseline step number, the first system step number and the second system step number
Current day step number.
Or realize a kind of step-recording method of above method embodiment, it may be assumed that
When detecting that the same day triggers step number acquisition function for the first time, the same day is obtained from default application by step counting small routine
Initial baseline step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine is mounted on institute
It states in default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When detecting that the same day triggers step number acquisition function again, the second system step that the system sensor provides is obtained
Number;
User is determined based on the same day initial baseline step number, the first system step number and the second system step number
Current day step number;
When detecting the step number exchange operation of the user, redemption request is sent to server, and receive the server
The exchange object corresponding with the redemption request of feedback.
Or realize a kind of step counting data transmission method for uplink of above method embodiment, it may be assumed that
When step counting small routine is opened in default application, same day initial baseline step number is obtained from the default application;
Wherein, the step counting small routine is opened by target application by the default application;Default apply is configuring target application
Electronic equipment in real time execution;
The same day initial baseline step number is fed back into the target application.
Memory 1220 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area can be stored to be created according to using for computer equipment
Data etc..In addition, memory 1220 may include high-speed random access memory, it can also include non-transitory memory, example
Such as at least one disk memory, flush memory device or other non-transitory solid-state memories.In some embodiments, it deposits
Optional reservoir 1220 includes the memory remotely located relative to processor 1210, these remote memories can be connected by network
It is connected to terminal device.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and
A combination thereof.
Input unit 1230 can be used for receiving the number or character information of input, and generate the user with computer equipment
Setting and the related key signals input of function control.Output device 1240 may include that display screen etc. shows equipment.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the program
A kind of such as step-recording method provided in an embodiment of the present invention is realized when being executed by processor:
When detecting that the same day triggers step number acquisition function for the first time, the same day is obtained from default application by step counting small routine
Initial baseline step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine is mounted on institute
It states in default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When detecting that the same day triggers step number acquisition function again, the second system step that the system sensor provides is obtained
Number;
User is determined based on the same day initial baseline step number, the first system step number and the second system step number
Current day step number.
Or realize a kind of step-recording method of above method embodiment, it may be assumed that
When detecting that the same day triggers step number acquisition function for the first time, the same day is obtained from default application by step counting small routine
Initial baseline step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine is mounted on institute
It states in default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When detecting that the same day triggers step number acquisition function again, the second system step that the system sensor provides is obtained
Number;
User is determined based on the same day initial baseline step number, the first system step number and the second system step number
Current day step number;
When detecting the step number exchange operation of the user, redemption request is sent to server, and receive the server
The exchange object corresponding with the redemption request of feedback.
Or realize a kind of step counting data transmission method for uplink of above method embodiment, it may be assumed that
When step counting small routine is opened in default application, same day initial baseline step number is obtained from the default application;
Wherein, the step counting small routine is opened by target application by the default application;Default apply is configuring target application
Electronic equipment in real time execution;
The same day initial baseline step number is fed back into the target application.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating
Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited
In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates
The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just
Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (15)
1. a kind of step-recording method characterized by comprising
When target application detects that the same day triggers step number acquisition function for the first time, obtained from default application by step counting small routine
Same day initial baseline step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine installation
In the default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When the target application detects that the same day triggers step number again and obtains function, obtain that the system sensor provides the
Two system step number;
The target application is based on the same day initial baseline step number, the first system step number and the second system step number
Determine the current day step number of user.
2. the method according to claim 1, wherein described obtained from default application by step counting small routine is worked as
Day initial baseline step number, comprising:
The target application opens the step counting small routine by default application, so that from described when the step counting small routine is opened
Same day initial baseline step number is obtained in default application, and the initial baseline step number is fed back into the target application;
The target application obtains the same day initial baseline step number of the step counting small routine feedback.
3. according to the method described in claim 2, it is characterized in that, the target application passes through described in the default application opening
Step counting small routine, comprising:
The target application sends the opening request of the step counting small routine to the default application, so that the default application is beaten
Open the step counting small routine.
4. according to the method described in claim 2, it is characterized in that, described answer the initial baseline step number feedback target
With, comprising:
The step counting small routine feeds back to the same day initial baseline step number described when detecting user data synchronization request
Target application.
5. according to the method described in claim 4, it is characterized in that, the step counting small routine, which is worked as, detects that user data synchronization is asked
When asking, the same day initial baseline step number is fed back into the target application, comprising:
It, will be at the beginning of the same day when the step counting small routine detects that user triggers the synchronization controls that the step counting small routine is shown
The quasi- step number of primordium feeds back to the target application.
6. the method according to claim 1, wherein when the target application detects that the same day triggers step number again
When obtaining function, the second system step number that the system sensor provides is obtained, comprising:
When the target application is switched to opening state by closed state, and detect that the same day triggers step number again and obtains function
When, obtain the second system step number that the system sensor provides.
7. a kind of exchanging method characterized by comprising
When target application detects that the same day triggers step number acquisition function for the first time, obtained from default application by step counting small routine
Same day initial baseline step number and the first system step number that system sensor offer is provided;Wherein, the step counting small routine installation
In the default application, described preset applies the real time execution in the electronic equipment for configuring the target application;
When the target application detects that the same day triggers step number again and obtains function, obtain that the system sensor provides the
Two system step number;
The target application is based on the same day initial baseline step number, the first system step number and the second system step number
Determine the current day step number of user;
When the target application detects the step number exchange operation of the user, redemption request is sent to server, and receive institute
State the exchange object corresponding with the redemption request of server feedback.
8. a kind of step counting data transmission method for uplink characterized by comprising
When step counting small routine is opened in default application, same day initial baseline step number is obtained from the default application;Wherein,
The step counting small routine is opened by target application by the default application;The default electronics applied in configuration target application
Real time execution in equipment;
The same day initial baseline step number is fed back to the target application by the step counting small routine.
9. according to the method described in claim 8, it is characterized in that, the step counting small routine is by the same day initial baseline step number
Feed back to the target application, comprising:
The step counting small routine feeds back to the same day initial baseline step number described when detecting user data synchronization request
Target application.
10. according to the method described in claim 9, it is characterized in that, the step counting small routine, which is worked as, detects user data synchronization
When request, the same day initial baseline step number is fed back into the target application, comprising:
It, will be at the beginning of the same day when the step counting small routine detects that user triggers the synchronization controls that the step counting small routine is shown
The quasi- step number of primordium feeds back to the target application.
11. a kind of step count set, which is characterized in that described device is configured in target application, comprising:
First obtains module, for when detecting that the same day triggers step number for the first time and obtains function, by step counting small routine from default
Same day initial baseline step number is obtained in and obtains the first system step number that system sensor provides;Wherein, the step counting
Small routine is mounted in the default application, and default apply is transported in real time in the electronic equipment for configuring the target application
Row;
Second obtains module, for obtaining the system sensor and mentioning when detecting that the same day triggers step number acquisition function again
The second system step number of confession;
Day step number determining module, for being based on the same day initial baseline step number, the first system step number and described second
System step number determines the current day step number of user.
12. a kind of exchanging device, which is characterized in that described device is configured in target application, comprising:
First obtains module, for when detecting that the same day triggers step number for the first time and obtains function, by step counting small routine from default
Same day initial baseline step number is obtained in and obtains the first system step number that system sensor provides;Wherein, the step counting
Small routine is mounted in the default application, and default apply is transported in real time in the electronic equipment for configuring the target application
Row;
Second obtains module, for obtaining the system sensor and mentioning when detecting that the same day triggers step number acquisition function again
The second system step number of confession;
Day step number determining module, for being based on the same day initial baseline step number, the first system step number and described second
System step number determines the current day step number of user;
Module is exchanged, for sending redemption request to server, and receive institute when detecting the step number exchange operation of the user
State the exchange object corresponding with the redemption request of server feedback.
13. a kind of step counting data sending device characterized by comprising
Module is obtained, for it is initial to obtain the same day from the default application when step counting small routine is opened in default application
Benchmark step number;Wherein, the step counting small routine is opened by target application by the default application;Default apply is configuring
Real time execution in the electronic equipment of target application;
Feedback module, for the same day initial baseline step number to be fed back to the target application.
14. a kind of equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
A kind of existing step-recording method as claimed in any one of claims 1 to 6, a kind of exchanging method as claimed in claim 7, such as right
It is required that a kind of described in any item step counting data transmission method for uplink of 8-10.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
A kind of step-recording method as claimed in any one of claims 1 to 6 is realized when execution, a kind of exchange side as claimed in claim 7
Method, such as a kind of described in any item step counting data transmission method for uplink of claim 8-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910333610.6A CN110081903B (en) | 2019-04-24 | 2019-04-24 | Step counting, exchange and step counting data sending method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910333610.6A CN110081903B (en) | 2019-04-24 | 2019-04-24 | Step counting, exchange and step counting data sending method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110081903A true CN110081903A (en) | 2019-08-02 |
CN110081903B CN110081903B (en) | 2021-11-02 |
Family
ID=67416539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910333610.6A Active CN110081903B (en) | 2019-04-24 | 2019-04-24 | Step counting, exchange and step counting data sending method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110081903B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112017752A (en) * | 2020-08-31 | 2020-12-01 | 聚跑(广东)科技有限公司 | Income value conversion method and system |
CN112965886A (en) * | 2021-02-25 | 2021-06-15 | 苏宁智能终端有限公司 | Step counting method and device, terminal equipment and computer readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090298479A1 (en) * | 2008-05-29 | 2009-12-03 | Fujitsu Limited | Mobile terminal and step length-calculating method |
CN106482742A (en) * | 2016-09-13 | 2017-03-08 | 广东欧珀移动通信有限公司 | The acquisition methods of meter step data and device |
CN107167159A (en) * | 2017-04-26 | 2017-09-15 | 青岛海信移动通信技术股份有限公司 | The method and mobile terminal of a kind of mobile terminal step |
CN109029492A (en) * | 2018-10-12 | 2018-12-18 | 潍坊歌尔电子有限公司 | A kind of step-recording method, device and wrist step counting equipment |
CN109115240A (en) * | 2018-08-02 | 2019-01-01 | 上海亿保健康管理有限公司 | A kind of step-recording method based on Android step-counting sensor |
CN109141465A (en) * | 2018-07-19 | 2019-01-04 | 歌尔科技有限公司 | A kind of step-recording method, wearable device and computer readable storage medium |
CN109620247A (en) * | 2018-12-25 | 2019-04-16 | 努比亚技术有限公司 | A kind of equivalent step-recording method, equipment and computer readable storage medium |
CN110108296A (en) * | 2019-04-19 | 2019-08-09 | 北京金山安全软件有限公司 | Step counting method, electronic equipment and computer readable storage medium |
-
2019
- 2019-04-24 CN CN201910333610.6A patent/CN110081903B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090298479A1 (en) * | 2008-05-29 | 2009-12-03 | Fujitsu Limited | Mobile terminal and step length-calculating method |
CN106482742A (en) * | 2016-09-13 | 2017-03-08 | 广东欧珀移动通信有限公司 | The acquisition methods of meter step data and device |
CN107167159A (en) * | 2017-04-26 | 2017-09-15 | 青岛海信移动通信技术股份有限公司 | The method and mobile terminal of a kind of mobile terminal step |
CN109141465A (en) * | 2018-07-19 | 2019-01-04 | 歌尔科技有限公司 | A kind of step-recording method, wearable device and computer readable storage medium |
CN109115240A (en) * | 2018-08-02 | 2019-01-01 | 上海亿保健康管理有限公司 | A kind of step-recording method based on Android step-counting sensor |
CN109029492A (en) * | 2018-10-12 | 2018-12-18 | 潍坊歌尔电子有限公司 | A kind of step-recording method, device and wrist step counting equipment |
CN109620247A (en) * | 2018-12-25 | 2019-04-16 | 努比亚技术有限公司 | A kind of equivalent step-recording method, equipment and computer readable storage medium |
CN110108296A (en) * | 2019-04-19 | 2019-08-09 | 北京金山安全软件有限公司 | Step counting method, electronic equipment and computer readable storage medium |
Non-Patent Citations (2)
Title |
---|
HORITA YOUSUKE,ETC: "New attempt of proposing the pedometer algorithm in the elderly", 《2008 5TH INTERNATIONAL SUMMER SCHOOL AND SYMPOSIUM ON MEDICAL DEVICES AND BIOSENSORS》 * |
刘兵: "基于ADXL362的低功耗计步器的设计与实现", 《中国优秀硕士学位论文全文数据库工程科技Ⅰ辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112017752A (en) * | 2020-08-31 | 2020-12-01 | 聚跑(广东)科技有限公司 | Income value conversion method and system |
CN112965886A (en) * | 2021-02-25 | 2021-06-15 | 苏宁智能终端有限公司 | Step counting method and device, terminal equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110081903B (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016206324A1 (en) | Method of controlling self-service washing machine, and terminal and system utilizing same | |
CN106131057B (en) | Certification based on virtual reality scenario and device | |
CN111739553B (en) | Conference sound collection, conference record and conference record presentation method and device | |
KR102390713B1 (en) | Electronic device and method for providing call service | |
CN105204743A (en) | Interaction control method and device for speech and video communication | |
US20220115012A1 (en) | Method and apparatus for processing voices, device and computer storage medium | |
CN104484114A (en) | Data transfer method, mobile terminal and data transfer system | |
EP3889841A1 (en) | Method and apparatus for training a classification neural network, text classification method and apparatuses, and device | |
CN109168091A (en) | Company's wheat method, apparatus, equipment and storage medium in a kind of direct broadcasting room | |
WO2021169628A1 (en) | Enhanced video call method and system, and electronic device | |
CN110081903A (en) | Step counting, exchange, step counting data transmission method for uplink, device, equipment and storage medium | |
CN109495573A (en) | Data transmission method, device, storage medium and terminal | |
CN110718219B (en) | Voice processing method, device, equipment and computer storage medium | |
CN108574733A (en) | Network agent method and device, storage medium and electronic equipment | |
CN108139736A (en) | The remote access method and system of electrical equipment | |
JP5981009B1 (en) | Payment processing apparatus, mail order ordering system, payment processing method, information processing method, and program | |
CN110381439A (en) | A kind of localization method, device, server, storage medium and terminal | |
CN109995543A (en) | Method and apparatus for adding group members | |
CN103109301A (en) | Pager system including advertisement function and control method thereof | |
JP2020071721A (en) | Electronic device, control method thereof, and program thereof | |
CN112541767B (en) | Face brushing payment method and device, face brushing equipment and server | |
CN109064223A (en) | A kind of virtual present presentation method, device, server and storage medium | |
CN113554795A (en) | Intelligent queuing method, device and system for business handling hall | |
KR102051828B1 (en) | Method of making video communication and device of mediating video communication | |
KR102346110B1 (en) | Method and device for providing consultation service using artificial intelligence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province Applicant after: Zhuhai necessary Industrial Technology Co.,Ltd. Address before: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province Applicant before: ZHUHAI SUIBIAN TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |