CN108986882A - A kind of motion scheme management system and method based on Android platform - Google Patents
A kind of motion scheme management system and method based on Android platform Download PDFInfo
- Publication number
- CN108986882A CN108986882A CN201710407198.9A CN201710407198A CN108986882A CN 108986882 A CN108986882 A CN 108986882A CN 201710407198 A CN201710407198 A CN 201710407198A CN 108986882 A CN108986882 A CN 108986882A
- Authority
- CN
- China
- Prior art keywords
- motion scheme
- scheme
- motion
- user
- interface
- 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
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/543—Local
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The embodiment of the present invention proposes a kind of motion scheme management system and method based on Android platform, comprising: creation module, editor module, display module;Wherein creation module from motion scheme database for calling preset body-building plan template and being shown to user by the display module, wherein including at least three preset motion schemes in the body-building plan template: primary motor scheme, intermediate motion scheme, advanced motion scheme;It wherein include preset kinematic parameter in each preset motion scheme;Wherein the kinematic parameter includes at least one kind below: target step counting value, sports events, the target value of each sports events, the total amount of exercise of target, target consumption, run duration section.Above-mentioned technical proposal can provide different motion schemes for different user, to realize more accurate user movement metering and remind, improve the reliability of data, improve the usage experience of user.
Description
Technical field
The invention belongs to electronic technology field more particularly to a kind of motion scheme management systems based on Android platform
And method.
Background technique
With the development of technology, various wearable devices gradually start to popularize, and wherein Intelligent bracelet is always one
The most common wearable device of kind.Existing wearable device (such as Intelligent bracelet) is equipped with step counting circuit, bluetooth communication mostly
Circuit, by bluetooth connection mobile terminal (Android operation system can be based on for smart phone, tablet computer, PDA etc.
Equipment), and counted by output signal of the mobile terminal to step counting circuit to obtain running body-building data.Wherein, it runs
Step construction data refer to all movement relevant data, such as walking, running, body-building etc..But existing mobile terminal is all
Only simple progress data receiver, step counting, and its step counting for the user of apparent different age group, different physical conditions
With obviously difference.Such as beginner, old man or student, office worker, or more professional running hobby
Person cannot achieve data if using identical motion scheme and accurately control, and it is corresponding effectively to remind user to carry out
It takes exercise.
Summary of the invention
For the problem of running body-building data inaccuracy existing in the prior art, the technical problem to be solved by the present invention is to
A kind of motion scheme management system and method based on Android platform is provided, a variety of step countings can be provided to different users
Scheme, to improve the usage experience of user.
To solve the above-mentioned problems, the embodiment of the present invention proposes a kind of motion scheme management based on Android platform
System, comprising: creation module, editor module, display module;
The creation module from motion scheme database for calling preset body-building plan template and by described aobvious
Show that module is shown to user, wherein including at least three preset motion schemes: primary motor side in the body-building plan template
Case, intermediate motion scheme, advanced motion scheme;It wherein include preset kinematic parameter in each preset motion scheme;And institute
Creation module is stated to be also used to be adjusted the preset scheme according to user's input and store in motion scheme database;
The kinematic parameter that the creation module is also used to extract blank Motion mask to select according to user generates customized motion scheme
And it stores and arrives motion scheme database;
The editor module passes through aobvious for reading the motion scheme stored in the motion scheme database and with list
Show that module is shown, and calls display module by the corresponding kinematic parameter of the motion scheme according to the motion scheme of user's selection
It is shown to user;It is also used to receive user's input and modifies or delete motion scheme with the kinematic parameter to motion scheme,
And accordingly update motion scheme database;
The display module is shown for reading according to the data of creation module and editor module;
Wherein the kinematic parameter includes at least one kind below: target step counting value, sports events, each sports events
The total amount of exercise of target value, target, target consumption, run duration section.
Wherein, the creation module executes following operation:
A creation key is provided at the top of the interface PlanShowActivity to monitor function call
StartActivityForResult () jumps to the creation page, and the creation page utilizes ListView control by body-building scheme mould
The motion scheme set in plate is shown with tabular form;And there is details key with selected movement on the creation page
The kinematic parameter of scheme is shown to user;
When user completes foundation step, the interface PlanShowActivity is obtained by OnActivityResult () function
The data for taking family input are stored to motion scheme database;
When user clicks the position of non-details key, function is monitored in the click of ListView can call the side setResult ()
The ID for choosing motion scheme and information are returned to PlanShowActivity by method, and finish () method is called to destroy
The interface PlanCreateActivity.
Wherein, the editor module executes following operation:
Editor module calls the interface PlanShowActivity of display module will store in motion scheme database
Motion scheme shows that ListView click event monitoring function can be called when motion scheme when the user clicks with tabular form
StartActivityForResult () function jumps to the interface PlanEditActivity, and calls motion scheme database
Query function inquire the information of the motion scheme, then call the ProgressBar to show the completeness of the motion scheme;
Editor module after receiving user's click and starting to train button, click event monitoring function and can call by button
Interface is jumped to homepage and user is waited to open training, while PlanEditActivity circle by startActivity () function
Face can call finish () function to destroy interface;
For editor module after receiving user and clicking delete button, button, which clicks event monitoring function, can call motion scheme
The delet method of database deletes data, and calls finish () function to destroy interface, while calling setResult () method
Delete command is returned to indicate that display interface deletes the motion scheme.
Wherein, the display module executes following operation:
Listview control is initialized by the interface PlanShowActivity, then inquires free_running.db number
According to the self-built all motion schemes of user in library, finally the scheme of inquiry is shown in lists;
When user creates or deletes motion scheme, OnActivityResult () is called at the interface PlanShowActivity
Function receives the information that the target Activity page returns, and the display of ListView function is adjusted according to the information of return.
Wherein, there are three parameters for the OnActivityResult (): request code requestCode, return code
ResultCode, it is intended to data;Wherein the datat that is intended to is used to handle the biography value between two Activity pages;Wherein
The returned data that the Activity page is obtained using data.getXXXExtra () method is sent out using request code requestCode
The Activity page for sending request distinguishes which Activity page return information belongs to using return code resultCode;
Wherein the resultCode of the PlanCreateActivity page is 0, the PlanEditActivity page
ResultCod is 1;Corresponding motion scheme is then added to the page when the resultCode that display module receives is 0
ListView list in;And the resultCode received be 1 when then corresponding motion scheme is deleted.
Meanwhile the embodiment of the present invention also proposed a kind of motion scheme management method based on Android platform, comprising:
Foundation step, edit step, display step;
The foundation step includes: preset body-building plan template to be called from motion scheme database and by being shown to
User, wherein including at least three preset motion schemes in the body-building plan template: primary motor scheme, intermediate movement side
Case, advanced motion scheme;It wherein include preset kinematic parameter in each preset motion scheme;Further include: it is defeated according to user
Enter and the preset scheme is adjusted and is stored in motion scheme database;Further include: extract blank Motion mask with
It generates customized motion scheme according to the kinematic parameter of user's selection and stores and arrive motion scheme database;
The edit step includes: to read the motion scheme stored in the motion scheme database and with list display,
And user is shown to according to the corresponding kinematic parameter of motion scheme that user selects;Further include: user's input is received to movement
Motion scheme is modified or deleted to the kinematic parameter of scheme, and accordingly updates motion scheme database;
The display step includes: to read to be shown according to the data of foundation step and edit step;
Wherein the kinematic parameter includes at least one kind below: target step counting value, sports events, each sports events
The total amount of exercise of target value, target, target consumption, run duration section.
Wherein, the foundation step executes following operation:
A creation key is provided at the top of the interface PlanShowActivity to monitor function call
StartActivityForResult () jumps to the creation page, and the creation page utilizes ListView control by body-building scheme mould
The motion scheme set in plate is shown with tabular form;And there is details key with selected movement on the creation page
The kinematic parameter of scheme is shown to user;
When user completes foundation step, the interface PlanShowActivity is obtained by OnActivityResult () function
The data for taking family input are stored to motion scheme database;
When user clicks the position of non-details key, function is monitored in the click of ListView can call the side setResult ()
The ID for choosing motion scheme and information are returned to PlanShowActivity by method, and finish () method is called to destroy
The interface PlanCreateActivity.
Wherein, the edit step executes following operation:
Using the interface PlanShowActivity with the motion scheme that will be stored in motion scheme database with tabular form
It has been shown that, ListView clicks event monitoring function and can call startActivityForResult when motion scheme when the user clicks
() function jumps to the interface PlanEditActivity, and calls the query function of motion scheme database to inquire the movement
Then the information of scheme calls ProgressBar to show the completeness of the motion scheme;
After receiving user's click and starting to train button, button is clicked event monitoring function and can be called
Interface is jumped to homepage and user is waited to open training, while PlanEditActivity circle by startActivity () function
Face can call finish () function to destroy interface;
After receiving user and clicking delete button, button, which clicks event monitoring function, can call motion scheme database
Delet method deletes data, and finish () function is called to destroy interface, while calling setResult () method to return and deleting
Order is to indicate that display interface deletes the motion scheme.
Wherein, the display step includes:
Listview control is initialized by the interface PlanShowActivity, then inquires free_running.db number
According to the self-built all motion schemes of user in library, finally the scheme of inquiry is shown in lists;
When user creates or deletes motion scheme, OnActivityResult () is called at the interface PlanShowActivity
Function receives the information that the target Activity page returns, and the display of ListView function is adjusted according to the information of return.
Wherein, there are three parameters for the OnActivityResult (): request code requestCode, return code
ResultCode, it is intended to data;Wherein the datat that is intended to is used to handle the biography value between two Activity pages;Wherein
The returned data that the ActiVity page is obtained using data.getXXXExtra () method is sent out using request code requestCode
The Activity page for sending request distinguishes which Activity page return information belongs to using return code resultCode;
Wherein the resultCode of the PlanCreateActivity page is 0, the PlanEditActiVity page
ResultCod is 1;Corresponding motion scheme is then added to the page when the resultCode received is 0
In ListView list;And the resultCode received be 1 when then corresponding motion scheme is deleted.
The advantageous effects of the above technical solutions of the present invention are as follows: the embodiment of the present invention proposes one kind based on Android
The motion scheme management system and method for platform can provide different motion schemes for different user, more smart to realize
True user movement metering and prompting, improve the reliability of data, improve the usage experience of user.
Detailed description of the invention
Fig. 1 is the integrated stand composition of the motion scheme management system of the embodiment of the present invention;
Fig. 2 is the work flow diagram of the creation module of the motion scheme of the embodiment of the present invention;
Fig. 3 is that the motion scheme of the embodiment of the present invention creates interface;
Fig. 4 is the work flow diagram of the editor module of the motion scheme of the embodiment of the present invention;
Fig. 5 is the motion scheme editing interface of the embodiment of the present invention;
Fig. 6 is the work flow diagram of the display module of the embodiment of the present invention;
Fig. 7 is the motion scheme display interface of the embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
For progress step counting indiscriminate to user in the prior art and design body-building scheme, lead to not for not
The problem of providing targeted step counting scheme and body-building scheme with the user of state, the embodiment of the present invention proposes a kind of needle
Motion scheme management system based on Android platform and the side of different step counting schemes and body-building scheme are provided to different users
Method.
Specifically, the motion scheme management system based on Android platform of the embodiment of the present invention is as shown in Figure 1, packet
It includes: creation module, editor module, display module.Correspondingly, system is made of three Activity: by
" motion scheme creation " interface of PlanCreateActivity class the creation, " movement created by PlanEditActivity class
Project edit " interface, " motion scheme displaying " interface created by PlanShowActivity class.
The creation module from motion scheme database for calling preset body-building plan template and by described aobvious
Show that module is shown to user, wherein in the body-building plan template include at least three preset movements: primary motor scheme, in
Grade motion scheme, advanced motion scheme;It wherein include preset kinematic parameter in each preset motion scheme;And the creation
Module is also used to be inputted according to user and is adjusted and is stored in motion scheme database to the preset scheme;The wound
The kinematic parameter that modeling block is also used to extract blank Motion mask to select according to user generates customized motion scheme and stores
To motion scheme database;
The editor module passes through aobvious for reading the motion scheme stored in the motion scheme database and with list
Show that module is shown, and calls display module by the corresponding kinematic parameter of the motion scheme according to the motion scheme of user's selection
It is shown to user;It is also used to receive user's input and modifies or delete motion scheme with the kinematic parameter to motion scheme,
And accordingly update motion scheme database;
The display module is shown for reading according to the data of creation module and editor module;
Wherein the kinematic parameter includes at least one kind below: target step counting value, sports events, each sports events
The total amount of exercise of target value, target, target consumption, run duration section.
The embodiment of the present invention gives three kinds of most common walking (running) body-building schemes: one is suitable beginner, always
The primary motor scheme of people;One is the intermediate motion schemes of suitable student, office worker;One is the professions of suitable running intelligent
Motion scheme.Primary scheme mainly using the assessment of health status and physical efficiency as the foundation developed programs, intermediate scheme mainly with
Aerobic exercise standard is as the foundation developed programs, and advanced scheme is using training athlete standard as the foundation developed programs.Fortune
Dynamic scheme mainly realizes the creation, displaying and editting function of motion scheme, realizes frame such as Fig. 1.
Specifically, as shown in Figure 2 and Figure 3, the creation of motion scheme needs " motion scheme is shown " interface and " movement side
The work in combination at case creation " interface is just able to achieve." creation " key is provided at the top of the interface PlanShowActivity,
The key monitors function call startActivityForResult () method and realizes that interface jumps, and can be obtained using this method
Obtain the return parameters of target Activity.It can enter when user clicks and creates and be created by PlanCreateActivity class
" motion scheme creation " interface.Motion scheme can be shown to user with tabular form by interface, and (list uses ListView control
Generate), list items are provided with " details " button, and user can click " details " button and check scheme details.It is a certain when the user clicks
List items in addition to " details " button from anywhere in when, function is monitored in the click that can trigger ListView, which can call
The id for choosing motion scheme and relevant programme information are returned to PlanShowActivity by setResult () method, and are called
Finish () method destroys the interface PlanCreateActivity.If the interface PlanShowActivity passes through
OnActivityResult () function gets related data, and is successfully stored in local data base, then it represents that the movement side
Case creates successfully, effect such as Fig. 3.
As shown in Figure 4, Figure 5, the realization of editting function needs the cooperation at the interface PlanShowActivity.Clicking fortune
After dynamic scheme, ListView, which clicks event monitoring function, can call startActivityForResult () function to jump to
The interface PlanEditActivity.After jumping, editing procedure can call the information of the data base querying functional query program, so
ProgressBar is called to show the progress of the program afterwards.Data base querying code is as follows:
MPlan=mDbUtils.findAll (Selector.from (MyPlan.class) .where (" plan_id " "
=", num))
Wherein, mPlan is ArrayList<MyPlan>array, for receiving the data inquired.MDbUtils is operation
The global variable of free_running.db database.It is initialized in application, life cycle follows App Life Cycle
Phase." plan_id " is the field for needing to patrol, and " hum " refers to the number of current kinetic scheme " plan_id ", and MyPlan is scheme
Entity class.
In addition to the progress of display Current protocols, editting function, which also needs to realize, opens scheme two operations of training and deletion.When
" starting to train " button is clicked, button, which clicks event monitoring function, can call startActivity () function to jump to interface
Homepage waits user to open training, while PlanEditActivity can call finish () function to destroy interface.Work as click
When " deletion " button, button, which clicks event monitoring function, can call database delet method to delete data, destroy the page later,
And setResult () method is called to return to delete command, instruction display interface deletes the program.It is as follows that database deletes code:
MDbUtils.delete (Myplan.class, WhereBuilder.b (" plan_id ", "=", num);
Editting function effect such as Fig. 5.
As shown in Figure 6, Figure 7, motion scheme display interface is mainly used to show the self-built running scheme of user, while
Necessary support is provided for the creation of motion scheme and editor.It will be appreciated from fig. 6 that the interface PlanShowActivity first can be initial
Change Listview control, then inquires all motion schemes that user is self-built in free_running.db database, will finally look into
The scheme of inquiry is shown in lists, to realize data display function.Its data base querying code is as follows:
MMyPlan=mDbUtils.findAll (MyPlan.class);
Wherein, findAll () is data base querying function, for inquiring the self-built all motion schemes of active user,
MMyPlan is ArrayList<MyPlan>array, for the temporary all motion schemes inquired.
Since the operation that user created and deleted motion scheme influences whether the display at the interface PlanShowActiVity.
So the information that the page can call OnActivityResult () the function reception target Activiy page to return, and according to
The display of return information adjustment ListView.There are three parameters, respectively request code by OnActivityResult ()
RequestCode (int type), return code resultCode (int type) and " intention " data (intent type).Wherein, data is used
Come the problem of handling biography value between two Activity, the data.getXXXExtra () method of can be used can obtain Activity
Returned data.RequestCode is used to identify the Activity for sending request, and it is which that resultCode, which is used to distinguish,
The information that Activity is returned.
The resultCode that PlanCreateActivity is arranged in this module is " 0 ", PlanEditActiVity's
ResultCod is " 1 ".If the resultCode received is " 0 ", the motion scheme of return is added to the page
In ListView list (while storing up information to local data base), if the resultCode received is " 1 ", judge to return
Information whether be delete instruction, if delete instruction then delete the program, otherwise retain the program.Display function effect is as schemed
7。
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of motion scheme management system based on Android platform characterized by comprising creation module, Bian Jimo
Block, display module;
The creation module from motion scheme database for calling preset body-building plan template and by the display mould
Block is shown to user, wherein in the body-building plan template include at least three preset motion schemes: primary motor scheme, in
Grade motion scheme, advanced motion scheme;It wherein include preset kinematic parameter in each preset motion scheme;And the creation
Module is also used to be inputted according to user and is adjusted and is stored in motion scheme database to the preset scheme;The wound
The kinematic parameter that modeling block is also used to extract blank Motion mask to select according to user generates customized motion scheme and stores
To motion scheme database;
The editor module is for reading the motion scheme stored in the motion scheme database and passing through display mould with list
Block is shown, and calls display module to show the corresponding kinematic parameter of the motion scheme according to the motion scheme of user's selection
To user;It is also used to receive user's input and modifies or delete motion scheme, and phase with the kinematic parameter to motion scheme
Motion scheme database should be updated;
The display module is shown for reading according to the data of creation module and editor module;
Wherein the kinematic parameter includes at least one kind below: target step counting value, sports events, the target of each sports events
Value, the total amount of exercise of target, target consumption, run duration section.
2. the motion scheme management system according to claim 1 based on Android platform, which is characterized in that the wound
It models block and executes following operation:
A creation key is provided at the top of the interface PlanShowActivity to monitor function call
StartActivityForResult () jumps to the creation page, and the creation page utilizes ListView control by body-building scheme mould
The motion scheme set in plate is shown with tabular form;And there is details key with selected movement on the creation page
The kinematic parameter of scheme is shown to user;
When user completes foundation step, the interface PlanShowActivity is obtained by OnActivityResult () function and is used
The data of family input are stored to motion scheme database;
When user clicks the position of non-details key, function is monitored in the click of ListView can call setResult () method will
It chooses the ID of motion scheme and information to return to PlanShowActivity, and finish () method is called to destroy
The interface PlanCreateActivity.
3. the motion scheme management system according to claim 1 based on Android platform, which is characterized in that the volume
It collects module and executes following operation:
Editor module calls movement of the interface PlanShowActivity of display module will store in motion scheme database
Scheme shows that ListView click event monitoring function can be called when motion scheme when the user clicks with tabular form
StartActivityForResult () function jumps to the interface PlanEditActivity, and calls motion scheme database
Query function inquire the information of the motion scheme, then call the ProgressBar to show the completeness of the motion scheme;
Editor module after receiving user's click and starting to train button, click event monitoring function and can call by button
Interface is jumped to homepage and user is waited to open training, while PlanEditActivity circle by startActivity () function
Face can call finish () function to destroy interface;
For editor module after receiving user and clicking delete button, button, which clicks event monitoring function, can call motion scheme data
The delet method in library deletes data, and finish () function is called to destroy interface, while setResult () method being called to return
Delete command is to indicate that display interface deletes the motion scheme.
4. the motion scheme management system according to claim 1 based on Android platform, which is characterized in that described aobvious
Show that module executes following operation:
Listview control is initialized by the interface PlanShowActivity, then inquires free_running.db database
The self-built all motion schemes of middle user, finally show the scheme of inquiry in lists;
When user creates or deletes motion scheme, OnActivityResult () function is called at the interface PlanShowActivity
The information that the target Activity page returns is received, and adjusts the display of ListView function according to the information of return.
5. the motion scheme management system according to claim 4 based on Android platform, which is characterized in that described
There are three parameters by OnActivityResult (): request code requestCode, return code resultCode, being intended to data;Its
Described in intention datat be used to handle biography value between two Activity pages;Wherein utilize data.getXXXExtra ()
Method obtains the returned data of the Activity page, and the Activity page of request, benefit are sent using request code requestCode
Distinguish which Activity page return information belongs to return code resultCode;
Wherein the resultCode of the PlanCreateActivity page is the resultCod of 0, the PlanEditActivity page
It is 1;Corresponding motion scheme is then added to the ListView of the page when the resultCode that display module receives is 0
In list;And the resultCode received be 1 when then corresponding motion scheme is deleted.
6. a kind of motion scheme management method based on Android platform characterized by comprising foundation step, Bian Jibu
Suddenly, step is shown;
The foundation step includes: preset body-building plan template to be called from motion scheme database and by being shown to use
Family, wherein including at least three preset motion schemes in the body-building plan template: primary motor scheme, intermediate movement side
Case, advanced motion scheme;It wherein include preset kinematic parameter in each preset motion scheme;Further include: it is defeated according to user
Enter and the preset scheme is adjusted and is stored in motion scheme database;Further include: extract blank Motion mask with
It generates customized motion scheme according to the kinematic parameter of user's selection and stores and arrive motion scheme database;
The edit step includes: to read the motion scheme stored in the motion scheme database and with list display, and root
User is shown to according to the corresponding kinematic parameter of motion scheme that user selects;Further include: user's input is received to motion scheme
Kinematic parameter modify or delete motion scheme, and accordingly update motion scheme database;
The display step includes: to read to be shown according to the data of foundation step and edit step;
Wherein the kinematic parameter includes at least one kind below: target step counting value, sports events, the target of each sports events
Value, the total amount of exercise of target, target consumption, run duration section.
7. the motion scheme management method according to claim 6 based on Android platform, which is characterized in that the wound
It builds step and executes following operation:
A creation key is provided at the top of the interface PlanShowActivity to monitor function call
StartActivityForResult () jumps to the creation page, and the creation page utilizes ListView control by body-building scheme mould
The motion scheme set in plate is shown with tabular form;And there is details key with selected movement on the creation page
The kinematic parameter of scheme is shown to user;
When user completes foundation step, the interface PlanShowActivity is obtained by OnActivityResult () function and is used
The data of family input are stored to motion scheme database;
When user clicks the position of non-details key, function is monitored in the click of ListView can call setResult () method will
It chooses the ID of motion scheme and information to return to PlanShowActivity, and finish () method is called to destroy
The interface PlanCreateActivity.
8. the motion scheme management method according to claim 6 based on Android platform, which is characterized in that the volume
It collects step and executes following operation:
Using the interface PlanShowActivity to show the motion scheme stored in motion scheme database with tabular form,
ListView clicks event monitoring function and can call startActivityForResult () letter when motion scheme when the user clicks
Number jumps to the interface PlanEditActivity, and calls the query function of motion scheme database to inquire the motion scheme
Then information calls ProgressBar to show the completeness of the motion scheme;
After receiving user's click and starting to train button, button, which clicks event monitoring function, can call startActivity ()
Interface is jumped to homepage and user is waited to open training by function, while the interface PlanEditActivity can call finish
() function destroys interface;
After receiving user and clicking delete button, button, which clicks event monitoring function, can call the deletion of motion scheme database
Method deletes data, and finish () function is called to destroy interface, while setResult () method being called to return to delete command
To indicate that display interface deletes the motion scheme.
9. the motion scheme management method according to claim 6 based on Android platform, which is characterized in that described aobvious
Show that step includes:
Listview control is initialized by the interface PlanShowActivity, then inquires free_running.db database
The self-built all motion schemes of middle user, finally show the scheme of inquiry in lists;
When user creates or deletes motion scheme, OnActivityResult () function is called at the interface PlanShowActivity
The information that the target Activity page returns is received, and adjusts the display of ListView function according to the information of return.
10. the motion scheme management system according to claim 9 based on Android platform, which is characterized in that described
There are three parameters by OnActivityResult (): request code requestCode, return code resultCode, being intended to data;Its
Described in intention datat be used to handle biography value between two Activity pages;Wherein utilize data.getXXXExtra ()
Method obtains the returned data of the Activity page, and the Activity page of request, benefit are sent using request code requestCode
Distinguish which Activity page return information belongs to return code resultCode;
Wherein the resultCode of the PlanCreateActivity page is the resultCod of 0, the PlanEditActivity page
It is 1;In the ListView list that corresponding motion scheme is then added to the page when the resultCode received is 0;
And the resultCode received be 1 when then corresponding motion scheme is deleted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710407198.9A CN108986882B (en) | 2017-06-02 | 2017-06-02 | Motion scheme management system and method based on Android platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710407198.9A CN108986882B (en) | 2017-06-02 | 2017-06-02 | Motion scheme management system and method based on Android platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108986882A true CN108986882A (en) | 2018-12-11 |
CN108986882B CN108986882B (en) | 2022-01-25 |
Family
ID=64501637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710407198.9A Active CN108986882B (en) | 2017-06-02 | 2017-06-02 | Motion scheme management system and method based on Android platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108986882B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115620866A (en) * | 2022-06-17 | 2023-01-17 | 荣耀终端有限公司 | Motion information prompting method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657816A (en) * | 2015-01-26 | 2015-05-27 | 合肥博谐电子科技有限公司 | Intelligent human health evaluation and promotion service management system |
-
2017
- 2017-06-02 CN CN201710407198.9A patent/CN108986882B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657816A (en) * | 2015-01-26 | 2015-05-27 | 合肥博谐电子科技有限公司 | Intelligent human health evaluation and promotion service management system |
Non-Patent Citations (2)
Title |
---|
脚本之家: "电路锻炼 for Android v6.3.00安卓版", 《HTTPS://WWW.JB51.NET/SOFTS/475527.HTML》 * |
葛罗棋: "移动端健身应用软件的开发", 《浙江树人大学学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115620866A (en) * | 2022-06-17 | 2023-01-17 | 荣耀终端有限公司 | Motion information prompting method and device |
CN115620866B (en) * | 2022-06-17 | 2023-10-24 | 荣耀终端有限公司 | Motion information prompting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108986882B (en) | 2022-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107637073B (en) | Video recording and playback | |
CN205665680U (en) | Electronic equipment and be arranged in adjusting device of electronic equipment's setting | |
DE112015002326T5 (en) | Monitor for physical activity and training | |
CN105187641B (en) | A kind of pair of application notification carries out the method and system of intelligent reminding | |
CN102857640B (en) | Terminal and pallet control method | |
RU2643483C2 (en) | Method, device and apparatus for changing display background | |
CN103686354B (en) | Smart television terminal and method for counting reporting key use behaviors | |
RU2005102010A (en) | SYSTEM AND METHOD OF APPLICATION MANAGEMENT THROUGH THRESHOLD EVENTS | |
CN104683590B (en) | A kind of editor of calendar event and transfer approach and its system | |
JP2008118346A (en) | Mobile communication terminal and management server | |
CN106210266B (en) | A kind of acoustic signal processing method and audio signal processor | |
CN107301052A (en) | The display methods and mobile terminal of a kind of help information | |
CN104809118B (en) | A kind of health Correlation method for data processing method, apparatus and system | |
CN104038632A (en) | Method and device for managing intelligent terminal | |
CN108323237A (en) | A kind of terminal behavior triggering method and terminal | |
EP4369218A1 (en) | Training plan generation method and apparatus, electronic device and readable storage medium | |
CN106310641A (en) | Motion scheme recommendation method and device | |
CN108279861A (en) | volume adjusting method, device and storage medium | |
CN109144377A (en) | Operating method, smartwatch and the computer readable storage medium of smartwatch | |
CN104750778B (en) | Recommend the method, system and mobile terminal of exercise automatically according to location information | |
CN106503062B (en) | A kind of social dynamically dissemination method and device, user terminal | |
CN108986882A (en) | A kind of motion scheme management system and method based on Android platform | |
CN106791074B (en) | Song information display methods, device and mobile terminal | |
US11107568B2 (en) | Versatile data structure for workout session templates and workout sessions | |
CN108388338A (en) | A kind of control method and system based on VR equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |