[android-developers] Re: Calendar edit event force close error....
Hhmmm, as Michael mentioned above, you should provide your stack trace or the crash message from your LogCat. But, you say that event.put(allDay,0) is causing a crash, while event.put(allDay,1) works fine. Could it be the case that '0' is an invalid index in event.put(allDay,0)? To be sure, you should investigate the crash message in LogCat: http://developer.android.com/guide/developing/debugging/ddms.html If you cannot understand what the cause of the crash is, then you could share the crash message here so that other people can have a look at it. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Calendar edit event force close error....
Well.I don't know what is stack trace. and I can't understand what this message mean... 03-26 15:53:22.707: W/dalvikvm(2065): threadid=1: thread exiting with uncaught exception (group=0x2aac8578) 03-26 15:53:22.707: E/AndroidRuntime(2065): FATAL EXCEPTION: main 03-26 15:53:22.707: E/AndroidRuntime(2065): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.calendar/com.android.calendar.EditEvent}: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.access$1500(ActivityThread.java:121) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.os.Handler.dispatchMessage(Handler.java:99) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.os.Looper.loop(Looper.java:130) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.main(ActivityThread.java:3701) 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.lang.reflect.Method.invokeNative(Native Method) 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.lang.reflect.Method.invoke(Method.java:507) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624) 03-26 15:53:22.707: E/AndroidRuntime(2065): at dalvik.system.NativeStart.main(Native Method) 03-26 15:53:22.707: E/AndroidRuntime(2065): Caused by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.TimezoneAdapter.showInitialTimezones(TimezoneAdapter.java:255) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.TimezoneAdapter.init(TimezoneAdapter.java:198) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.EditEvent.init(EditEvent.java:755) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.EditEvent.onCreate(EditEvent.java:675) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623) 03-26 15:53:22.707: E/AndroidRuntime(2065): ... 11 more 03-26 15:53:22.717: W/ActivityManager(245): Force finishing activity com.android.calendar/.EditEvent 03-26 15:53:23.227: W/ActivityManager(245): Activity pause timeout for HistoryRecord{2b3b9820 com.android.calendar/.EditEvent} 03-26 15:53:25.757: I/Process(2065): Sending signal. PID: 2065 SIG: 9 03-26 15:53:25.797: I/ActivityManager(245): Process com.android.calendar (pid 2065) has died. 03-26 15:53:25.807: D/kernel(126): [10283.102874] binder: 245:396 transaction failed 29189, size 56-0 03-26 15:53:25.817: E/InputDispatcher(245): channel '2b3728a0 com.android.calendar/com.android.calendar.WeekActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 03-26 15:53:25.817: E/InputDispatcher(245): channel '2b3728a0 com.android.calendar/com.android.calendar.WeekActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 03-26 15:53:25.827: I/WindowManager(245): WIN DEATH: Window{2b3728a0 com.android.calendar/com.android.calendar.WeekActivity paused=false} 03-26 15:53:25.837: I/WindowManager(245): WIN DEATH: Window{2b06f7f8 com.android.calendar/com.android.calendar.EventInfoActivity paused=false} 03-26 15:53:25.937: W/InputManagerService(245): Got RemoteException sending setActive(false) notification to pid 2065 uid 10073 maybe someone can help me read this.thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Calendar edit event force close error....
A stack trace is this long error log which you have posted :-) The error is a NullPointerException which means: the app try to access a field which has no value. And the error appears here: java.util.TimeZone.getTimeZone(TimeZone.java:286) One possible solution: public static final String ALL_DAY Is the event all day (time zone independent). Column name. Try to set the right timezone. Ralph Am 26.03.12 09:56, schrieb Jast Vacaty: Well.I don't know what is stack trace. and I can't understand what this message mean... 03-26 15:53:22.707: E/AndroidRuntime(2065): Caused by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 gulp http://www.gulp.de/Profil/RalphBergmann.html linkedin http://www.linkedin.com/in/ralphbergmann java user group http://www.jug-bb.de | http://www.xing.com/net/jugbb ios dev grouphttp://www.xing.com/net/iosberlin pgp key id BED003DD883B9A80 pgp fingerprint 7865 EAD3 5834 705B D8B7 AD7C BED0 03DD 883B 9A80 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Calendar edit event force close error....
yeah! I get it.. It only need to join one line * event.put(eventTimezone, Time.getCurrentTimezone()); *Thank for your help Ralph Bergmann於 2012年3月26日星期一UTC+8下午6時37分15秒寫道: A stack trace is this long error log which you have posted :-) The error is a NullPointerException which means: the app try to access a field which has no value. And the error appears here: java.util.TimeZone.getTimeZone(TimeZone.java:286) One possible solution: public static final String ALL_DAY Is the event all day (time zone independent). Column name. Try to set the right timezone. Ralph Am 26.03.12 09:56, schrieb Jast Vacaty: Well.I don't know what is stack trace. and I can't understand what this message mean... 03-26 15:53:22.707: E/AndroidRuntime(2065): Caused by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 gulp http://www.gulp.de/Profil/RalphBergmann.html linkedin http://www.linkedin.com/in/ralphbergmann java user group http://www.jug-bb.de | http://www.xing.com/net/jugbb ios dev grouphttp://www.xing.com/net/iosberlin pgp key id BED003DD883B9A80 pgp fingerprint 7865 EAD3 5834 705B D8B7 AD7C BED0 03DD 883B 9A80 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en