Code example for Cursor

Methods: moveToPosition

	public Object instantiateItem(View container, int position) {
		if (!mDataValid) {
			throw new IllegalStateException("this should only be called when the cursor is valid");
		if (!mCursor.moveToPosition(position)) {
			throw new IllegalStateException("couldn't move cursor to position " + position);
		View v = newView(mContext, mCursor, (ViewGroup) container);
		bindView(v, mContext, mCursor);
		((ViewPager) container).addView(v);
		return v;
	public void destroyItem(View container, int position, Object object) {
		((ViewPager) container).removeView((View) object);