After looking the src - finally "solved" the issue.
The problem is when the fragment is stored by the pager -
it uses the pager id and creates it's own tag.
but the tag format should be stable.
In your FragmentActivity if you call this method with the id of the
Fragment -
String getFragmentTag( int id )
{
return "android:switcher:" + mViewPager.getId() + ":" + id;
}
then this should work
FragmentManager fm = getSupportFragmentManager();
int id = 1; // this is the id of the Fragment child you add
via the adapter
Fragment fr = fm.findFragmentByTag( getFragmentTag( id ) );
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.