스플래시 화면에서 내 앱에 5 초 사운드 mp3를 추가했지만 앱을로드하는 동안 재생 속도가 변동합니다. 원활하게 재생하려면 어떻게해야합니까 ??스플래쉬 사운드가 흔들리거나 끊깁니다
public class Splash extends Activity{
MediaPlayer ourSong;
@Override
protected void onCreate(Bundle TravisLoveBacon) {
// TODO Auto-generated method stub
super.onCreate(TravisLoveBacon);
setContentView(R.layout.splash);
ourSong = MediaPlayer.create(Splash.this, R.raw.onkar);
ourSong.start();
Thread timer = new Thread(){
public void run(){
try{
sleep(4000);
} catch (InterruptedException e){
e.printStackTrace();
}finally{
Intent openStartingPoint = new Intent("com.sport.sport.MAINLAUNCHER2");
startActivity(openStartingPoint);
}
}
};
timer.start();
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
ourSong.release();
finish();
}
}
의 응용 프로그램이 시작하는 시작의 주요 활동, 최초의 –
하면, 소리 수영장 내 코드에 적응이 –
I에 새로운 메신저하시기 바랍니다 수 dispalyed 코드에 대한 새로운 답변을 올렸습니다. 희망이 작동합니다. – jboi