that ?

Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new
File("/scard/tmp.jpg")));
startActivityForResult(intent, 0);

error message is also :)

2011/10/10 metin ögtem <android.develope...@gmail.com>

> I think your code is wrong..You must use Intent.Extra ..
>
> 2011/10/10, Антон Михайлов <ecspert...@gmail.com>:
> > if i runnig cam from menu, all running fine.
> >
> > 2011/10/10 metin ögtem <android.develope...@gmail.com>
> >
> >> Check for Camera runnig correctly
> >>
> >> 2011/10/10, ecspertiza <ecspert...@gmail.com>:
> >> > Hi all, I use code
> >> >
> >> > Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
> >> > startActivityForResult(intent, 0);
> >> >
> >> > to start standart camera. Standart camera run and i get message
> >> > ErrorMessageHandler.handleMessage(-1).
> >> >
> >> > what wrong ?
> >> >
> >> > --
> >> > 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
> >>
> >> --
> >> 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
> >>
> >
> >
> >
> > --
> > С уважением,
> > мастер конфетного цеха
> >
> > --
> > 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
>
> --
> 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
>



-- 
С уважением,
мастер конфетного цеха

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