Hi Sujoy, Thanks for sharing this information. I have another doubt now - Can I get continuous frames of data as bitmaps without user interaction using this approach?
On Wed, May 27, 2009 at 10:46 AM, Sujay Krishna Suresh < [email protected]> wrote: > 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 < > [email protected]> 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, [email protected] >> <[email protected]>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 [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 -~----------~----~----~----~------~----~------~--~---

