views:

47

answers:

3

how do i display videos retrieved from resources in my android application

+1  A: 

using the MediaPlayer you should be able to play video

Ryan Conrad
i have posted the code below..can u help me out where am i going wrong?
poojan9118
A: 
MediaPlayer mp = new MediaPlayer();
mp = MediaPlayer.create(context, R.raw.vid);
mp.start();

i have placed a vid.3gp file in my res/raw folder..

i am getting NullPointerException.. what changes do i need to make

why so??

poojan9118
A: 

do we need something called as Surface Holder or something similar

poojan9118