Why content provider returns null values for phone number?
<p>I want to read contact numbers from my android phone. I used content provider for that, but i am getting null values. Here is my code :</p>

<pre><code>@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        txt = (TextView)findViewById(R.id.txt);
        String column[] = new String[]{People.NAME,People.NUMBER};
        Cursor cur = this.managedQuery(People.CONTENT_URI, column, null, null, null);
        if(cur.moveToFirst())
        {
            String name;
            String number;
            do
            {
                number = cur.getString(cur.getColumnIndex((People.NUMBER)));
                str+="\n"+number;
            }
            while(cur.moveToNext());
            txt.setText(str);
        }
    }
</code></pre>

<p>Thanks in advance.</p>
