Hi!

Why does my MediaPlayer

                MediaPlayer mp = MediaPlayer.create(this, R.raw.somemusic);
                mp.setLooping(true);
                mp.start();

stop, wenn I change the layout?

        setContentView(R.layout.screenoptions);


and also suddenly in my game, the sound stops. What could be the
reason?

And which one is better? MediaPlayer or SoundPool?

Greetings, Martin
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to