标签:blog http io java sp on 2014 log cti
具体原因我也不知道,解决办法在下面,我的能行public class SplashActivity extends FragmentActivity { private DirectionalViewPager mDirectionalViewPager; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mDirectionalViewPager = (DirectionalViewPager) findViewById(R.id.pager); mDirectionalViewPager.setAdapter(new SplashFragmentAdapter( getSupportFragmentManager())); mDirectionalViewPager.setOrientation(DirectionalViewPager.VERTICAL); // 加上这句应该就能解决了,不行可以看看这个链接 http://stackoverflow.com/questions/12121099/unable-to-call-activity-from-fragmentactivity mDirectionalViewPager.setSaveEnabled(false); } }
at com.directionalviewpager.DirectionalViewPager.onSaveInstanceState(DirectionalViewPager.java:454)
标签:blog http io java sp on 2014 log cti
原文地址:http://blog.csdn.net/tbl19930927/article/details/40740797