Hello everybody, so I have run now with this problem when trying to use
FragmentStatePagerAdapter, I pick a specific element from a List and send
an array of ids with the position picked like this
intent.putExtra("ids", ids);
intent.putExtra("position", position);
Then the activity is called which load the fragment
@Override
public Fragment getItem(int i) {
fragments[i] = DetailFragment.newInstance(tradersId[i]);
return fragments[i];
}
The problem is that inside the DetailFragment the values are set with the
Loader API and even when they reach onLoadFinished and set the values it
never gets to be set.
Funny thing is that once I start switching views the values are set. Any
idea? Also the DetailFragment has a ListView inside which also loads with
the Loader API.
Sincerly yours,
[Jose Luis Ayerdis Espinoza]
Necronet.info |
LinkedIn<http://www.linkedin.com/pub/jose-luis-ayerdis-espinoza/28/7b4/704>|
Careers
StackOverflow <http://careers.stackoverflow.com/necronet>
--
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