Back to project page capture-the-flag.
The source code is released under:
Copyright ? 2014 Microsoft Mobile Oy. All rights reserved. Microsoft is a registered trademark of Microsoft Corporation. Nokia and HERE are trademarks and/or registered trademarks of Nokia Corporati...
If you think the Android project capture-the-flag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2014 Microsoft Mobile. All rights reserved. * See the license text file provided with this project for more information. *///from w w w. j a va2 s .com package com.nokia.example.capturetheflag.notifications; import com.nokia.example.capturetheflag.network.model.ModelConstants; import android.content.Context; import android.content.Intent; import android.support.v4.content.LocalBroadcastManager; /** * Notifications-related utility functions. */ public class NotificationsUtils { /** * Broadcasts the given game message. * * @param message The message to broadcast. * @param context Context. */ public static void broadcastGameMessage(String message, Context context) { Intent i = new Intent(NotificationsManagerFactory.PUSH_MESSAGE_ACTION); i.putExtra(ModelConstants.CAPTURER_KEY, message); LocalBroadcastManager.getInstance(context).sendBroadcast(i); } }