Re: [android-developers] FragmentStatePagerAdapter is not setting the UI elemtents when using Loader API

2012-09-13 Thread Jose Ayerdis
Eureka, I know What was happening was fairly trivial and makes a lots of sense, I had in my onResume() @Override public void onResume() { super.onResume(); getActivity().getSupportLoaderManager().restartLoader(CONTACT_REQUEST, null, this); getActivity().getSupportLoaderManager().restartLoad

Re: [android-developers] FragmentStatePagerAdapter is not setting the UI elemtents when using Loader API

2012-09-10 Thread Jose Ayerdis
Interesting I'll look at it but it does not explained why the first fragment does not load the data and when I start switching this gets set. Although the listview inside each fragment get loaded and then empty. PD. this works without a ViewPager and the FragmentStatePagerAdapter approach. Sincer

Re: [android-developers] FragmentStatePagerAdapter is not setting the UI elemtents when using Loader API

2012-09-10 Thread Calin Perebiceanu
Hello, I believe that your issue is caused by the fact that the viewpager instantiates the fragments only when needed. You should take a look at http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit(int) On Monday, 10 September 2012 03:58:53 UTC+

Re: [android-developers] FragmentStatePagerAdapter is not setting the UI elemtents when using Loader API

2012-09-09 Thread Jose Ayerdis
I posted in SO, probably too much code for the group. Tks Sincerly yours, [Jose Luis Ayerdis Espinoza] Necronet.info | LinkedIn| Careers StackOverflow 2012/9/10 Dianne Hackborn > I

Re: [android-developers] FragmentStatePagerAdapter is not setting the UI elemtents when using Loader API

2012-09-09 Thread Dianne Hackborn
I don't think you have provided enough information to help. The argument you supplied to instantiate() is just made available to the fragment through Fragment.getArguments(). Presumably the problem is then somewhere in your DetailFragment and how it is managing those arguments, but you haven't pr

[android-developers] FragmentStatePagerAdapter is not setting the UI elemtents when using Loader API

2012-09-09 Thread Jose Ayerdis
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 whi