Back to project page calendar-widget.
The source code is released under:
Apache License
If you think the Android project calendar-widget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.plusonelabs.calendar; /*from w ww . j a v a 2 s . c o m*/ import java.util.TimeZone; import org.joda.time.DateTimeZone; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class EnvironmentChangedReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(Intent.ACTION_LOCALE_CHANGED) || action.equals(Intent.ACTION_TIME_CHANGED) || action.equals(Intent.ACTION_DATE_CHANGED) || action.equals(Intent.ACTION_TIMEZONE_CHANGED)) { DateTimeZone.setDefault(DateTimeZone.forID(TimeZone.getDefault().getID())); EventAppWidgetProvider.updateAllWidgets(context); } EventAppWidgetProvider.updateEventList(context); } }