[android] 연락처 이름과 전화번호로 list 만들기
연락처 이름과 전화번호로 list 만들기 Cursor cursor = managedQuery( Phone.CONTENT_URI, new String[]{ Phone._ID, Phone.DISPLAY_NAME, Phone.DATA1 }, null, null, Phone.DISPLAY_NAME + " asc" ); SimpleCursorAdapter cursorAdapter = new SimpleCursorAdapter( this, android.R.layout.simple_ist_item_2, cursor, new String[]{ Phone.DISPLAY_NAME, Phone.DATA1 }, new int[]{ android.R.id.text1, android.R.id.text2 } ); ListView..
2012. 11. 1.