Android sqlite database - where do i start as the

2019-07-31 18:57发布

问题:

Ive tried to hunt down the tutorial for notepad on android developers but it appears to of gone offline with the recent change.

What i need is a database thats created by the user using 3-4 edittext boxes and 2 date boxes and to store as 1 file i can look back on..

but i have no idea where to start with databases..

ive read tutorials on how to make one but i cant work out what needs to change on the coding of the database for my needs,

i created one that generates a random word i set out of 5 words when i click an add button but that doesnt tell me what i need to do in order to get the information from my text input boxes and date pickers and display them in a listview..

Any help on this will be great.

ps. not looking for people to do it for me im looking to learn about databases.

回答1:

This is a good point to start: http://www.vogella.com/articles/AndroidSQLite/article.html



回答2:

I hate to answer with just a link, but that's pretty much what is required (I'm not going to post a whole tutorial as an answer :p).

A good tutorial on databases is here



回答3:

Came across this in my own search. Not sure if you're still interested but if anybody else comes across, it can help them out. as of May, 2013, this is still active: http://developer.android.com/training/notepad/index.html