Do not understand fully fragment life-cycle.
Case:
Click
FrameLayout
fromActivity
to move toFragment
is working.
Problem:
In
Fragment
there are twospinners
and oneSubmitButton
, when selected bothspinner
values, the clicking ofSubmitButton
, should display those values from spinner back to theActivity's
twoTextviews
. But, I am unable to do that.
My Solution:
I tried to use
Intent
,putExtras
and thengetExtras
, but as we are inFragment
,Intent
is not going to work forFragment
.Bundle
also not helping.
P.S. Need someone who understand good Fragment's life-cycle. Read many posts from stackoverflow and other tutorials. Not found what I meant.
Do not want external libraries as such eventBus