Why files creatied with Java FileOutputStream on Android are visible on my
pc throught USB after few ubs reconnectonions (+up to few...
I have code like this: File file = new
File(Environment.getExternalStorageDirectory(), fileName);
FileOutputStream os = null; try { os = new FileOutputStream(file); } catch
(FileNotFoundException e) { System.err.println("Error while creating
FileOutputStream"); e.printStackTrace(); }
os.write("something".getBytes());
and when i create file on my HTC desire x i have to disconnect usb, wait
few minutes, connect it again to see it in windows explorer. Why it's like
that? And how can i prevent it?
No comments:
Post a Comment