http://developer.android.com/reference/android/widget/Gallery.html
가 deprecated된 대신에
http://developer.android.com/reference/android/support/v4/view/ViewPager.html
가 생겼네.
에서 sample 화면을 볼 수 있다.
getActivity().getSupportFragmentManager()
If that is still giving you problems, then makre sure that your Activity extends FragmentActivity
.
FragmentActivity 를 상속받아야 한다는 단점이 있다.