Oreilly - Hands-On Android Application Components: Services and Fragments
by Mona Vafa | Publisher: Packt Publishing | Release Date: March 2019 | ISBN: 9781789614428
Master flexible UIs and build next-level Android appsAbout This VideoDive into developing Android apps with practical hands-on examples to help you at each stageDetailed, accurate walkthroughs showing you how to create fragments with the latest Android StudioPractical lessons on understanding the wider context of KotlinIn DetailIt's always been a big pain for developers to understand the implementation of background threads and processes and master building flexible UI's and how to effectively use services in their applications. Not all Android developers have any experience of fragments, but this course will help you master fragments and services from scratch!In this course, you will start by getting familiar with the fundamental concepts of fragments and adding fragments to an activity, fragment transactions, their lifecycle, and how they communicate with activities. You'll also explore fragment stability during screen rotation, and screen sizes. Then you will learn about services, another application component that will continue to run in the background even if the user switches to another application. Here you will get hands-on with the various kinds of services, threads, and processes, and their life cycle; then you'll move on to inter-process communication. Lastly, you will implement everything you've learned and build a TODO application; you'll learn to pass and manage arguments and master the communication flow between services and fragments in multiple ways. By the end of this course, you'll have a very strong foundation in Android fragments and Android services.The code bundle for this course is available at https://github.com/PacktPublishing/Hands-on-Android-Application-Components-Services-and-FragmentsDownloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
- Chapter 1 : Creating Your Fragment Class and Inflating Your Layouts
- The Course Overview 00:04:13
- Configure Android Studio and Create Your Project 00:03:34
- Create a Layout and Explore Layout Editor 00:07:28
- Create Your Fragment Class 00:03:27
- Display Your Fragment 00:02:51
- Chapter 2 : Adding Fragments to Activities and Handling Its Lifecycle
- Handling Fragment’s Lifecycle 00:05:44
- Co-Ordinating with Your Activity's Lifecycle 00:01:48
- Displaying Your Fragment Programmatically 00:04:36
- Add and Remove Fragments 00:03:06
- Replacing Fragments 00:03:15
- Handling Configuration Changes While Adding, Removing, and Replacing Fragments 00:07:34
- Exploring Back Stack 00:04:30
- Chapter 3 : Communicating with Fragments
- Communicating with Activity – Creating Event Callbacks 00:08:24
- Communicating with Activity – Pass Arguments 00:05:40
- Communicating with Activity – Factory Method 00:03:00
- Communication between Fragments within Activity 00:08:23
- View Model 00:03:43
- Communicating with Fragments – View Model 00:06:44
- Chapter 4 : Implementing Fragments for Multiple Usages
- Explore Screen Compatibility 00:05:03
- Measuring Screen Size 00:05:30
- Using the Right Layout 00:05:17
- Using Fragments as Dialogues 00:03:14
- Using Fragments as ViewPager 00:06:47
- Chapter 5 : Exploring Services
- Services 00:04:14
- Explore Service’s Lifecycle 00:03:36
- Create a Service 00:05:26
- IntentService() 00:02:34
- Handling Long-Running Tasks 00:05:06
- Chapter 6 : Implementing Services and Sending Notifications
- Bound Services 00:06:15
- Messenger 00:03:19
- AIDL 00:03:55
- Explore IPC 00:02:17
- Start a Foreground Service 00:03:24
- Chapter 7 : Explore Communication between Service and Fragment
- Explore the Initial Project 00:02:06
- Add Fragments to the Project 00:04:06
- Add Services to the Project 00:01:29
- Interact with Your Service from the Fragment 00:03:54