• Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving data inside Fragments  RSS feed

Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok i am wondering what is the best way to go about this i am trying to have a Top Fragment and a bottom fragment,

The Top Fragment should Save String inside an EditText to a File Refresh send a Refresh request to the listveiw the list view should read the Text File and place the Text into the List View

The problem i am current having is with the Fragments
InputStream instream = openFileInput("myUsers.txt"); is telling me openFileInput cannot be resloved
this error is also happening in the Adduser Class
FileOutputStream fileOutputStream = c.openFileOutput("myUsers", Context.MODE_PRIVATE);
fileOutputStream cannot be resloved.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!