Java tutorial
//package com.java2s; /** * Copyright (c) 2014 Microsoft Mobile and/or its subsidiary(-ies). * See the license text file delivered with this project for more information. */ import android.content.Context; import android.content.Intent; import android.util.Log; public class Main { private static final String TAG = "NNASingleAPKSample/CommonUtilities"; public static final String PROCESS_MESSAGES_ACTION = "com.nokia.push.codeveldemo.PROCESS_MESSAGES"; /** * Sends a request to the Activity instance to process the messages. * * @param context The application context. */ public static void processMessages(Context context) { Log.i(TAG, "processMessages()"); Intent intent = new Intent(PROCESS_MESSAGES_ACTION); context.sendBroadcast(intent); } }