Overriding instantiateItem(...) won't compile
<p>I am trying to use a PageAdapter. I found out that <code>public Object instantiateItem( View pager, int position )</code> has been deprecated. So I am trying up update but ran into a problem. The new definition changes the deceration to <code>public Object instantiateItem( ViewPager pager, int position )</code>, when I do this and push it to my device the app crashed. </p>

<p>Here is my logcat output.</p>

<blockquote>
  <p>12-26 19:24:30.701: ERROR/AndroidRuntime(25431): FATAL EXCEPTION: main
          java.lang.UnsupportedOperationException: Required method instantiateItem was not overridden
          at android.support.v4.view.PagerAdapter.instantiateItem(PagerAdapter.java:175)
          at android.support.v4.view.PagerAdapter.instantiateItem(PagerAdapter.java:110)
          at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:649)
          at android.support.v4.view.ViewPager.populate(ViewPager.java:783)
          at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1016)</p>
</blockquote>

<p>So I added <code>@Override</code> to the method call, but when I compile it ,using maven, I get the following output that corresponds to my method.</p>

<blockquote>
  <p>Chronos/ChronosApp/src/com/kopysoft/chronos/view/ClockViewer.java:[67,4] error: method does not override or implement a method from a supertype</p>
</blockquote>

<p>I am at a lose as what to do. Any advice would be greatly appreciated!</p>

<p>The entire code can be found here: <a href="http://pastebin.com/da5Kqcmg" rel="nofollow">http://pastebin.com/da5Kqcmg</a></p>
