0

I am trying out how to save data on the phone. The problem is that I can't seem to find any of the files that i'm making because they are in directories that is impossible to access on my phone.

Is it possible to make a txt-file in an easy to access directory, like the myfiles/documents directory?

If this is possible, what is the typical file path to "my files/documents" on the phone?

PederBG
  • 118
  • 1
  • 2
  • 11
  • Please show your code... *I can't seem to find any of the files that i'm making*... http://stackoverflow.com/questions/7887078/android-saving-file-to-external-storage – OneCricketeer Mar 04 '17 at 14:50
  • did you consider using shared preferences, is it in app or external> – Remario Mar 04 '17 at 14:50
  • Possible duplicate of [Android saving file to external storage](http://stackoverflow.com/questions/7887078/android-saving-file-to-external-storage) – Shreyash S Sarnayak Mar 04 '17 at 14:53
  • There is no typical path because phones aren't all the same. `Documents` exists on my SD card, though, so again, please show some code you've tried – OneCricketeer Mar 04 '17 at 15:13
  • the only line of code in question would be:File file = new File(path to directory, "myfile.txt"); – PederBG Mar 04 '17 at 15:14
  • [%100 works](http://stackoverflow.com/questions/6337431/android-create-shortcuts-on-the-home-screen). ;D – Mehran Zamani Mar 04 '17 at 15:29

0 Answers0