What I am trying to do is that the numbers to which my application sends messages to, are passed to the BraodcastReceiver...but so far either I am getting null or BroadcastR
You would send a broadcast like so:
Intent intent = new Intent(action);
intent.putExtra("phN", phoneNo);
sendBroadcast(intent);
The action parameter is a String that correlates to the action you registered the BroadcastReceiver with. So if you registered your receiver like so:
MyBroadcastReceiver receiver = new MyBroadcastReceiver();
registerReceiver( receiver, new IntentFilter( "com.myapp.myaction" ) );
then action would be "com.myapp.myaction"