I'm having difficulty loading events through onMonthChange.
Specifically, I'm trying to store events created in a previous activity within a Static variable, that is of type List<? extends WeekViewEvent>. This would allow me to create events outside onMonthChange.
However, when returning the array in onMonthChange, the application crashes with a java.lang.OutOfMemoryError error.
Using a static variable for storing events before the activity with the WeekView is loaded is my attempt at getting around the fact that we currently can't use bundles to pass WeekViewEvents.
Would you guys say that this is mainly be due to a issue related with the onMonthChange, or a syntax/language error on my side?
Hi,
I'm having difficulty loading events through
onMonthChange
. Specifically, I'm trying to store events created in a previous activity within a Static variable, that is of typeList<? extends WeekViewEvent>
. This would allow me to create events outsideonMonthChange
. However, when returning the array inonMonthChange
, the application crashes with ajava.lang.OutOfMemoryError
error.Using a static variable for storing events before the activity with the
WeekView
is loaded is my attempt at getting around the fact that we currently can't use bundles to passWeekViewEvents
.Would you guys say that this is mainly be due to a issue related with the
onMonthChange
, or a syntax/language error on my side?Thanks!