paint-brush
8 ways to communicate between Fragment and Activity in Android appsby@onmyway133
16,548 reads
16,548 reads

8 ways to communicate between Fragment and Activity in Android apps

by Khoa Pham5mAugust 16th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

There’s always need for communication, right 😉 Suppose we have <code class="markup--code markup--p-code">OnboardingActivity</code> that has several <code class="markup--code markup--p-code">OnboardingFragment</code>. Each <code class="markup--code markup--p-code">Fragment</code> has a <code class="markup--code markup--p-code">startButton</code> telling that the onboarding flow has finished, and only the last <code class="markup--code markup--p-code">Fragment</code> shows this button.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - 8 ways to communicate between Fragment and Activity in Android apps
Khoa Pham HackerNoon profile picture
Khoa Pham

Khoa Pham

@onmyway133

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite