This demo shows how to use ViewPager by adding fragments dynamically. This project also illustrates how to communicate to the parent Activity from the Child Fragments using an Interface callback.