Wow, in comparing Google Code search and the Git Repos, looks like the Google Code search has newer source. Those Google Labs guys are so much more on the ball!!
Correct me if I am wrong, but shouldn't this projects AndroidManifest.xml be documenting that accessing this class needs permission? I thought there was the <permission> tag that dictated what permission was required to access a class. Do you know where these permissions are located in source? Perhaps I can handcode my <uses-permission> since it doesn't show up in the eclipse Manifest Editor. Jeff On Dec 6, 12:24 pm, "Mark Murphy" <[email protected]> wrote: > > 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=... > > > 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.... > > 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

