When you manage preferences with Java, you can use either a single preferences set known as the default preferences for your app’s context, or you can create named preference sets. Each preference set will be represented as an instance of the SharedPreference class. For this demonstration, we're working with a virtual device that runs on Android 6.
- [Narrator] When you manage Preferences with Java Code,…you can use either a single Preference…set known as the Default Preferences…or you can create named Preference sets.…Each Preference set will be represented as an…instance of the shared Preference class.…For this demonstration, I'm working with a virtual…device that runs on Android 6 not Android 7.…And I'll explain why later in the video.…I've added a new activity to this…application, named Sign In Activity.…It's derived from a template that's included…with Android Studio that lets you log in…with an e-mail address and a password.…
The actual layout file for the activity has just two…Edit Text controls and they're each wrapped…in text input layouts from the design library.…This lets me easily handle errors…and otherwise navigate the form.…It looks like this in Design view.…And let's see what the application…looks like in its current version.…There's a new Options menu that displays…a single item on the action bar named Sign In.…And when I click it, that opens the Sign In Activity.…
- Modeling data in POJO classes
- Customizing a ListView item display
- Displaying data in a RecyclerView
- Creating a custom array adapter
- Managing shared preferences with Java
- Creating and importing JSON data files
- Accessing SQLite from the command line
- Retrieving data with SQLite queries
Skill Level Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis3h 59m Intermediate
Android App Development: RESTful Web Serviceswith David Gassner2h 25m Intermediate
1. Display Static Data
2. Store Data in Shared Preferences
About shared preferences4m 41s
3. Store Data in Text Files
4. Manage Relational Data with SQLite
Next steps1m 43s
- 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.