Android Replace Fragment

Been googling several sites on how to navigate/traverse between fragments in Android. It is not easy because it is mostly in Java and they are so old and deprecated. Finally after piecing together the information from several sites, I managed to get it working.

I better document it down for my own use in future. Don’t want to go through the tiring process of googling again.