Forums Register Login

how to call another fragment activity?

+Pie Number of slices to send: Send
this is my main activity which contain viewpager



this is my MyFragment class




inside MainActivity there is a method respond which comes from Interface.I need to call method of MyFragment2.How to get reference tov MyFragment2 from MainActivity?
+Pie Number of slices to send: Send
I generally use the EventBus library for inner-app communication. That's cleaner than keeping references to GUI elements all over the place.
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 16176 times.
Similar Threads
how to call a library project from fragment
getting Nullpointer exception when i try to call Fragment
how to view pdf inside fragment
need a page viewer with dynamic pages
1 Error needs fix - cannot make a static reference to the non static method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:30:52.