This app dynamically adds or removes fragments to/from ViewPager2. Each fragment sends notification with it's number on button click. Click on notification opens fragment with relevant number. Fragment is deleted with it's notifications. Fragments number is saved when app is closed. When app is opened again, fragments recreated.
rodins / fragments_task Goto Github PK
View Code? Open in Web Editor NEWApp with fragments in ViewPager dinamicly created, sending notifications.