java.io.IOException: No space left on device Android
adding a loging-output of the absolute filepath, that caused the exception might help.
if the file beeing written was written to local memory file-system and not to sd-card-filesystem here is a possible solution:
java.io.IOException: No space left on device
my mean that there is not enought memory left on the internal storage file system of the device.
You can try to install the app on the sd-card instead by setting an entry in the manifest-file:
<manifest ..... android:installLocation="preferExternal">
Edit
if an app is installed in internal memory it-s local files are stored in local memory, too. if an app is installed on sd-cardit it-s local files are stored on sd-card, too.
so installing the app on sd-card might solve your problem.
Ilya Gazman
My latest app Facetocall it had a site too: facetocall.com Developed with my latest SDK
Updated on July 01, 2022Comments
-
Ilya Gazman almost 2 years
We have application on android market, our users getting a lot from this error: java.io.IOException: No space left on device
From what I found out so far, I know that they got enough space left on they external storage, and it's only happen on Android 2.x .
I had a small research in Linux file system, and I found out that beyond the space limitation there are limitation on number of files in each directory and the total number of files under root directory. But it looks like our app is not hitting any of those.
- Have you ever run in two some thing like that?
- Any ideas about what changed in Android (2.x) and how they fix it in Android (3+)?
Edit: this is not installation problem, but when trying to save downloaded files.
-
Ilya Gazman almost 12 yearsIt looks like you didn't understand the question. I add an edit for you. Please read it again, this is defiantly not a problem of space, we checked it.
-
k3b almost 12 yearsi updated the answer. can you add the filepath to your qestion?