Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to manually find the file path for an android file?
  2. try
  3.     {
  4.         final String testString = new String("Hello");
  5.         FileOutputStream fOut = openFileOutput("samplefile.txt",
  6.                 MODE_WORLD_READABLE);
  7.         OutputStreamWriter osw = new OutputStreamWriter(fOut);
  8.  
  9.         osw.write(testString);
  10.         osw.flush();
  11.         osw.close();
  12.     }
  13.     catch(IOException ex)
  14.     {
  15.  
  16.     }