Join David Gassner for an in-depth discussion in this video Passing user-selected data to a detail activity, part of Android SDK: Local Data Storage.
My sample application so far is using data that's imported from XML and then…stored persistently in an SQLite database, and it's now capable of being…displayed in either a rich display as we see here or in a pure text display.…I'm going to add some new functionality now, and in fact, in the new version of…the project--which is named DetailView-- the application now has a detail view.…When the user touches or clicks on an item, that results in opening another activity, and right now…that activity is populated with dummy data.…
I'll show you how I created that detail activity but then go on to the most…important part, how to take a data object such as my tour object and prepare it…so that it can be passed from one activity to another.…First, let's take a look at the elements of this new functionality.…In this version of the application, I've added a new layout file called tour_detail.xml.…You can find it in the layout folder underneath the resources.…This file uses nested LinearLayouts.…
There's an ImageView control that's displaying the map and then a nested…
- 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
Skill Level Intermediate
1. Getting Started
2. Using Application Preferences
3. Using Internal and External File Storage
4. Working with SQLite Databases
5. Managing and Displaying SQLite Data
Improving the data display9m 29s
- Mark as unwatched
- Mark all as unwatched
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.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.