public class ContentProvider extends Activity {

ListView listView;
private static String[] projections = new String[] {Data._ID,Data.DISPLAY_NAME};

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.contentprovider);

ContentResolver contentResolver = getContentResolver();
Cursor cursor = contentResolver.query(ContactsContract.Contacts.CONTENT_URI,
projections, null, null, null);

startManagingCursor(cursor);

listView = (ListView)findViewById(R.id.contentListView);

ListAdapter adapter = new SimpleCursorAdapter(this, 
android.R.layout.simple_list_item_2, cursor, 
new String[]{ Data._ID, Phone.DISPLAY_NAME }, 
new int[]{android.R.id.text1, android.R.id.text2 });
listView.setAdapter(adapter);  이 부분에서 NullPointerException 이 뜨는데.. adpater 설정 부분에서 문제가 있는건가요??
}
}