Code example for ActionBarActivity

Methods: getSupportFragmentManager

0
		} 
	} 
 
	public void init() { 
		Cursor cursor = mVideoDB.getVideos(mDefaultPrepareCount);
		mShowAdapter = new ShowGalleryPagerAdapter(getSupportFragmentManager(),
				cursor, 4);
		mShowPager.setAdapter(mShowAdapter);
		mVideoAdapter = VideoListAdapter.build(mContext, cursor, true);
		mVideoList.setAdapter(mVideoAdapter);
		mShowIndicator.setViewPager(mShowPager);
	} 
 
	public void init(String data) {
		try { 
			JSONArray videoList = new JSONArray(data);
			if (videoList != null) {
				new AddToDBThread(videoList, true).start();
			} 
			mShowAdapter = new ShowGalleryPagerAdapter(
					getSupportFragmentManager(), videoList, 4);