I have ran into an anomaly with my android phone.  I have added
several mp3 and wav files to the /res/raw folder and verify the R.java
is updated correctly.  The problem is that for one mp3 file I get
different behavior between the phone and the emulator.

Given this code
MediaPlayer mpPop = MediaPlayer.create(this, R.raw.pop);

On the emulator all works as expected.  On the phone itself if pop is
pop.mp3 then MediaPlayer.create() returns null.  If I choose pop.wav,
then MediaPlayer.create() returns a non null instance but produces no
sound.

Note that I have several other mp3 and wav resources in my app that
all open and play as expected on the phone and on the emulator.  I
even tried renaming pop something else thinking pop was some sort of
keyword but still got same behavior.

-- 
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