Sempre que inicio meu emulador (android 2.3), recebo a notificação de que a aplicação travou.
Atualmente esse emulador não tem widgets do Botãoteca, mas já teve antes.
I/ActivityManager( 61): Start proc br.com.jera.botaoteca for broadcast br.com.jera.botaoteca/.widget.BotaotecaWidgetProvider: pid=280 uid=10042 gids={1015}
D/AndroidRuntime( 280): Shutting down VM
W/dalvikvm( 280): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 280): FATAL EXCEPTION: main
E/AndroidRuntime( 280): java.lang.RuntimeException: Unable to start receiver br.com.jera.botaoteca.widget.BotaotecaWidgetProvider: java.lang.NullPointerException: enumType == null || name == null
E/AndroidRuntime( 280): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1780)
E/AndroidRuntime( 280): at android.app.ActivityThread.access$2400(ActivityThread.java:117)
E/AndroidRuntime( 280): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:978)
E/AndroidRuntime( 280): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 280): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 280): at android.app.ActivityThread.main(ActivityThread.java:3647)
E/AndroidRuntime( 280): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 280): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 280): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 280): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 280): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 280): Caused by: java.lang.NullPointerException: enumType == null || name == null
E/AndroidRuntime( 280): at java.lang.Enum.valueOf(Enum.java:166)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.ButtonColor.valueOf(ButtonColor.java:1)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.updateWidget(BotaotecaWidgetProvider.java:73)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.onEnabled(BotaotecaWidgetProvider.java:85)
E/AndroidRuntime( 280): at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:73)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.onReceive(BotaotecaWidgetProvider.java:66)
E/AndroidRuntime( 280): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1769)
E/AndroidRuntime( 280): ... 10 more
Sempre que inicio meu emulador (android 2.3), recebo a notificação de que a aplicação travou. Atualmente esse emulador não tem widgets do Botãoteca, mas já teve antes.
I/ActivityManager( 61): Start proc br.com.jera.botaoteca for broadcast br.com.jera.botaoteca/.widget.BotaotecaWidgetProvider: pid=280 uid=10042 gids={1015} D/AndroidRuntime( 280): Shutting down VM W/dalvikvm( 280): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/AndroidRuntime( 280): FATAL EXCEPTION: main E/AndroidRuntime( 280): java.lang.RuntimeException: Unable to start receiver br.com.jera.botaoteca.widget.BotaotecaWidgetProvider: java.lang.NullPointerException: enumType == null || name == null E/AndroidRuntime( 280): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1780) E/AndroidRuntime( 280): at android.app.ActivityThread.access$2400(ActivityThread.java:117) E/AndroidRuntime( 280): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:978) E/AndroidRuntime( 280): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 280): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 280): at android.app.ActivityThread.main(ActivityThread.java:3647) E/AndroidRuntime( 280): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 280): at java.lang.reflect.Method.invoke(Method.java:507) E/AndroidRuntime( 280): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/AndroidRuntime( 280): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/AndroidRuntime( 280): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 280): Caused by: java.lang.NullPointerException: enumType == null || name == null E/AndroidRuntime( 280): at java.lang.Enum.valueOf(Enum.java:166) E/AndroidRuntime( 280): at br.com.jera.botaoteca.ButtonColor.valueOf(ButtonColor.java:1) E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.updateWidget(BotaotecaWidgetProvider.java:73) E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.onEnabled(BotaotecaWidgetProvider.java:85) E/AndroidRuntime( 280): at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:73) E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.onReceive(BotaotecaWidgetProvider.java:66) E/AndroidRuntime( 280): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1769) E/AndroidRuntime( 280): ... 10 more