title: Why files created with Java FileOutputStream on Android are visible on my pc throught USB after few ubs reconnectonions (+up to few minutes)
body: <p>I have code like this:</p>
  
  <pre><code>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());
  os.close();
  </code></pre>
  
  <p>and when i create file on my HTC desire x i have to disconnect usb, wait few minutes, connect it again to see created files in windows explorer. Why it's like that? And how can i prevent it?</p>
  
  <p>And additionaly: when i use ls in terminal on my phone i see this file immediately. </p>