Code example for ListFragment

Methods: setRetainInstance

0
	public void onSaveInstanceState(Bundle outState) {
		 
		super.onSaveInstanceState(outState);
	} 
 
	public PendingLikesListFragment(OfflikeFragmentActivity activity,WebView webview) {
		this.setRetainInstance(true);
		this.activity=activity;
		this.webview=webview;
 
		 
	} 
	 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		Cursor pending_likes_c=this.getPendingLikes();
		 
		if (pending_likes_c.getCount()>0) {
			int url_id=pending_likes_c.getColumnIndex(PendingLikesSQLHelper.URL);