You can't play video inside an AppWidget. On Wed, Feb 10, 2010 at 12:42 PM, Narendra Bagade <bagadenaren...@gmail.com> wrote: > I want to play video,how can i achieve? > I tried this code but ,it is playing only audio means i can hear only sound > but video is not display on emmulater screen? > > can any guide what mistake I am doing? > > setContentView(R.layout. > > main); > > mp =MediaPlayer.create(this, R.raw.video); > > preview=(SurfaceView)findViewById(R.id.SurfaceView01); > > holder=preview.getHolder(); > > holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); > > mp.setDisplay(holder); > > mp.start(); > > > Thanks, > Narendra > > On Wed, Feb 10, 2010 at 6:03 PM, Mark Murphy <mmur...@commonsware.com> > wrote: >> >> > I wanted to know , can we have a home screen widget in which we can >> > play a video? >> >> No, sorry. >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com >> Android App Developer Books: http://commonsware.com/books.html >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- > Regards, > > Narendra B > 9632382960, > Bangalore. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en