package com.ohtu.wearable.wearabledataservice.fragments;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class PagerAdapter extends FragmentPagerAdapter {

    public PagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int arg0) {

        switch (arg0) {
            case 0:

                return new FragmentOne();
            case 1:
                return new FragmentTwo();
            default:
                break;
        }
        return null;
    }

    @Override
    public int getCount() {

        return 2;
    }


}
@@ -421,16 +421,80 @@
 ase 0:%0A%0A
+                return new FragmentThree();%0A            case 1:%0A
         
@@ -536,33 +536,33 @@
            case 
-1
+2
 :%0A              
@@ -729,17 +729,17 @@
  return 
-2
+3
 ;%0A    %7D%0A
@@ -741,8 +741,9 @@
    %7D%0A%0A%0A%7D
+%0A

Update PagerAdapter.java