Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
player=MediaPlayer.create(this,R.raw.demo);

i m unable to access the demo file which is an mp4 file.

i created a new folder res/raw and pasted demo.mp4 in it

it gives me error saying that it cant b found
Posted

1 solution

o you install mp4 player in emulator ?? if no then do that fist and if you are testing on device then take file from sd card and don't forget to disconnect USB cable ...
 
Share this answer
 
Comments
Member 9239619 21-Nov-12 3:12am    
how to install mp4 in emulator?
AndroidVivek 21-Nov-12 4:08am    
you will get apk fie of mp4 player...
put that file in platform-tools
and from cmd give path till platform-tools
and give this command adb shell

install (give your apk file)
be sure emu is running otherwise it will be not install..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900