I'm curious as to why instantiateItem was deprecated in favor of it's newer version. The change is that it now receives ViewGroup in stead of a more general View.
Deprecated method
public Object instantiateItem (View container, int position)
New method
public Object instantiateItem (ViewGroup container, int position)
Note: This change also happened to destroyItem, startUpdate, finishUpdate & setPrimaryItem.