Harold
Lost but trying
Profile
Posts: 10
Reg: Aug 02, 2012
Sunnyvale
5,600
08/06/12 09:40 PM (13 years ago)

Do I need to use a database for an interactive list app I want to create?

I am completely new to not only app building but to any kind of programming. With that in mind... I am trying to build an app that will allow the user to keep track of what food is in their fridge/freezer/pantry etc., what the expiration date is, and a few other pieces of data. Initially I thought I would need to use a database to do this, but after searching the forums for posts on databases it looks like using a database with a mobile app could be very difficult. Is it possible to do this without using a database? Keep in mind that I am completely new to this and don't know all the technical jargon - so please use small words and I might be able to keep up.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/06/12 11:01 PM (13 years ago)
I would do it with localStorage. Think cookies on steroids. You can store individual users data on their device. Go to www.MySkylla.com for my article on localStorage. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/06/12 11:13 PM (13 years ago)
@Fred is correct...using localStorage (do a Google search for HTML5 todo list) would be a great solution...if it were easy to implement! The idea of localStorage is, like Fred suggests, a better version of cookie storage (megabytes of storage vs. kilobytes). For your app I don't think you need an actual relational database (mySQL, for instance), but a simple to-do list sorta thing would work. Problem is, it appears to be somewhat difficult to implement in the webViews that mobile apps provide for viewing this sort of content. Fred has a great example of it working on his website, but you view it using a standard or mobile browser. A webView appears to handle it a bit differently. Because there is Javascript involved, it appears to cause issues depending on the platform (iOS vs. Android). I'm still working through those. Bottom line is that Fred is on the right track, but I have yet to see a working example of it in an actual app screen. I do have a working Notepad in iOS using localStorage, but the same code doesn't seem to work on Android. Still working on the to-do example. Fred has said he's got a working example that he'll release soon. Hopefully sooner than later! Anyway, keep checking the forums. I think a solution is right around the corner! And Welcome to buzztouch! Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.