Source

android-viewpager-demo / README

Full commit
This is a throwaway demo for an Android application that will eventually have
a slightly different navigation and data storage logic. It comprises of a
ViewPager with five similar pages, each remembering how many times it has been
swiped out and the time of the last swipe it went under. Data is saved in a
SQLite database on each page being swiped out. Each page also features a
ToggleButton: data for any page is saved only when its button is enabled. Two
additional buttons are available on screen, to go directly to the first or last
page. Functionality for dynamically adding a new page or deleting the page
currently being displayed is missing, but would have been a nice extension to
have.