Thanks Mark.
Now it's working but the default browser is opened before to launch
the camera viewer...Not terrible :(
Thanks for this help and this experience gives me some doubt about
android futur :(



On Dec 30, 5:37 pm, Mark Murphy <[email protected]> wrote:
> arnouf wrote:
> > Hi all,
>
> > My app use camera function. I implemented it using the small code
> > below
> > Intent intentVideo = new Intent();
> > intentVideo.setType("video/*");
> > intentVideo.setAction(Intent.ACTION_VIEW);
> > intentVideo.setComponent(new ComponentName("com.android.camera",
> > "com.android.camera.MovieView"));
> > intentVideo.setData(Uri.parse(mFeedObjectList.get
> > (itemSelected).videoLink));
> > startActivity(intentVideo);
>
> > But running on A motorola dext I get an exception...normal
> > com.android.camera is replaced com.motorola.camera and MovieView by
> > Camcorder.
>
> That's what happens when you try to reference things that aren't in the
> SDK. Device manufacturers are welcome to replace those things to their
> heart's content:
>
> http://www.androidguys.com/2009/12/14/code-pollution-reaching-past-th...
>
> > Ennoying ! Is it possible to call a camera viewer without call
> > specifically the class and package ? (it's to read a streaming video).
>
> Rather than:
>
> video/*
>
> try using a fully-qualified MIME type (e.g., video/mpeg) with no
> wildcard, and add the DEFAULT category.
>
> The intent filter you are trying to match is:
>
> <intent-filter>
>         <action android:name="android.intent.action.VIEW" />
>         <category android:name="android.intent.category.DEFAULT" />
>         <data android:mimeType="video/*" />
> </intent-filter>
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in US: 22-26 February 2010:http://onlc.com

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