Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Save to a file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello! I'm trying to save a user entered name in password to a file. Not sure why Im having so much trouble with this but I cant get it working.

It stops working correctly right as I start using FileOutputStream. I imagine I'm doing something simple that I'm just missing.

Any Help would be appreciated!!!

 
Saloon Keeper
Posts: 6200
157
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator

It stops working correctly right as I start using FileOutputStream.


What does that mean? What does or does not happen?

Note that in addition to READ_EXTERNAL_STORAGE you should also ask for WRITE_EXTERNAL_STORAGE.
 
Tim Moores
Saloon Keeper
Posts: 6200
157
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dup of https://coderanch.com/t/728417/mobile/Save-file. Closing.
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!