2
我希望在日曆對象添加到的parseObject我已經創建,但它拋出一個異常,每當我嘗試添加:添加日曆對象到的parseObject
ParseObject route = new ParseObject(ParseConstants.CLASS_ROUTES);
route.put(ParseConstants.KEY_ROUTE_PROPOSED_TIME, mProposedDateTime);
09-05 12:57:55.735 16977-16977/com.khackett.runmate E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.khackett.runmate, PID: 16977
java.lang.IllegalArgumentException: invalid type for value: class java.util.GregorianCalendar
我從獲得Calendar對象以前的意圖如下:
mProposedDateTime = (Calendar) getIntent().getSerializableExtra("proposedTime");
什麼是添加一個日曆對象來解析推薦的方法是什麼?