title: passing data from an activity to BROADCAST receiver
body: <p>i want to pass some data from a edittextpreference to my broadcastreciever that is recieving SMS.... how can i do that...the following code represents what i have been doing but that does not works....</p>
  
  <pre><code>public class AppPreferences extends PreferenceActivity{
  
      SharedPreferences prefs;
      @Override
     public void onCreate(Bundle b)
     {
        super.onCreate(b);
         addPreferencesFromResource(R.xml.prefs);
  
         prefs= PreferenceManager.getDefaultSharedPreferences(this);
  
        Log.v("",  prefs.getString("Spam", null));
        Bundle ba = new Bundle();
        ba.putString("spam",prefs.getString("Spam",null));
     }
  
  }
  </code></pre>
  
  <p>while getting it as </p>
  
  <pre><code>                spam=bundle.getString("spam");
  Log.v("Bundle", spam);
  </code></pre>
  
  <p>does not works...how can i perform that...</p>
  
  <p>simple i want to get text from the edittextpreference that have been entered by the user and then i want to get the text in the BoradCast Receiver to match some certain words in the incoming messages....</p>