use the sample code from this link
http://stackoverflow.com/questions/6027720/android-how-to-save-captured-image-into-phones-gallery


On Wed, Jun 13, 2012 at 12:10 PM, Vijay Krishnan
<vijay.vijay...@gmail.com>wrote:

> no.that is for creating thumnail.
>
>
> On Wed, Jun 13, 2012 at 12:01 PM, vaibs malviya <vaibs.malviy...@gmail.com
> > wrote:
>
>> try this
>>
>> *MediaStore.Images.Media.insertImage(getContentResolver(), yourBitmap, 
>> yourTitle , yourDescription)*
>>
>>
>> On Wed, Jun 13, 2012 at 11:52 AM, Vijay Krishnan <
>> vijay.vijay...@gmail.com> wrote:
>>
>>> Hi all,
>>>         I could not save my image in phone.Here is my code
>>>
>>>          Bitmap
>>> imageMap=BitmapFactory.decodeByteArray(data,0,data.length);
>>>          File root = Environment.getExternalStorageDirectory();
>>>     File f1 = new
>>> File(root.getAbsolutePath()+"/DCIM/Camera/","image.jpeg");
>>>         FileOutputStream fos=new FileOutputStream(f1);
>>>        imageMap.compress(Bitmap.CompressFormat.JPEG,85,fos);
>>>        fos.flush();
>>>        fos.close();
>>>        Anyone help on this
>>>
>>> Thanks,
>>> vijay.k
>>>
>>> --
>>> 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