Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"read-only file system" error when writing to SD card

Failed to push selection: Read-only file system this error comes when i am trying to add any file in sdcard of emulator..can any one tell me what is the solution of it?

like image 284
Aamirkhan Avatar asked Dec 13 '11 04:12

Aamirkhan


1 Answers

You need to grant your app permission to write to the external SD card. It's not important that you're in the "emulator", the emulator IS Android, so it needs to have the same rights as if it were running on an actual device. Add this line to your manifest...

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

And you'll be good to go.

like image 135
Yevgeny Simkin Avatar answered Nov 03 '22 01:11

Yevgeny Simkin