¡@

Home 

2014/10/16 ¤W¤È 08:21:26

android Programming Glossary: phoneidx

Getting Number from Contacts Picker

http://stackoverflow.com/questions/6155612/getting-number-from-contacts-picker

R.id.phoneNumberInput Cursor cursor null String phoneNumber List String allNumbers new ArrayList String int phoneIdx 0 try Uri result data.getData String id result.getLastPathSegment cursor getContentResolver .query Phone.CONTENT_URI.. cursor getContentResolver .query Phone.CONTENT_URI null Phone.CONTACT_ID new String id null phoneIdx cursor.getColumnIndex Phone.DATA if cursor.moveToFirst while cursor.isAfterLast false phoneNumber cursor.getString phoneIdx.. cursor.getColumnIndex Phone.DATA if cursor.moveToFirst while cursor.isAfterLast false phoneNumber cursor.getString phoneIdx allNumbers.add phoneNumber cursor.moveToNext else no results actions catch Exception e error actions finally if..

How can I choose a phone number with Android's contacts dialog

http://stackoverflow.com/questions/8612531/how-can-i-choose-a-phone-number-with-androids-contacts-dialog

R.id.phoneNumberInput Cursor cursor null String phoneNumber List String allNumbers new ArrayList String int phoneIdx 0 try Uri result data.getData String id result.getLastPathSegment cursor getContentResolver .query Phone.CONTENT_URI.. cursor getContentResolver .query Phone.CONTENT_URI null Phone.CONTACT_ID new String id null phoneIdx cursor.getColumnIndex Phone.DATA if cursor.moveToFirst while cursor.isAfterLast false phoneNumber cursor.getString phoneIdx.. cursor.getColumnIndex Phone.DATA if cursor.moveToFirst while cursor.isAfterLast false phoneNumber cursor.getString phoneIdx allNumbers.add phoneNumber cursor.moveToNext else no results actions catch Exception e error actions finally if..