problem in playing mediaplayer

by jaimin » Tue, 10 Feb 2009 12:22:43 GMT

Sponsored Links
i am new to android. and i have done mediaplayer from api demo but i
don't know how to put path of mp3 file into my java code any one plz
give me any soultion its urgent i have put that mp3 file in res/raw
folder but in java i have no idea where i put that mp3 file.


Other Threads

1. Edit Text Password visible on focus in landscape

I have a login screen with a edit text password field. In landscape
mode, when i try to enter anything into the field, the view kinda
zooms into the field with the virtual keyboard on the bottom, and
anything i type is visible as plain text; now if i were to hit the
back button, it will zoom out and display the entire activity but the
text in the field is hidden.

I have tried setting android:password="true", it works only in
portrait and when in the zoomed in state.. thats no help
android:inputType="textPassword" this by itself is useless
any other ideas ?


2. MediaPlayer MIDI gapless loop?

Trying to loop a song for a game in MIDI and I'm getting a noticeable
gap when looping.  I'm currently just using MediaPlayer like I use for
looping OGGs normally.

Is there something wrong with my file or does the current
implementation (Tested on 2.1) have a short gap in the loop?


3. Why Gallery3D apk does not contain drawable-hdpi, which is in source code res/

4. wpa_supplicant issue

5. JUnit Testing for Phone Application

6. SDK add-on with additional library

7. Get file's list