0

Admittedly, I am Android newbie dev. I would like to know the best approach/solution to showing intro screens for an app, and ONLY at first time use. Similar to Google Drive and several other apps that show the intro screens when you open first time. It has dots at the button to show the screen number you are in. You can swipe to left or right. After you swipe of the last screen, you will enter into the app home screen.

Link to any examples that have screenshots would be good as well.

Kevin Rave
  • 13,876
  • 35
  • 109
  • 173

1 Answers1

0

You launch into the intro screen activity. The first thing it does is check a shared preference. If it exists, you skip the intro and launch the main activity. If it doesn't, you display the first intro screen. When you detect a swipe you switch to the proper new fragment. If its the last screen, you launch the main activity.

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127
  • That answers the 2nd question. But how do you display swipable screens? Is it a separate library / view? – Kevin Rave Feb 06 '15 at 22:47
  • Start with a ViewPager. You will have to write some code yourself around that, although if you look you might find a 3rd party library. – Gabe Sechan Feb 06 '15 at 23:55