Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Using the exercise files

Using the exercise files provides you with in-depth training on Developer. Taught by David Gassner a… Show More

Android SDK: Local Data Storage

with David Gassner

Video: Using the exercise files

Using the exercise files provides you with in-depth training on Developer. Taught by David Gassner as part of the Android SDK: Local Data Storage
Expand all | Collapse all
  1. 6m 34s
    1. Welcome
    2. What you should know before starting this course
      2m 11s
    3. Using the exercise files
      3m 33s
  2. 21m 6s
    1. Exploring local data storage options
      5m 58s
    2. Configuring Eclipse and the Android Developer Tools
      5m 29s
    3. Creating an Android virtual device
      3m 23s
    4. Creating a new Android project
      6m 16s
  3. 31m 30s
    1. Using preferences in Android apps
      5m 28s
    2. Defining preferences with Java
      9m 31s
    3. Defining shared preferences with an activity
      10m 50s
    4. Listening for changes to shared preferences
      5m 41s
  4. 51m 13s
    1. Creating and reading files in internal storage
      10m 18s
    2. Creating and reading JSON data files
      9m 48s
    3. Working with files in external storage
      11m 22s
    4. Parsing a read-only XML file with XmlPullParser
      11m 46s
    5. Parsing a read-only XML file with JDOM
      7m 59s
  5. 1h 8m
    1. Creating a new SQLite database
      2m 52s
    2. Defining a database with SQLiteOpenHelper
      12m 12s
    3. Managing the database with a DataSource class
      9m 38s
    4. Inserting data into a database table
      10m 29s
    5. Retrieving and displaying data
      11m 44s
    6. Importing data from XML to SQLite
      5m 15s
    7. Filtering and sorting data
      9m 27s
    8. Accessing a database from the command line
      6m 46s
  6. 42m 0s
    1. Improving the data display
      9m 29s
    2. Passing user-selected data to a detail activity
      11m 36s
    3. Working with multiple database tables
      10m 28s
    4. Deleting data from database tables
      10m 27s
  7. 49s
    1. Where to go from here

please wait ...
Using the exercise files
Video Duration: 3m 33s 3h 41m Intermediate


Using the exercise files provides you with in-depth training on Developer. Taught by David Gassner as part of the Android SDK: Local Data Storage

View Course Description

Take your Android programming skills to the next level with the Android built-in framework that enables local data management in text files and SQLite-based relational databases. This course shows you how to create datacentric apps for Android devices, using SQLite, Java, and the built-in android.database packages. Author David Gassner describes how to define shared preferences, work with JSON and XML files in internal and external data stores, and create new local SQLite databases.

Topics include:
  • Exploring local data storage options
  • Creating an Android virtual device
  • Starting a new project
  • Defining preferences with Java and activities
  • Creating and reading JSON and XML data files
  • Creating a new SQLite database
  • Inserting and retrieving data in the database
Android Java

Using the exercise files

This video series includes exercise files that you can use to follow along the demonstrations that I do onscreen. I've copied the exercise files to my desktop, but you can place them anywhere on your hard disk. The Exercise Files folder has five folders for each of the five chapters in the course, plus two folders named Assets and Solutions. The chapter folders contain subfolders that are set up as Eclipse project. You can import these into the version of Eclipse that's included with the Android Developer Tools.

For example, I'll go to the Android Developer Tools bundle. This is the bundle for Jelly Bean Android 4.2, and that's the version you'll need to work along with the course. From the bundle folder, I'll go to Eclipse and then open the Eclipse application. To import one of the projects, I'll select File > Import. Then I'll select Existing Project into Workspace from the General category. I'll browse, I'll go to my Exercise Files folder, then I'll go to the chapter I'm in, and I'll select the project I want to work with.

This is a project named PreferencesWithJava. And then I'll follow the rest of the prompts to import the project into Eclipse. Once the project is imported, you'll be able to get to all the Java code; the resources, including graphic files, layout files, and menus; and everything else you need to build the application that I'm building. If you see errors when you import a project, be patient for a few moments. Eclipse sometimes takes some time to resolve internal errors before it lets you continue working.

Specifically, if you see a warning that your project has the wrong Java compliance level, that's a very common issue, and there's a very simple fix for it. Go to the project name and right-click on it. Then go down to the bottom of the Context menu and select Android Tools > Fix Project Properties. That corrects many common issues that can happen when you import Android projects into Eclipse. When you're done with the project, just delete it. You can press the Delete key, or you can right-click on the project in the Package Explorer and select Delete.

When prompted, just click OK. Don't select the option that's labeled Delete project contents on disk. As it says, you're really deleting the files. If you leave it unselected and click OK, you've just removed the project from your workspace listing, but the project is still there on your hard disk. As I mentioned, the Exercise Files folder also includes an Assets Folder. You'll find folders there that include various types of files, including graphics, XML files, and one Java JAR file that I'll use in the section on parsing XML.

And finally, the Solutions folder contains the same five chapters, but the Eclipse projects in these chapters are the completed versions-- that is, the applications in their state after I've finished each demo. If you don't want to follow along with the coding but just want to look at the finished code, you can import these projects into Eclipse. So, these exercise files should help you follow along with the demonstrations I'm doing onscreen, and you should be able to see exactly the same results that I'm getting as you create your Android application.

There are currently no FAQs about Android SDK: Local Data Storage.






Don't show this message again
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed Android SDK: Local Data Storage.

Return to your organization's learning portal to continue training, or close this page.


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a Member and Create Custom Playlists

Join today and get unlimited access to the entire library of online learning video courses—and create as many playlists as you like.

Get started

Already a member?

Log in

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

You started this assessment previously and didn’t complete it.

You can pick up where you left off, or start over.

Resume Start over

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.