On Sat, Apr 28, 2012 at 10:23 AM, Mai Al-Ammar <[email protected]> wrote: > I tried to play sound file (*.mp3) in Android application. > I used the following code: > > MediaPlayer m = new MediaPlayer (); > m = MediaPlayer.create(this, R.raw.start1); > m.start(); > > first, I play a sound file, then when I tried to play another sound file
Please post the code where you "tried to play another sound file". > it > still play the old one although I delete it from the res/raw folder. It is impossible for you to delete raw resources at runtime. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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

