Hi guys,

I have a ListFragment where I load a Cursor through a Loader in 
 onCreateLoader(int i, Bundle bundle).
If I click on a ListItem then I replace the Fragment to another Fragment 
"DetailsPageSlider" and set as argument position and count.
In my FragmentStateAdapter in getItem(int position) I create my Details 
Fragment which needs the database _id as argument.
So now I have to match the "position" in getItem with the database _id! 

How I could solve that problem?

1) Should I load exactly the same cursor for my FragmentStatePagerAdapter 
to get the database _id through the position.

2) Or Is it possible to use the same Cursor in my ListFragment and also in 
my FragmentStatePagerAdapter?

3) Or any other ideas?

greets
Markus


-- 
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/d/optout.

Reply via email to