Day 2: save data

Discussion in 'Application Development' started by justme2013, Feb 4, 2013.

  1. justme2013

    justme2013 Member
    25

    Feb 4, 2013
    16
    0
    25
    Hi,

    Today is my second day playing (learning) android app dev. On day 1, was lucky enough to get a very basic app up and running with ADT and tested it w/ AVD. But too basic, input simple text and displays it.

    Was hoping to be able to save input into local file system or some sort of db today. The thought is to use SharedPreferences class for simple key/value pair storage for now. And use putString to save input. But I would need to use getString to get it back and output it to screen (to verify data storage), the thing is, I don't know the syntax to display a simple text string, anyone?

    Thanks.
     

    Advertisement

  2. Digital Controller

    Digital Controller The Real Bass Creator
    843

    Sep 5, 2012
    12,647
    3,553
    843
    Male
    Civil Engineer
    Cincinnati, Ohio
    I have moved this thread into the Application Development forum per request.

    Hope this helps :)
     
    justme2013 likes this.
  3. jonbonazza

    jonbonazza Well-Known Member
    163

    Jul 13, 2010
    1,934
    458
    163
    Male
    Im confused on what exaxtly youre looking for. You say you are confused on the syntax, but what syntax?
     
  4. justme2013

    justme2013 Member
    25

    Feb 4, 2013
    16
    0
    25
    Prob resolved, key is OutputStreamWriter and editor to get user input. Next task for me to output the saved data (in a file) back to the user screen (this is not a question, talking to myself :).
     

Share This Page

Loading...