The emulator emulates the device, it can't access your file system. Add an sdcard and upload your video on it, then play it from there.
On Tue, Feb 10, 2009 at 6:55 PM, K. Chen <[email protected]> wrote: > Nope. I was using a sample code from a book (I forgot the name). It seems > fairly straightforward (below). Of course, I'm newbie, so please bear with > me. Thanks. > > public class VideoDemo extends Activity { > private VideoView video; > private MediaController ctlr; > > @Override > public void onCreate(Bundle icicle) { > super.onCreate(icicle); > getWindow().setFormat(PixelFormat.TRANSLUCENT); > setContentView(R.layout.main); > > Button show=(Button)findViewById(R.id.show); > > show.setOnClickListener(new View.OnClickListener() { > public void onClick(View view) { > ctlr.show(); > } > }); > > video=(VideoView)findViewById(R.id.video); > video.setVideoPath("D:/Profiles/mgia0013/My > Documents/Android/Movies/HomeAlone.3gp"); > > ctlr=new MediaController(this); > ctlr.setMediaPlayer(video); > video.setMediaController(ctlr); > video.requestFocus(); > } > > > On Tue, Feb 10, 2009 at 12:00 AM, Dave Sparks <[email protected]> > wrote: >> >> Can you elaborate a bit more on how you are playing the file? Did you >> write your own video player? >> >> On Feb 9, 2:57 pm, KC <[email protected]> wrote: >> > I have a video file in 3gpp format and I can use QuickTime to play it. >> > But when tried with the SDK Windows emulator, I got the error msg: >> > >> > [2009-02-09 14:46:23 - DeviceMonitor]Error reading jdwp list: EOF >> > [2009-02-09 14:46:23 - DeviceMonitor]Connection Failure when starting >> > to monitor device 'emulator-5554' : device (emulator-5554) request >> > rejected: device not found >> > >> > Any ideas?? >> > >> > -KC >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

