I did not delete it at run time, I delete the file before I compile the project and replace it with other file. but the program still play the old one
On Sat, Apr 28, 2012 at 5:34 PM, Mark Murphy <[email protected]>wrote: > 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 -- Mai A. Al-Ammar Teacher Assistant Imam Mohammad bin Saud Islamic University College of Computer Science -- 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

