map-fragment icon indicating copy to clipboard operation
map-fragment copied to clipboard

Changing fragments for the example code

Open bitbitbit opened this issue 12 years ago • 0 comments

Sorry I'm new to android, thank you so much for the code.

I have an activity and fragments in it. I use the code below to change the fragments (where f is the new fragment)

FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.replace(R.id.content, f); ft.addToBackStack(null); ft.commit();

I tried to f = new LocalActivityManagerFragment(); but it doesn't work....

How can I change between my fragments and the example map fragment?

Thank you so much!!!!

And also, it seems it's not necessary to have my_map_fragment.xml (the one with tab host) ? Is that true?

bitbitbit avatar Feb 01 '13 09:02 bitbitbit