New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using the exercise files

From: Android SDK: Local Data Storage

Video: 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.

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.

Show transcript

This video is part of

Image for Android SDK: Local Data Storage
Android SDK: Local Data Storage

29 video lessons · 5478 viewers

David Gassner
Author

 
Expand all | Collapse all
  1. 6m 34s
    1. Welcome
      50s
    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
      49s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com 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 lynda.com.

Sign up and receive emails about lynda.com 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.