how to sent parameter to another activity when recieve sms
<p>how to sent parameter to another activity after recive sms i try but its show error</p>

<p>The method putExtra(String, boolean) in the type Intent is not applicable for the arguments (Bundle)</p>

<p>below os my code 
public class SmsReceiver extends BroadcastReceiver {</p>

<pre><code>@Override



public void onReceive(Context context, Intent intent) 
{
    //---get the SMS message passed in---
    Bundle bundle = intent.getExtras();        
    SmsMessage[] msgs = null;
    String str = "";  


if (bundle != null)
    {
        //---retrieve the SMS message received---
        Object[] pdus = (Object[]) bundle.get("pdus");
        msgs = new SmsMessage[pdus.length];            
        for (int i=0; i&lt;msgs.length; i++){
            msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);                


            str += msgs[i].getMessageBody().toString();
    }

        Intent l = new Intent(context,AgAppMenu.class);
            Bundle bundle2 = new Bundle();
            bundle.putString("msg", str);

        l.putExtra(bundle);



            l.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(l);
            Toast.makeText(context, "SucessFull Login", Toast.LENGTH_SHORT).show();
</code></pre>
