---
title: "[转]viewpager+fragment时使用startactivity报错"
author: "vocaloid"
date: "2013-05-07T01:12:06Z"
tags: []
categories: ["移动开发"]
slug: "viewpager-fragment-startactivity"
draft: false
lastmod: "2013-05-07T01:12:06Z"
id: 1860795
url: "https://vocaloid.iteye.com/blog/1860795"
---

原帖：http://blog.csdn.net/conant1989/article/details/8809874

 

错误：

04-16 15:21:15.159: E/AndroidRuntime(19365): at android.support.v4.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1576)

解决：

I've stumbled upon the same problem while using ActionBarSherlock compatibility library. The workaround is that your adapter extends FragmentStatePagerAdapter instead of FragmentPagerAdapter