• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Saving data inside Fragments

Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

    Bookmark Topic Watch Topic
  • New Topic