I keep getting an IOException and I don't understand what it means.
Code (pseudo):
File file = new File("/filepath/");
fos = new FileOutputStream(file);
String str = String.format("0");
fos.write(str.getBytes());
fos.close();
Error:
W/System.err( 1794): java.io.IOException: write failed: EBUSY (Device or resource busy)
W/System.err( 1794): at libcore.io.IoBridge.write(IoBridge.java:452)
W/System.err( 1794): at java.io.FileOutputStream.write(FileOutputStream.java:187)
W/System.err( 1794): at java.io.OutputStream.write(OutputStream.java:82)
What does the "write failed: EBUSY (Device or resource busy)" part mean?