> 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>?

Curious...I'm looking at the results of Google Code Search:

http://www.google.com/codesearch/p?hl=en#envDSvXc3DY/AndroidManifest.xml&q=package:android%20movieView%20package:%22git://android.git.kernel.org/platform/packages/apps/Camera.git%22&sa=N&cd=2&ct=rc

It shows:

        <activity android:name="MovieView"
                android:label="@string/movieviewlabel"
                android:screenOrientation="landscape"
                android:configChanges="orientation|keyboardHidden"
                
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
             <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="rtsp" />
             </intent-filter>
             <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="video/*" />
             </intent-filter>
             <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" />
                <data android:mimeType="video/mp4" />
                <data android:mimeType="video/3gp" />
                <data android:mimeType="video/3gpp" />
                <data android:mimeType="video/3gpp2" />
             </intent-filter>
        </activity>

Note that I misspoke a bit in my previous reply. This <activity> element
shows a general video/* and specific http video/mp4 filters.

> 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, that should be OK. I guess either:

-- Google Code Search has the wrong stuff, or
-- The Browser intent filter is taking precedence

Phooey.

-- 
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