Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing to SD card

I am writing some files to SD card. My android version is 2.1. I am not setting any permission in the manifest file but it allows me to write to sd card.

Please let me know why this behavior. only WRITE_EXTERNAL_STORAGE in manifest controls write to SD card or any other configuration i need to do.

thanks Gururaja B O

like image 244
Gururaja B O Avatar asked Nov 06 '22 11:11

Gururaja B O


1 Answers

Are you compiling with API level 3 or less? That permission was added in API level 4 (Android 1.6), so all apps compiled with API level 3 (for compatibility with phones still running 1.5) will have that permission automatically.

like image 107
dmazzoni Avatar answered Nov 12 '22 21:11

dmazzoni