Loading app/src/main/java/com/example/game2d/CharacterActivity.java +6 −0 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -24,6 +25,8 @@ public class CharacterActivity extends AppCompatActivity { public boolean selectedShortHair; MediaPlayer openSound; String username ; // <--- store the username in this variable String ID; Loading @@ -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, Loading app/src/main/res/raw/metal_click.mp3 0 → 100644 +27.7 KiB File added.No diff preview for this file type. View file Loading
app/src/main/java/com/example/game2d/CharacterActivity.java +6 −0 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -24,6 +25,8 @@ public class CharacterActivity extends AppCompatActivity { public boolean selectedShortHair; MediaPlayer openSound; String username ; // <--- store the username in this variable String ID; Loading @@ -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, Loading
app/src/main/res/raw/metal_click.mp3 0 → 100644 +27.7 KiB File added.No diff preview for this file type. View file