hi
i want to take a picture with camera, after read the document and googling,I 
found,
if i don't want the original picture,i just use 

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, CAPTURE_PICTURE_CODE);

to start the camera activity, and in  
onActivityResult(int requestCode, int resultCode,Intent intent)  method,i can 
get the thumbnail from the intent .

and if i want the original picture ,i use this 

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getTempImageFile()));
startActivityForResult(intent, CAPTURE_PICTURE_CODE);

to start the camera activity, 
and in onActivityResult(int requestCode, int resultCode,Intent intent) , i can 
get the original picture with 

Bitmap bm = BitmapFactory.decodeFile(getTempImageFile().getAbsolutePath());

but in this case ,the intent variable is null ,so i can't get the thumbnail.

so is there an easy way to get both the thumbnail and the original picture ?

if the only way is to use the Camera class ,and make my own camera activity ,is 
there any example code ? or is there any Camera-relative open source project ?

thanks 

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