Saturday, September 21, 2013

getting "android write to sdcard permission denied..?" do the following

Getting android write to sdcard permission denied or File not found permission denied error while creating file in sdcard. don't worry solution is here.

>>  Create sdcard using command prompt
  • open command prompt
  • D:\...\android-sdk_r11-windows\android-sdk-windows\tools
  • type command [  mksdcard 1024M sdcard.iso ]
  • now open Android SDK and AVD manager from windows menu in Eclipse
  • Create or Edit  AVD
  • From SD Card option Choose our sdcard.iso file using Browse  from tools directory of sdk
  • set other required option for you then create or edit AVD
now you are able to put your file, database etc to sd card. Just keep a point in mind that when ever you want to write data on external storage / SD Card then you have to add a User Permission

<uses-permission android:name= 
"android.permission.WRITE_EXTERNAL_STORAGE" />
 
to Android Manifest.xml file