Weird, I don't see any <intent-filter> on that class, I was looking
here:

http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=AndroidManifest.xml;h=efbaa3dce34327125b257b57ff46379851433fba;hb=HEAD

at the Manifest file, maybe I am looking in the wrong place for the
source?  Can you point me at a URL where did you see the <intent-
filter>?

I just starting doing video with this intent in SDK 5.
I just tried it again, and it opens the browser first:
                        Uri uri=Uri.parse(getString
(R.string.mainHelpVid_captureCard_URL));
                        Intent i = new Intent(Intent.ACTION_VIEW, uri);
                        i.setType("video/mp4");
                        i.setData(uri);
                        startActivity(i);

Does the above code look right to you?  I am parsing a http URL from
my strings.xml file.

Yeah would be nice if they published some kind of release schedule,
even if it is very vague.  I know it is very hard to be specific when
you are in the public eye.

Thanks for pointing me at your source, I will give it a try.

Jeff


On Dec 6, 12:02 pm, "Mark Murphy" <[email protected]> wrote:
> > Yeah, I used that mechanism at first, but what ends up happening is
> > the Intent gets processed by the web browser which then opens the
> > movie.
>
> Really? The very class you were trying to reach has an <intent-filter> on
> the video/mp4 MIME type, according to the Android source code. If you
> tried it a couple of Android versions ago, give it a fresh shot -- the
> behavior might have changed, and perhaps you can switch to the new Intent
> starting with SDK_INT 6.
>
> > I guess I have to write my own movie viewer.
>
> If needed, it's really not all that tough. I have one here with pop-up
> control panels based on touch events, a custom timeline with play/pause
> control, and so on:
>
> http://github.com/commonsguy/vidtry
>
> Note, though, that I haven't tried this on 2.0.1 yet. The core Android
> team *yet again* released an update when I'm on the road...
>
> --
> 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 [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

Reply via email to