title: android viewpager - swiping
body: <p>I've read this blog about viewpager:</p>
  
  <p><a href="http://android-developers.blogspot.sk/2011/08/horizontal-view-swiping-with-viewpager.html" rel="nofollow">http://android-developers.blogspot.sk/2011/08/horizontal-view-swiping-with-viewpager.html</a></p>
  
  <p>and I have a question; can I use it to swipe between unknown amount of activities? because in the example were 5 tabs and you could swipe between them, but I need something, that can swipe between activities forever. something that will have method onSwipeRight or left, incerement some integer there and show appropriate activity. and I can't do it with fragments, because it gives me some nullpointer exceptions - I think that interface that I want cant be done with fragments. Thanks</p>