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