2015
Treehouse
Ben Deitch
1:45
English
Activities are a crucial component of almost any Android app. In this course we will learn about the lifecycle of our activities, and how we can handle various unexpected changes. We'll also see how to correctly handle a device rotation as well as how to save data using SharedPreferences. To top it all off, at the end of this course you'll get a chance to test your Android knowledge with a project.
The Activity Lifecycle
The Problem with Activities
The Problem with Activities - 2 questions
Saving Instance State
Saving Instance State - 2 questions
Retrieving Instance State
Saving and Retrieving Instance State - 3 objectives
Activity Lifecycle Overview
Activity Lifecycle Overview - 3 questions
Introducing SharedPreferences
Logging the Lifecycle Methods
Lifecycle Methods Review - 2 questions
Introduction to SharedPreferences
Introduction to SharedPreferences - 2 questions
Saving and Retrieving Data with SharedPreferences
Saving and Retrieving Data with SharedPreferences - 4 objectives
The Project
Introducing the Project
Updating and Creating Layout Files
Creating a Hole Object
Creating the Adapter
Implementing SharedPreferences
Adding the Menu
Retrospective - 1 objective
Download File Size:266.87 MB