app/src/main/java/com/google/android/gms/fit/samples/basichistoryapifinal/MainActivity.java
public void statistics(View view) {
        Intent intent = new Intent(this, Statistics.class);
        intent.putExtra("usernamesignin", username);
        startActivity(intent);
    }
// When the statistics button is clicked
When the statistics button is clicked
When the statistics button is clicked
public void statistics(View view) {
        Intent intent = new Intent(this, Statistics.class);
        intent.putExtra("usernamesignin", username);
        startActivity(intent);
    }
public void statistics ( View view ) { Intent intent = new Intent ( this , Statistics . class ) ; intent . putExtra ( "usernamesignin" , username ) ; startActivity ( intent ) ; }
When the statistics button is clicked
When the statistics button is clicked