: android.support.v4.app.SuperNotCalledException
09-20 18:44:40.842: E/AndroidRuntime(28757): FATAL EXCEPTION: main
09-20 18:44:40.842: E/AndroidRuntime(28757): android.support.v4.app.SuperNotCalledException: Fragment ChartFrameActivity{42d15ec0 #0 id=0x7f080000 android:switcher:2131230720:0} did not call through to super.onStart()
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.Fragment.performStart(Fragment.java:1526)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:957)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:472)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.view.ViewPager.populate(ViewPager.java:1068)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.view.ViewPager.populate(ViewPager.java:914)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1436)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.measureVertical(LinearLayout.java:833)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5056)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5056)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.measureVertical(LinearLayout.java:681)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5056)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
09-20 18:44:40.842: E/AndroidRuntime(28757): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2361)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1974)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1217)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1390)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1112)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4472)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer.doCallbacks(Choreographer.java:555)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer.doFrame(Choreographer.java:525)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.os.Handler.handleCallback(Handler.java:615)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.os.Handler.dispatchMessage(Handler.java:92)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.os.Looper.loop(Looper.java:137)
09-20 18:44:40.842: E/AndroidRuntime(28757): at android.app.ActivityThread.main(ActivityThread.java:4898)
09-20 18:44:40.842: E/AndroidRuntime(28757): at java.lang.reflect.Method.invokeNative(Native Method)
09-20 18:44:40.842: E/AndroidRuntime(28757): at java.lang.reflect.Method.invoke(Method.java:511)
09-20 18:44:40.842: E/AndroidRuntime(28757): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
09-20 18:44:40.842: E/AndroidRuntime(28757): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
09-20 18:44:40.842: E/AndroidRuntime(28757): at dalvik.system.NativeStart.main(Native Method)
解决办法
你重写的方法@Override
public void onStart() {
Log.i(TAG, "onStart");
//super.onStart();//不能注释掉
}