title: get android contact phone number list
body: <p>I am new to android.When i try to get contact names its working fine but i want to get numbers only, but i am not able to do so. My code is:- </p>
  
  <pre><code>package com.example.sqllitecontactlist;
  import android.app.Activity;
  import android.database.Cursor;
  import android.os.Bundle;
  import android.provider.ContactsContract;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ListView;
  import android.widget.SimpleCursorAdapter;
  import android.widget.TextView;
  import android.widget.AdapterView.OnItemClickListener;
  
  public class PhoneBookActivity extends Activity {
  
  //Android listview object
  ListView listViewPhoneBook;
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
    setContentView(R.layout.phone_book);
  
     //get the ListView Reference from xml file
    listViewPhoneBook=(ListView)findViewById(R.id.listPhoneBook);
    String[] arrayColumns = new String[]{ ContactsContract.CommonDataKinds.Phone.NUMBER};
  
      // arrayViewID is the id of the view it will map to here textViewPhone only 
    int[] arrayViewID = new int[]{R.id.textViewNumber};
  
   Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,        arrayColumns, null, null, null);
  
  SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.each_contact,    cursor, arrayColumns, arrayViewID);
   listViewPhoneBook.setAdapter(adapter); }}
  </code></pre>
  
  <p>When i execute this it says  "java.lang.IllegalArgumentException: Invalid column data1". i have googled it a lot and applied some solution but failed. Please help me out</p>