I have an activity (MainActivity) that holds a Fragment (FragmentA) with an ArrayList<Uri> array_list = new ArrayList<Uri>();
.
How can my MainActivity get a reference of that array_list?
Now if you ask me why'd I want to get a reference of a variable of a fragment to an activity that holds that fragment, I'd say, I'm planning to get the items in array_list when I click the action button on my MainActivity.
I'm using ViewPager. I don't have fragment id's.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…