package com.example.stepsapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity implements SensorEventListener {
private TextView stepCountTextView;
private TextView distanceTextView;
private TextView timeTextView;
private Button pauseButton;
private SensorManager sensorManager;
private Sensor stepCounterSensor;
private int stepCount = 0;
private ProgressBar progressBar;
private boolean isPaused = false;
private long timePaused = 0;
private float stepLengthInMeters = 0.762f;
private long startTime;
private int steoCountTargget = 5000;
private TextView stepCountTargetTextView ;
private Handler timerHandler = new Handler();
private Runnable timerRunnable = new Runnable() {
@Override
public void run() {
}
};