android interaction internal
<p>i have this code  and i don't understand how can I make both interact between them </p>

<p>I know that Activities are designed to represent a single screen of my application, while Fragments are designed to be reusable UI layouts with logic embedded inside of them.</p>