henriqueolliveira / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

calendar-v2-atom-android-sample update calendar crash #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.3.1-alpha)?
1.3.1-alpha

Java environment (e.g. Java 6, Android 2.3, App Engine 1.4.2)?
Android 2.3.3

Describe the problem.
Start sample, authentication, load calendars, long press calendar item in list, 
press update title, and then:
ERROR/AndroidRuntime(5822): FATAL EXCEPTION: main
java.lang.IllegalArgumentException: HTTP transport doesn't support PATCH
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:133)
    at com.google.api.client.sample.calendar.android.model.RedirectHandler.execute(RedirectHandler.java:57)
    at com.google.api.client.sample.calendar.android.model.Entry.executePatchRelativeToOriginal(Entry.java:73)
    at com.google.api.client.sample.calendar.android.model.CalendarEntry.executePatchRelativeToOriginal(CalendarEntry.java:43)
    at com.google.api.client.sample.calendar.android.CalendarAndroidSample.onContextItemSelected(CalendarAndroidSample.java:274)
    at android.app.Activity.onMenuItemSelected(Activity.java:2209)
    at com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback.onMenuItemSelected(PhoneWindow.java:2785)
    at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
    at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:137)
    at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:873)
    at android.widget.AdapterView.performItemClick(AdapterView.java:284)
    at android.widget.ListView.performItemClick(ListView.java:3513)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3683)
    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)

How would you expect it to be fixed?
No idea.

Original issue reported on code.google.com by berestam...@gmail.com on 27 Mar 2011 at 8:21

GoogleCodeExporter commented 9 years ago
im jusing android 2.2

Original comment by alexande...@gmail.com on 5 May 2011 at 7:05

GoogleCodeExporter commented 9 years ago
Should be fixed now.

Original comment by yan...@google.com on 11 Nov 2011 at 10:00