Sam
Sam

Reputation: 621

how to create write a data to sdcard

I am working on an application where I have to write the data on sdcard. I could do it in Android in older versions but with the new release it is not possible .I tried using getExternalFilesDir() function but it stores file in internal memory.

Upvotes: 0

Views: 36

Answers (1)

blackapps
blackapps

Reputation: 9282

In newer versions you cannot write to a removable sd card with the classic file classes. (Well you still can to one app specific directory on the card getExternalFilesDirs()[1]).

For the rest use Storage Access Framework.

Upvotes: 1

Related Questions