Join Albert Lo for an in-depth discussion in this video Handle results of Google account, part of Android Development: Modern Android UI Design Elements.
- [Instructor] Now let's switch back…to Google photos fragment to add in our code…to handle activity result.…We're going to scroll up again to on view created,…and just below on view created,…we're going to add our on activity result.…It's a fragment life cycle activity…so we can add in it's public on activity result.…Input parameters on a request code,…result code, and the intent.…
In our on activity result, we're going to handle…the Google account picker's selection here.…So we will make another Picasa client library call.…First let's call these super class on activity result,…passing in our request code, result code, and data.…And then next, let's make our Picasa client call…on activity result.…And then we pass in the same three parameters,…a request code, result code, and data.…
We're also going to change some calls here.…First one is to observe on the main thread.…And the next one is to add our subscriber.…It's a new completable subscriber.…And in our on completed callback,…we're going to make a new private method…
- 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.