It seems the game gets in a confused state when relaunching buzzwords if a turn is in progress. It's like it tries to resume a game that is not resumable. Perhaps the relaunch process cleans our stored state and prevents it from being resumed? The concern here is maybe the store does the same thing instead of a full uninstall (though I doubt that).
To reproduce:
Load buzzwords and background it while a turn is in progress
Make changes to the code in Eclipse
Relaunch buzzwords (the launcher will install the new code)
Newly relaunched Buzzwords will then crash when hitting Turn.
E/AndroidRuntime( 4914): FATAL EXCEPTION: main
E/AndroidRuntime( 4914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.buzzwords/com.buzzwords.TurnActivity}: java.lang.NullPointerException
E/AndroidRuntime( 4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
E/AndroidRuntime( 4914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
E/AndroidRuntime( 4914): at android.app.ActivityThread.access$600(ActivityThread.java:130)
E/AndroidRuntime( 4914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
E/AndroidRuntime( 4914): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4914): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 4914): at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 4914): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4914): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 4914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 4914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 4914): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 4914): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 4914): at com.buzzwords.TurnActivity.showCurrentCard(TurnActivity.java:746)
E/AndroidRuntime( 4914): at com.buzzwords.TurnActivity.onCreate(TurnActivity.java:1074)
E/AndroidRuntime( 4914): at android.app.Activity.performCreate(Activity.java:5008)
E/AndroidRuntime( 4914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
E/AndroidRuntime( 4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
E/AndroidRuntime( 4914): ... 11 more
It seems the game gets in a confused state when relaunching buzzwords if a turn is in progress. It's like it tries to resume a game that is not resumable. Perhaps the relaunch process cleans our stored state and prevents it from being resumed? The concern here is maybe the store does the same thing instead of a full uninstall (though I doubt that).
To reproduce:
Newly relaunched Buzzwords will then crash when hitting Turn.
E/AndroidRuntime( 4914): FATAL EXCEPTION: main E/AndroidRuntime( 4914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.buzzwords/com.buzzwords.TurnActivity}: java.lang.NullPointerException E/AndroidRuntime( 4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) E/AndroidRuntime( 4914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) E/AndroidRuntime( 4914): at android.app.ActivityThread.access$600(ActivityThread.java:130) E/AndroidRuntime( 4914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) E/AndroidRuntime( 4914): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 4914): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 4914): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime( 4914): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 4914): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 4914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) E/AndroidRuntime( 4914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) E/AndroidRuntime( 4914): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 4914): Caused by: java.lang.NullPointerException E/AndroidRuntime( 4914): at com.buzzwords.TurnActivity.showCurrentCard(TurnActivity.java:746) E/AndroidRuntime( 4914): at com.buzzwords.TurnActivity.onCreate(TurnActivity.java:1074) E/AndroidRuntime( 4914): at android.app.Activity.performCreate(Activity.java:5008) E/AndroidRuntime( 4914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) E/AndroidRuntime( 4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) E/AndroidRuntime( 4914): ... 11 more