Hello, Find below an example which takes bmp, which is a Bitmap, and saves it into a JPEG file in the SD card. Bear in mind that you may need to unplug your device from the computer so that it has access to the SD-card, otherwise it may be blocked by the computer.
//you can create a new file name "test.jpg" in sdcard folder. string fileName = Android.OS.Environment.ExternalStorageDirectory + Java.IO.File.Separator + "test.jpg"; System.IO.FileStream fs = new System.IO.FileStream(fileName, System.IO.FileMode.OpenOrCreate); bmp.Compress(Android.Graphics.Bitmap.CompressFormat.Jpeg, 100, fs); Best Regards, Narcís Calvet Steema Software http://www.steema.com http://twitter.com/SteemaSoftware https://www.facebook.com/SteemaSoftware -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of jnmahi Sent: dimecres, 22 / juny / 2011 11:36 To: monodroid@lists.ximian.com Subject: [mono-android] create file in sdcard Hi all , i want to create a file on sdcard by my application . but i dnt have write permission on sdcard . i also added <uses-permission android:name="android.permission.WRITE_EXTERNAL_ST ORAGE" /> permission in my manifest ... i have sdcard in my image that i verified ... Can anyone tell me how to create and write on file ..... thanks in advance -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/create-file-in-sdcard-tp451348 5p4513485.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid