ianhanniballake/ContractionTimer — Issue #30: InstantiationException Crash on Rotating Note Dialog
Author: ianhanniballake
Created: 2011-11-08 00:52:59+00:00
State: open
Labels: Crash

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ianhanniballake.contractiontimer/com.ianhanniballake.contractiontimer.ui.MainActivity}: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.ianhanniballake.contractiontimer.ui.NoteDialogFragment: make sure class name exists, is public, and has an empty constructor that is public
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3242)
at android.app.ActivityThread.access$1600(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1037)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.ianhanniballake.contractiontimer.ui.NoteDialogFragment: make sure class name exists, is public, and has an empty constructor that is public
at android.support.v4.app.Fragment.instantiate(Fragment.java:393)
at android.support.v4.app.FragmentState.instantiate(Fragment.java:94)
at android.support.v4.app.FragmentManagerImpl.restoreAllState(FragmentManager.java:1657)
at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:430)
at com.ianhanniballake.contractiontimer.ui.MainActivity.onCreate(MainActivity.java:93)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1780)
... 12 more
Caused by: java.lang.InstantiationException: com.ianhanniballake.contractiontimer.ui.NoteDialogFragment
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1409)
at android.support.v4.app.Fragment.instantiate(Fragment.java:382)
... 18 more