1. Download our Official Android App: Forums for Android!

Apps Is there a more elegant way to implement profiles in my app?

Discussion in 'Android Development' started by lehowell, Jun 7, 2011.

  1. lehowell

    lehowell Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jan 15, 2011

    Jan 15, 2011
    2
    0
    5
    Hi Everyone,

    I used to be a full time programmer until I was made redundant a few years ago and then started a family rather than going back to work. I got an android phone earlier this year and started playing around writing a few simple apps to track things like little one's sleeping patterns and when they've had medicines etc. With number 2 due to appear any time now I'm trying to modify my apps so that I can track both of them in the same app using profiles. I figure I could do this using preferences by storing the different profile names as preferences and combining them with hard coded preference names for the values that need storing etc but I can't help feeling that there must be a more elegant way to do it if I just knew where in the APIs to start looking.

    Any pointers gratefully received
     

    Advertisement

  2. miXer

    miXer Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    313
    Joined:
    Aug 12, 2010

    Aug 12, 2010
    313
    51
    53
    Norway
    You can use SQLite
     
  3. lehowell

    lehowell Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jan 15, 2011

    Jan 15, 2011
    2
    0
    5
    Thanks, I'll go and have a play around with that.:)
     

Share This Page

Loading...