title: The method makeText in the type Toast is not applicable for the arguments
body: <p>I am using a ViewPageIndicator and trying to use a Toast to display when we scroll to the next fragment page.</p>
  
  <p>i am getting he following error</p>
  
  <pre><code>The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (PlaceDetailsFragment, String, int)
  </code></pre>
  
  <p><strong>PlaceDetailsFragment.java</strong></p>
  
  <pre><code>public class PlaceDetailsFragment extends SherlockFragment {
      ImageFragmentAdapter mAdapter;
      ViewPager mPager;
      PageIndicator mIndicator;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_place_details, container,
                  false);
  
          mAdapter = new ImageFragmentAdapter(getActivity()
                  .getSupportFragmentManager());
  
          mPager = (ViewPager) view.findViewById(R.id.pager);
          mPager.setAdapter(mAdapter);
  
          mIndicator = (CirclePageIndicator) view.findViewById(R.id.indicator);
          mIndicator.setViewPager(mPager);
          ((CirclePageIndicator) mIndicator).setSnap(true);
  
          mIndicator.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
              @Override
              public void onPageSelected(int position) {
                  Toast.makeText(PlaceDetailsFragment.this, "Changed to page " + position, Toast.LENGTH_SHORT).show();
              }
  
              @Override
              public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
              }
  
              @Override
              public void onPageScrollStateChanged(int state) {
              }
          });
          return view;
      }
  
  }
  </code></pre>