make a call to 
Environment.getExternalStorageDirectory()<http://developer.android.com/intl/fr/reference/android/os/Environment.html#getExternalStorageDirectory%28%29>
to
get the directory:

File sdDir = Environment.getExternalStorageDirectory();


give your app the correct permission to write to the SD Card by adding the
line below to your Manifest:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


Have a lot of Phun!

:D


On Wed, Jun 22, 2011 at 10:21 PM, jnmahi <[email protected]> wrote:

> Thanks all for your quick responses ... i created an sd card and then add
> this sdcard to my emulator ..... i can see my sdcard in my emulator ... i
> have read permission on it but i dosn't have wright permission ... its
> mounted ... but still i am not able to write on it .....
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/create-file-in-sdcard-tp4513485p4513853.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Glen Hassell
Inner Technique
http://innertech.com.au/
Office: 03 9687 0006
Mobile: +61 (0) 438 340 385
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to