ShareDataExample This app explains how data can be transferred from activity to fragments , and from fragment to fragment with the help of ViewModel App has two fragments , user inputs a name in first fragment which gets into second fragment and user inputs a second name there Here is the first page Here is the second page