title: Playing sounds on splash screen start up
body: <p>I have a splash screen in my app that loads for 3 seconds, while it is loading i would like a sound effect to be played, i have an ogg file and would like this played every time the the app is launched, can someone show me how to do this please? i have included the splash activity.</p>
  
  <pre><code>public class SplashActivity extends AppCompatActivity {
  
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              getSupportActionBar().hide();
              setContentView(R.layout.activity_splash);
  
              Runnable runable3secs = new Runnable() {
                  @Override
                  public void run() {
                      nextActivity();
                      finish();
                  }
              };
          Handler myHandler = new Handler();
          myHandler.postDelayed(runable3secs,3000);
      }
  
      public void nextActivity(){
          Intent intent = new Intent(this,MainActivity.class);
          startActivity(intent);
      }
  }
  </code></pre>