map-fragment
map-fragment copied to clipboard
Changing fragments for the example code
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?