package com.openwide.android; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; public class MessageReceiver extends BroadcastReceiver{ public static final String MESSAGE_RECEIVED = "com.openwide.android.mutliSmsSend.message_received"; @Override public void onReceive(Context context, Intent intent) { if (MESSAGE_RECEIVED.equals(intent.getAction())) { Long entryId; Bundle extras = intent.getExtras(); entryId = extras != null ? extras.getLong(MultiSmsSender.PARAM_ENTRY_ID): null; DeliveryDbAdapter mDbHelper = new DeliveryDbAdapter(context); mDbHelper.open(); mDbHelper.setEntryDelivered(entryId); mDbHelper.close(); } } }