Back to project page Timetable.
The source code is released under:
GNU General Public License
If you think the Android project Timetable 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.timetable.android; /*from w ww .j a v a 2 s . co m*/ import android.content.Context; import android.content.Intent; import android.os.Bundle; /* * Class, that can send all main broadcasts. */ public class EventBroadcastSender { public static void sendEventAddedBroadcast(Context context, Event event) { Intent intent = new Intent(BroadcastActions.ACTION_EVENT_ADDED); intent.putExtras(event.convert()); context.sendBroadcast(intent); Logger.log("EventBroadcastSender.sendEventAddedBroadcast: broadcast is sent"); } public static void sendEventUpdatedBroadcast(Context context, Event event) { Intent intent = new Intent(BroadcastActions.ACTION_EVENT_UPDATED); intent.putExtras(event.convert()); context.sendBroadcast(intent); Logger.log("EventBroadcastSender.sendEventUpdatedBroadcast: broadcast is sent"); } public static void sendEventDeletedBroadcast(Context context, Event event) { Intent intent = new Intent(BroadcastActions.ACTION_EVENT_DELETED); intent.putExtras(event.convert()); context.sendBroadcast(intent); Logger.log("EventBroadcastSender.sendEventDeletedBroadcast: broadcast is sent"); } public static void sendEventEndedBroadcast(Context context, Event event) { sendEventEndedBroadcast(context, event.convert()); } public static void sendEventEndedBroadcast(Context context, Bundle eventData) { Intent intent = new Intent(BroadcastActions.ACTION_EVENT_ENDED); intent.putExtras(eventData); context.sendBroadcast(intent); Logger.log("EventBroadcastSender.sendEventEndedBroadcast: broadcast is sent"); } }