I think other than setting intent type and Uri , the type of intent is
also needed to play video file.

On Jun 28, 6:38 am, cindy <ypu01...@yahoo.com> wrote:
> Thanks!
>
> I found there is no API to generate a image thumbnail for video. How
> the camcorder of G1 phonedo that ?
>
> Thanks!
>
> Cindy
>
> On Jun 27, 5:30 pm, Mark Murphy <mmur...@commonsware.com> wrote:
>
>
>
> > cindy wrote:
> > > I want to call INTENT_VIEW to play a local video:
> > >  private void doPlayCurrentVideo() {
> > >         mCurrentVideoUri=Uri.parse(mCurrentVideoFilename);
> > >         Intent intent = new Intent(Intent.ACTION_VIEW,
> > > mCurrentVideoUri);
> > >         try {
> > >             startActivity(intent);
> > >         } catch (android.content.ActivityNotFoundException ex) {
> > >             Log.e(TAG, "Couldn't view video " + mCurrentVideoUri, ex);
> > >         }
> > >     }
>
> > > but I got exception "ActivityNotFoundException", How can I fix it?
>
> > Install an application that responds to that Intent.
>
> > There is no video player on Android by default, AFAIK. However, there
> > may be third party video players that will honor your request, depending
> > on what mCurrentVideoFilename is.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Need Android talent? Ask on HADO!http://wiki.andmob.org/hado- Hide quoted 
> > text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to