So, Why Does My Log Info Shows Completely Wrong Behaviour Between Activity-fragment Relation?
I just put log tags on most activity and fragment methods and this is the result: 06-19 16:33:11.934: I/Fragment Activity:MainMenuPager(15820): onCreate - BEGIN 06-19 16:33:11.958:
Solution 1:
Sorry I dont see an issue here. First, you have a pager, and we don't know at one point you set the adapter. Are you setting it in onResume? B/c I'm guessing that would match up with your output.
What kind of output do you see if you embed a <fragment />
in the layout? What kind of output would you see if you add a fragment via FragmentTransaction
with-in an onClick listener? These would all have different logging outcomes so the question here is more of a game of "guess how I wrote my code".
Post a Comment for "So, Why Does My Log Info Shows Completely Wrong Behaviour Between Activity-fragment Relation?"