http://developer.android.com/guide/topics/media/index.html

 MediaPlayer mp = new MediaPlayer();
    mp.setDataSource(PATH_TO_FILE);
    mp.prepare();
    mp.start();

I have a file in my res/raw folder called song2 and I don't know what
to put for PATH_TO_FILE

Like I'm unsure of the context of how to write it I thought it was
"@raw/song.mp3" but its not working and I've tried other things too.
so if you know could you please tell me.

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