raghav,
i had included this line <uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> in my
AndroidManifest.xml.But it doesn't work.
On Wed, Jun 13, 2012 at 6:52 PM, Raghav Sood <[email protected]> wrote:
> Do you have permission to write to the SD Card?
>
>
> On Wed, Jun 13, 2012 at 6:50 PM, Vijay Krishnan
> <[email protected]>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 <[email protected]>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 <
>>> [email protected]> 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
>>>> [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
>>>>
>>>
>>>
>>>
>>> --
>>> 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 [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
>>>
>>
>> --
>> 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
>>
>
>
>
> --
> 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 [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
>
--
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