Newbie here. I'm still trying to understand the concept of running a single process or a purpose within multiple layouts.
For example, I want a "post submission" feature on my application. There's a main layout that contains textboxes of title, content, etc. and a button that links to another layout for picking category. My question is, how can I integrate those two layouts/activities? How can I pass the picked category to the main layout?
I just thought these ways:
- Using static variable (?)
- Using fragment
Can someone explain the correct way? So sorry if this's a really basic question.