Book Image

Hands-On Android Application Components: Services and Fragments [Video]

By : Mona Vafa
Book Image

Hands-On Android Application Components: Services and Fragments [Video]

By: Mona Vafa

Overview of this book

<p>It'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!<br />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.</p> <p>The code bundle for this course is available at&nbsp;<a href="https://github.com/PacktPublishing/Hands-on-Android-Application-Components-Services-and-Fragments" target="_blank">https://github.com/PacktPublishing/Hands-on-Android-Application-Components-Services-and-Fragments</a></p> <h1>Style and Approach</h1> <p>This course takes a step-by-step approach with helpful advice, working examples, and sample projects; you will start as a beginner, but you will master fragment and services in this course. You'll advance your career and work on more cutting-edge projects.</p>
Table of Contents (7 chapters)
Chapter 3
Communicating with Fragments
Content Locked
Section 4
Communication between Fragments within Activity
The aim of this video is to help you understand the communication between fragments within the activity. - Pass data from one fragment to the container activity and receive it from another fragment - Explore the log concept and the best ways to use it - Use factory method and event callbacks at the same time to communicate with fragments