毕业设计-基于Android的卡路里运动健身
明日复明日,明日何其多。
一、项目介绍
用户注册登录进入APP后,点击我的BMI
输入身高体重并选择性别后APP会计算出您的BMI值,点击开始运动APP将根据您的BMI值自动匹配合适的运动项目,运动结束后输入运动里程、时间等数据,APP计算出本次运动消耗的卡路里。运动统计中可以查看该用户的运动记录,包括运动项目、时间、消耗的卡路里等。
二、主页代码
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_start_sport);
if (getIntent() != null) {
sportName = getIntent().getStringExtra("sport_name");
totalSeconds = getIntent().getLongExtra("sport_time", 15 * 60);
time = totalSeconds;
}
findViewById(R.id.img_back).setOnClickListener(this);
tvTitle = findViewById(R.id.tv_title);
tvTitle.setText(sportName);
tvTips = findViewById(R.id.tv_tips);
tvTime = findViewById(R.id.tv_time);
tvStart = findViewById(R.id.tv_start);
tvStart.setOnClickListener(this);
tvEnd = findViewById(R.id.tv_end);
tvEnd.setOnClickListener(this);
handler = new Handler() {
@Override
public void handleMessage(@NonNull Message msg) {
super.handleMessage(msg);
switch (msg.what) {
case 1:
if (time <= 0) {
tvEnd.performClick();
return;
}
if (!isPause) {
time--;
countTime++;
updateTime();
handler.sendEmptyMessageDelayed(1, 1000);
}
break;
default:
break;
}
}
};
tips = getResources().getStringArray(R.array.sport_words);
updateTime();
}
...
...
三、项目截图

注册页

主页

BMI计算页

选择运动页

运动录入页

运动统计页
四、购买套餐
权益 | 套餐A | 套餐B |
---|---|---|
完整代码 |
![]() |
![]() |
远程调试 | 不支持 |
![]() |
代码答疑 | 不支持 |
![]() |
价 格 | ¥120 | ¥500 |
五、购买记录
用户 | 套餐 | 评价 |
---|---|---|
*******54 | 套餐B | |
*******01 | 套餐B | |
*******79 | 套餐B | |
*******92 | 套餐B | |
*******24 | 套餐B | |
*******18 | 套餐B | |
*******91 | 套餐B | |
*******07 | 套餐B | |
*******34 | 套餐B | |
*******61 | 套餐B |
------转载请注明出处,感谢您对原创作者的支持 ------
有偿提供项目外包、技术支持、Bug修复、毕业设计、大小作业
5 条评论