Join Albert Lo for an in-depth discussion in this video Select a Google account, part of Android Development: Modern Android UI Design Elements.
- [Commentator] Now we are ready to add the code…for the workflow of adding or selecting a Google account.…To do that, let's scroll up to on view created.…And just below on view created method we're going to…create a new method, it's going to be a private method…and we're going to call it check account or load albums.…In this method, we're going to do a couple of things.…First we're going to check if the picasa client…is initialized.…
If our picasa client is initialized we simply call…load albums.…If it is not initialized, the next thing we want to do…is to check whether we have the Google account saved…in shared prefs, so I'm going to create a string for our…Google account.…And make a call to preference manager to get our default…shared preferences.…And we will pass in our context.…
And we want to retrieve our Google account name as a string.…So we will call the get string method.…And we will pass in a key pref account.…With a default value of null.…Let's go ahead and define pref account.…This is the string key for our shared preferences.…
- Creating a custom layout with XML
- Setting up OnClick handlers
- Making API calls
- Creating custom views
- Implementing ViewHolder objects
- Signing certificates
- Adding a checkbox
Skill Level Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Understanding the Side Navigation Drawer
2. Custom RecyclerView: Multiple View Types
3. Custom RecyclerView: ViewHolders
4. Understanding Custom Views
- 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.