(cheerful music)
In this section, we're going to look
at how applications can store data in a database.
We're gonna start off with a discussion
of databases in general.
Then we'll have a look at the database
that's included with Android and that's SQLite.
Now, we'll load the SQL Language, often pronounced sequel.
So SQL or Structured Query Language,
was designed for interrogating
and updating relational databases.
Now, it's a fairly simple language,
but it can allow very powerful queries to be created.
Now, when using databases in an app,
there are several approaches that can be used.
Generally though, you'll have to assume
that database access will be quite slow
so Android provides a load of classes
that can be used to prevent your app
from appearing to hang all dialers
fetched from the database.
So I'll also talk about cursors
and the Android content provider
and content resolver classes.
Now we will be creating a very basic app in this section
just to see a couple of ways that we can
access the database in our Android apps,
but later sections will build on this knowledge
and we'll be creating an app that makes
a full use of a database in the next section
after this section of the course.
So let's get started.