Do you have permission to write to the SD Card?

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

> hi raghav,
>              Here is my code
>                                     File root =
> Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
>                    File f1 = new
> File(root.getPath()+File.separator+"image.jpeg");
>                    FileOutputStream fos=new FileOutputStream(f1);
>                         boolean
> imgCompress=bitmap.compress(Bitmap.CompressFormat.JPEG,85,fos);
>                  fos.flush();
>                         fos.close();
>              I am trying to save the file under Pictures directory,but i
> could not see the file in that directory.And,no exception occurs.
> Thanks,
> vijay.k
>
> On Wed, Jun 13, 2012 at 6:26 PM, Raghav Sood <raghavs...@gmail.com> wrote:
>
>> What have you tried so far? What is the error/exception you are getting.
>>
>> Also, you should generally wait at least 48 hours before bumping your
>> post.
>>
>>
>> On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan <vijay.vijay...@gmail.com
>> > wrote:
>>
>>> Hi all,
>>>           I could not save the image taken from my app in my
>>> phone.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
>>>
>>
>>
>>
>> --
>> Raghav Sood
>> Please do not email private questions to me as I do not have time to
>> answer them. Instead, post them to public forums where others and I can
>> answer and benefit from them.
>> http://www.appaholics.in/ - Founder
>> http://www.apress.com/9781430239451 - Author
>> +91 81 303 77248
>>
>> --
>> 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
>



-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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