Why doesnt R.raw.'songname' not work on android devices?
Posted
by James Rattray
on Stack Overflow
See other posts from Stack Overflow
or by James Rattray
Published on 2010-04-26T18:47:14Z
Indexed on
2010/04/26
18:53 UTC
Read the original article
Hit count: 348
I have some media (Audio tracks) on an app...
With file path 'R.raw.test'
I use some code to get it into a mediaplayer...
MediaPlayer.create(Textbox.this, R.raw.fly);
And it works PERFECTLY on the Android Emulator... (Plays track on click of button)
Can someone explain why, when I put it on my Archos (5 IT) it doesnt work at all?
-As soon as the button is clicked, it crashes...
Do you have to do something to file paths or what?
Please help...
Thanks alot...
James
© Stack Overflow or respective owner