copy and paste this example
http://www.mysamplecode.com/2012/08/android-fragment-example.html
but backstack and location from the map is not working