http://www.techotopia.com/index.php/Using_Fragments_in_Android_-_A_Worked_Example