BroadcastReceiver not responding

view story

http://stackoverflow.com – I have a receiver that is called whenever an SMS is received public class SMSReceiver extends BroadcastReceiver { private SharedPreferences prefs; private String prefName = "MyPref"; private static final String NUMBER_KEY = "number"; @Override public void onReceive(Context context, Intent intent) { //---get the SMS message passed in--- Bundle bundle = intent.getExtras(); SmsMessage[] msgs = null; String str = ""; String Sender = null; if (bundle != null) { //---retrieve the SMS message received--- Object[] pdus = (Object[]) bundle.get("pdus"); (HowTos)