Names not displayed on Retrieving SMS details?
<p>I am using 2.1 platform I can retrieve the SMS details by using the below code.But the number and the SMS Body is only displayed, Name hasn't come yet, what can I do to retrieve the Name also ?</p>

<p><strong>code</strong></p>

<pre><code>public class SMSActivity extends Activity {

    ListView lview;
    String Body  = "" ; 
    ArrayList&lt;String&gt; smslist=new ArrayList&lt;String&gt;();
    ArrayAdapter&lt;String&gt; itemAdapter;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.main);
    lview =(ListView)findViewById(R.id.lv);
    itemAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1,smslist);
    lview.setAdapter(itemAdapter);

    ContentResolver cr = getContentResolver();
    Cursor c = getContentResolver().query(Uri.parse("content://sms/inbox"), null, null, null, null);
    while(c.moveToNext()){

    Number = c.getString(c.getColumnIndexOrThrow("address"));

   Body = c.getString(c.getColumnIndexOrThrow("body")).toString();

   smslist.add( Number + ":" +"\n"+ Body);
    }
    itemAdapter.notifyDataSetChanged();

    c.close();
}
} 
</code></pre>

<p>How to solve this problem ?</p>
