Issue with content provider
<pre><code>String[] columns = new String[] {People.NAME,People.NUMBER};
Uri mContacts = People.CONTENT_URI;
Cursor mCur = managedQuery(mContacts,columns,null,null,null);
if (mCur.moveToFirst()) {
    String name = null;
    String phoneNo = null;
    do {
        name = mCur.getString(mCur.getColumnIndex(People.NAME));
        phoneNo = mCur.getString(mCur.getColumnIndex(People.NUMBER));
        Toast.makeText(NativeContentProvider.this, name + " " + phoneNo, Toast.LENGTH_SHORT).show();
    } while (mCur.moveToNext());
}
</code></pre>

<p>I used this piece of code to do one application to show contact name and number using <code>contentprovider</code>. The program is running without any errors. But it shows only name and not number.</p>
