i want to final value anwser in two dimentional array not single dimentional
<p>i want this code result in 2 dimentional string how i get this? this code return final str value in  single array i want to use this value in twon dimentional format  can anyone help me how to do this??
i want this line l.putExtra("msg",str);     msg value in 2 dimentional string</p>

<pre><code>    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 += "SMS from " + msgs[i].getOriginatingAddress();                     
            str += " :";
            str += msgs[i].getMessageBody().toString();
            str += "\n";     
            if(str.contains("00"));
            {


                 Intent l = new Intent(context,AgAppMenu.class);
                 l.putExtra("msg",str);
                 l.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);   
                 context.startActivity(l);
</code></pre>
