Commit bf30ffc9 authored by Ethan Liang's avatar Ethan Liang
Browse files

characteractivity metal click sound. WITH THIS, ALL MUSIC AND SFX SHOULD BE DONE

parent a5693035
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
@@ -24,6 +25,8 @@ public class CharacterActivity extends AppCompatActivity {

    public boolean selectedShortHair;

    MediaPlayer openSound;

    String username ; // <--- store the username in this variable

    String ID;
@@ -33,6 +36,9 @@ public class CharacterActivity extends AppCompatActivity {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_character_selection);

        openSound = MediaPlayer.create(this, R.raw.metal_click);
        openSound.start();

        Window window = getWindow();
        window.setFlags(
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
+27.7 KiB

File added.

No diff preview for this file type.