public class SplashScreen extends AppCompatActivity { static MediaPlayer mediaPlayer; public SplashScreen(){ mediaPlayer = MediaPlayer.create(this, R.raw.acdc); mediaPlayer.start(); } } on the first line of the constructor, I get Null, with the message that it is impossible to create an instance of the class. I suppose that at the time of the constructor development, the SplashScreen class itself is not fully ready, has not yet been created to transfer itself. After what will it be ready?