Thursday, September 8, 2011

[android-developers] Re: Filenot found exception

Hi,

It is better to access sdcard by doing the following :


File SDCardFolder = new File(Environment.getExternalStorageDir()+"/
yourfolder");
// test it :
if (SDCardFolder.exists()) String[] contentFolder =
SDCardFolder.list();

Check also if your permissions are well located in your manifest file,
sometimes you could write them in a wrong location, and they are
not "recorded" by the app..

On Sep 8, 6:12 am, vani reddy <vani.reddy.bl...@gmail.com> wrote:
> Hi friends,
>
> I am getting the below exception
> java.io.FileNotFoundException: /mnt/sdcard/ (Permission denied)
> Also i have set the below permissions in the manifest
> <uses-permission
> android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
> android:name="android.permission.READ_EXTERNAL_STORAGE"/>
>
> How to gain access to sdcard ?
> Please reply its too urgent
> --
> Regards,
> Vani Reddy

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment