this should help u store the image... Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
OutputStream outstream; ContentResolver cr = null; try { outstream = getContentResolver().openOutputStream(uri); x.compress(Bitmap.CompressFormat.JPEG, 70, outstream); outstream.close(); cr = getContentResolver(); } catch (FileNotFoundException e) { Toast.makeText(this, "Exception:File Not Found", Toast.LENGTH_SHORT).show(); } catch (IOException e) { Toast.makeText(this, "Exception:I/O Exception", Toast.LENGTH_SHORT).show(); } On Wed, May 27, 2009 at 10:41 AM, Sujay Krishna Suresh < sujay.coold...@gmail.com> wrote: > i would recommend that u use the inbuilt camera application like, > Intent i = new Intent("android.media.action.IMAGE_CAPTURE"); > startActivityForResult(i, 0); > > its faster n also is easier to use... > u can get the bitmap in onactivityresult with > Bitmap x = (Bitmap) data.getExtras().get("data"); > > On Wed, May 27, 2009 at 10:37 AM, loril...@gmail.com > <loril...@gmail.com>wrote: > >> >> Does anyone know how to decode the camera data from the >> PreviewCallback? I need to capture camera preview frames and process >> the bitmap obtained by decoding the frames before displaying. >> >> >> >> >> >> > > > -- > Regards, > Sujay > Mitch Hedberg<http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html> > - "My fake plants died because I did not pretend to water them." -- Regards, Sujay Frank Lloyd Wright<http://www.brainyquote.com/quotes/authors/f/frank_lloyd_wright.html> - "TV is chewing gum for the eyes." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---