¡@

Home 

2014/10/16 ¤W¤È 08:11:25

android Programming Glossary: contact

SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview

for loader_id id CursorLoader cl if id 1 child cursor Uri contactsUri ContactsContract.Data.CONTENT_URI String selection ContactsContract.CommonDataKinds.GroupMembership.DISPLAY_NAME.. String String.valueOf id cl new CursorLoader getActivity contactsUri CONTACTS_PROJECTION selection selectionArgs sortOrder else.. else mAdapter.setGroupCursor null Populate the contact list private void populateContactList Set up our adapter mAdapter..

How to read contacts on Android 2.0

http://stackoverflow.com/questions/1721279/how-to-read-contacts-on-android-2-0

to read contacts on Android 2.0 I'm working on Android 2.0 and am trying to.. on Android 2.0 and am trying to receive a list of all contacts. Since android.provider.Contacts.People is deprecated I have.. proper example of how to use it ex retrieve a list of all contacts on the phonebook . Anyone knows where to find such an example..

How to get the Android device's primary e-mail address

http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address

up front to the user when dealing with account profile and contact data. If you misuse a user's email address or other personal.. this Retrieve data rows for the device user's 'profile' contact. Uri.withAppendedPath ContactsContract.Profile.CONTENT_URI..

How to call SOAP web service in Android

http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-in-android

classes. I just need the easiest most elegant way to contact a WSDL based web service from an Android based phone. java..

How to add calendar events in Android?

http://stackoverflow.com/questions/3721963/how-to-add-calendar-events-in-android

specific calendar applications you wish to integrate with contact their developers and determine if they offer an API. So for..

How to add new contacts in android

http://stackoverflow.com/questions/4744187/how-to-add-new-contacts-in-android

to add new contacts in android I have written following code to add new contact.. in android I have written following code to add new contact in android phone book it is working but when i open contact.. in android phone book it is working but when i open contact menu i cannot see the new contact added. Can anyone help me..

Find an external SD card location

http://stackoverflow.com/questions/5694933/find-an-external-sd-card-location

be on board flash and also has an SD card you will need to contact that manufacturer to determine whether or not you can use the..

Failed to allocate memory: 8

http://stackoverflow.com/questions/7222906/failed-to-allocate-memory-8

the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. and the..

How to call Android contacts list?

http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list

to call Android contacts list I'm making an Android app and need to call the phone's.. I'm making an Android app and need to call the phone's contact list. I need to call the contacts list function pick a contact.. need to call the phone's contact list. I need to call the contacts list function pick a contact then return to my app with the..

Contact Bubble EditText

http://stackoverflow.com/questions/10812316/contact-bubble-edittext

Bubble EditText I am trying to create contact bubbles in the.. sb new SpannableStringBuilder TextView tv createContactTextView contactName BitmapDrawable bd BitmapDrawable convertViewToDrawable.. to_input.setText sb public TextView createContactTextView String text creating textview dynamically TextView tv..

how to listen for changes in Contact Database

http://stackoverflow.com/questions/1401280/how-to-listen-for-changes-in-contact-database

to listen for changes in Contact Database I am trying to listen for any change in the contact.. true contentObserver But When I use 'EditContactActivity' to change the contact database My onChange function.. import android.os.Bundle import android.provider.Contacts.People public class TestContentObserver extends Activity @Override..

Fixing Eclipse after ADT breaks

http://stackoverflow.com/questions/16603834/fixing-eclipse-after-adt-breaks

the updates to install and then crucially uncheck Contact all update sites during install to find required software ...

How to get the Android device's primary e-mail address

http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address

More on using AccountManager can be found at the Contact Manager sample code in the SDK. Method B. Use ContactsContract.Profile.. the Contact Manager sample code in the SDK. Method B. Use ContactsContract.Profile API level 14 As of Android 4.0 Ice Cream Sandwich.. device user's 'profile' contact. Uri.withAppendedPath ContactsContract.Profile.CONTENT_URI ContactsContract.Contacts.Data.CONTENT_DIRECTORY..

How to obtain all details of a contact in Android

http://stackoverflow.com/questions/2205246/how-to-obtain-all-details-of-a-contact-in-android

classes this might help. import android.provider.ContactsContract.Contacts import android.database.Cursor Form an array.. this might help. import android.provider.ContactsContract.Contacts import android.database.Cursor Form an array specifying which.. to return you can add more. String projection new String ContactsContract.Contacts.DISPLAY_NAME ContactsContract.CommonDataKinds.Phone..

How to get the mobile number of current sim card in real device?

http://stackoverflow.com/questions/2206596/how-to-get-the-mobile-number-of-current-sim-card-in-real-device

real device I have to make an application which shows the Contact no of the SIM card that is being used in the cell. For that..

How do I load a contact Photo?

http://stackoverflow.com/questions/2383580/how-do-i-load-a-contact-photo

up empty. Does anyone have an example of querying for a Contact then loading the Photo So given a contactUri which comes from.. using startActivityForResult new Intent Intent.ACTION_PICK ContactsContract.CommonDataKinds.Phone.CONTENT_URI PICK_CONTACT_REQUEST.. is content com.android.contacts data 1557 The loadContact .. works fine. However when I call the getPhoto ... method I..

Retrieve Contact Phone Number From URI in Android

http://stackoverflow.com/questions/3370628/retrieve-contact-phone-number-from-uri-in-android

Contact Phone Number From URI in Android I am trying to get the contact's.. public void run Intent i new Intent Intent.ACTION_PICK ContactsContract.CommonDataKinds.Phone.CONTENT_URI startActivityForResult.. phone number from the ID with the given type in this case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE public static String..

Getting a Photo from a Contact

http://stackoverflow.com/questions/3509178/getting-a-photo-from-a-contact

a Photo from a Contact Alright I'm just trying to learn about using Contact information.. a Contact Alright I'm just trying to learn about using Contact information but I'm a bit stuck. I would like to be able to.. R.id.contacts_list Gets the URI of the db Uri uri ContactsContract.Contacts.CONTENT_URI What to grab from the db String..

Android error - close() was never explicitly called on database

http://stackoverflow.com/questions/4464892/android-error-close-was-never-explicitly-called-on-database

getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration.. callList.add Contact Number contactNumber nContact Name contactName nDuration duration nDate dateFormat.format.. getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration..

How to add new contacts in android

http://stackoverflow.com/questions/4744187/how-to-add-new-contacts-in-android

android.content.ContentValues import android.provider.ContactsContract import android.widget.TextView import android.widget.Toast.. import android.widget.Toast public class AddContacts extends Activity Called when the activity is first created... ContentValues cv new ContentValues cv.put ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME New Name cv.put..

Insertion of thousands of contact entries using applyBatch is slow

http://stackoverflow.com/questions/5596354/insertion-of-thousands-of-contact-entries-using-applybatch-is-slow

developing an application where I need to insert lots of Contact entries. At the current time approx 600 contacts with a total.. today is that I have created a custom Account to hold the Contacts so the user can select to see the contact in the Contacts view... Contacts so the user can select to see the contact in the Contacts view. But the insertion of the contacts is painfully slow...

Getting Number from Contacts Picker

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

Number from Contacts Picker I am trying to get a contacts name and phone number.. phone number after a user has picked a contact from the Contact Picker. I am attempting to make my application work for SDK.. I am having problems getting the newer API that uses ContactsContract to work. I can get a contacts name but the number it..

How to call Android contacts list?

http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list

import android.os.Bundle import android.provider.Contacts.People import android.view.View import android.widget.ListAdapter.. import android.widget.TextView public class Contacts extends ListActivity private ListAdapter mAdapter public TextView.. private ListAdapter mAdapter public TextView pbContact public static String PBCONTACT public static final int ACTIVITY_EDIT..

checkbox in listview for multiple selection of contacts

http://stackoverflow.com/questions/9834723/checkbox-in-listview-for-multiple-selection-of-contacts

checkbox its get automatically selected... public class Contactlist_selfActivity extends ListActivity Called when the activity.. mProgressDialog null private contactAdapter mContactAdapter null private Runnable mViewcontacts null private SparseBooleanArray.. mViewcontacts null private SparseBooleanArray mSelectedContacts new SparseBooleanArray private ArrayList contact items @Override..

SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview

Loader needs to be created. Log.d DEBUG_TAG onCreateLoader for loader_id id CursorLoader cl if id 1 child cursor Uri contactsUri ContactsContract.Data.CONTENT_URI String selection ContactsContract.CommonDataKinds.GroupMembership.DISPLAY_NAME NOTNULL.. COLLATE LOCALIZED ASC String selectionArgs new String String.valueOf id cl new CursorLoader getActivity contactsUri CONTACTS_PROJECTION selection selectionArgs sortOrder else group cursor Uri groupsUri ContactsContract.Groups.CONTENT_SUMMARY_URI.. e Log.w TAG Adapter expired try again on the next query e.getMessage else mAdapter.setGroupCursor null Populate the contact list private void populateContactList Set up our adapter mAdapter new GroupsAdapter getActivity this android.R.layout.simple_expandable_list_item_1..

How to read contacts on Android 2.0

http://stackoverflow.com/questions/1721279/how-to-read-contacts-on-android-2-0

to read contacts on Android 2.0 I'm working on Android 2.0 and am trying to receive a list of all contacts. Since android.provider.Contacts.People.. to read contacts on Android 2.0 I'm working on Android 2.0 and am trying to receive a list of all contacts. Since android.provider.Contacts.People is deprecated I have to use android.provider.ContactsContract But I can't find.. to use android.provider.ContactsContract But I can't find a proper example of how to use it ex retrieve a list of all contacts on the phonebook . Anyone knows where to find such an example android contacts android 2.0 share improve this question..

How to get the Android device's primary e-mail address

http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address

do this shown below. As a friendly warning be careful and up front to the user when dealing with account profile and contact data. If you misuse a user's email address or other personal information bad things can happen. Method A. Use AccountManager.. int id Bundle arguments return new CursorLoader this Retrieve data rows for the device user's 'profile' contact. Uri.withAppendedPath ContactsContract.Profile.CONTENT_URI ContactsContract.Contacts.Data.CONTENT_DIRECTORY ProfileQuery.PROJECTION..

How to call SOAP web service in Android

http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-in-android

. I would like to have IDE support for generating the plumbing classes. I just need the easiest most elegant way to contact a WSDL based web service from an Android based phone. java android web services soap wsdl share improve this question..

How to add calendar events in Android?

http://stackoverflow.com/questions/3721963/how-to-add-calendar-events-in-android

Some calendar apps don't even offer an API. If there are specific calendar applications you wish to integrate with contact their developers and determine if they offer an API. So for example the Calendar application from the Android open source..

How to add new contacts in android

http://stackoverflow.com/questions/4744187/how-to-add-new-contacts-in-android

to add new contacts in android I have written following code to add new contact in android phone book it is working but when i open contact.. to add new contacts in android I have written following code to add new contact in android phone book it is working but when i open contact menu i cannot see the new contact added. Can anyone help me.. in android I have written following code to add new contact in android phone book it is working but when i open contact menu i cannot see the new contact added. Can anyone help me to find out what's wrong here import android.app.Activity import..

Find an external SD card location

http://stackoverflow.com/questions/5694933/find-an-external-sd-card-location

a device manufacturer has elected to have external storage be on board flash and also has an SD card you will need to contact that manufacturer to determine whether or not you can use the SD card not guaranteed and what the rules are for using it..

Failed to allocate memory: 8

http://stackoverflow.com/questions/7222906/failed-to-allocate-memory-8

that Failed to allocate memory 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. and the Emulator doesn't want to start. This is for the first time..

How to call Android contacts list?

http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list

to call Android contacts list I'm making an Android app and need to call the phone's contact list. I need to call the contacts list function pick.. to call Android contacts list I'm making an Android app and need to call the phone's contact list. I need to call the contacts list function pick a contact then return to my app with the contact's name. Here's the.. to call Android contacts list I'm making an Android app and need to call the phone's contact list. I need to call the contacts list function pick a contact then return to my app with the contact's name. Here's the code I got on the internet but it..

Contact Bubble EditText

http://stackoverflow.com/questions/10812316/contact-bubble-edittext

Bubble EditText I am trying to create contact bubbles in the MultiAutoCompleteTextView similiar to how it is implemented.. for all the help. So here is how i did it final SpannableStringBuilder sb new SpannableStringBuilder TextView tv createContactTextView contactName BitmapDrawable bd BitmapDrawable convertViewToDrawable tv bd.setBounds 0 0 bd.getIntrinsicWidth bd.getIntrinsicHeight.. contactName.length 1 sb.length 1 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE to_input.setText sb public TextView createContactTextView String text creating textview dynamically TextView tv new TextView this tv.setText text tv.setTextSize 20 tv.setBackgroundResource..

how to listen for changes in Contact Database

http://stackoverflow.com/questions/1401280/how-to-listen-for-changes-in-contact-database

to listen for changes in Contact Database I am trying to listen for any change in the contact database. So I create my contentObserver which is a child.. context.getContentResolver .registerContentObserver People.CONTENT_URI true contentObserver But When I use 'EditContactActivity' to change the contact database My onChange function does not get called. android share improve this question.. import android.app.Activity import android.database.ContentObserver import android.os.Bundle import android.provider.Contacts.People public class TestContentObserver extends Activity @Override public void onCreate Bundle savedInstanceState super.onCreate..

Fixing Eclipse after ADT breaks

http://stackoverflow.com/questions/16603834/fixing-eclipse-after-adt-breaks

How to get the Android device's primary e-mail address

http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address

uses permission android name android.permission.GET_ACCOUNTS More on using AccountManager can be found at the Contact Manager sample code in the SDK. Method B. Use ContactsContract.Profile API level 14 As of Android 4.0 Ice Cream Sandwich.. More on using AccountManager can be found at the Contact Manager sample code in the SDK. Method B. Use ContactsContract.Profile API level 14 As of Android 4.0 Ice Cream Sandwich you can get the user's email addresses by accessing their.. return new CursorLoader this Retrieve data rows for the device user's 'profile' contact. Uri.withAppendedPath ContactsContract.Profile.CONTENT_URI ContactsContract.Contacts.Data.CONTENT_DIRECTORY ProfileQuery.PROJECTION Select only email..

How to obtain all details of a contact in Android

http://stackoverflow.com/questions/2205246/how-to-obtain-all-details-of-a-contact-in-android

of the tutorial on Content Providers since it referenced deprecated classes this might help. import android.provider.ContactsContract.Contacts import android.database.Cursor Form an array specifying which columns to return you can add more. String.. on Content Providers since it referenced deprecated classes this might help. import android.provider.ContactsContract.Contacts import android.database.Cursor Form an array specifying which columns to return you can add more. String projection new.. Form an array specifying which columns to return you can add more. String projection new String ContactsContract.Contacts.DISPLAY_NAME ContactsContract.CommonDataKinds.Phone ContactsContract.CommonDataKinds.Email Uri contacts..

How to get the mobile number of current sim card in real device?

http://stackoverflow.com/questions/2206596/how-to-get-the-mobile-number-of-current-sim-card-in-real-device

to get the mobile number of current sim card in real device I have to make an application which shows the Contact no of the SIM card that is being used in the cell. For that I need to use TelephonyManager class. Can i get details on its..

How do I load a contact Photo?

http://stackoverflow.com/questions/2383580/how-do-i-load-a-contact-photo

in Android. I've googled for an answer but so far have come up empty. Does anyone have an example of querying for a Contact then loading the Photo So given a contactUri which comes from an Activity result called using startActivityForResult new.. a contactUri which comes from an Activity result called using startActivityForResult new Intent Intent.ACTION_PICK ContactsContract.CommonDataKinds.Phone.CONTENT_URI PICK_CONTACT_REQUEST is content com.android.contacts data 1557 The loadContact.. PICK_CONTACT_REQUEST is content com.android.contacts data 1557 The loadContact .. works fine. However when I call the getPhoto ... method I get a null value for the photo InputStream. It is also confusing..

Retrieve Contact Phone Number From URI in Android

http://stackoverflow.com/questions/3370628/retrieve-contact-phone-number-from-uri-in-android

Contact Phone Number From URI in Android I am trying to get the contact's phone number after I have retrieved their ID number from.. My code private Runnable getSMSRunnable return new Runnable public void run Intent i new Intent Intent.ACTION_PICK ContactsContract.CommonDataKinds.Phone.CONTENT_URI startActivityForResult i CONTACTS_REQUEST_CODE Returns the Log output content.. the ID 6802 into a method which is designed to return the phone number from the ID with the given type in this case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE public static String getContactPhoneNumberByPhoneType Context context long contactId..

Getting a Photo from a Contact

http://stackoverflow.com/questions/3509178/getting-a-photo-from-a-contact

a Photo from a Contact Alright I'm just trying to learn about using Contact information but I'm a bit stuck. I would like to be able to display.. a Photo from a Contact Alright I'm just trying to learn about using Contact information but I'm a bit stuck. I would like to be able to display a picture for the contact. Using the following code.. in contact_entry ListView contacts_list ListView findViewById R.id.contacts_list Gets the URI of the db Uri uri ContactsContract.Contacts.CONTENT_URI What to grab from the db String projection new String ContactsContract.Contacts._ID ContactsContract.Contacts.DISPLAY_NAME..

Android error - close() was never explicitly called on database

http://stackoverflow.com/questions/4464892/android-error-close-was-never-explicitly-called-on-database

db.insert CallDataHelper.TABLE_NAME null values Toast.makeText getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration nDate dateFormat.format date setListAdapter new ArrayAdapter.. null values Toast.makeText getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration nDate dateFormat.format date setListAdapter new ArrayAdapter String this R.layout.listitem.. db.insert CallDataHelper.TABLE_NAME null values Toast.makeText getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration nDate dateFormat.format date setListAdapter new ArrayAdapter..

How to add new contacts in android

http://stackoverflow.com/questions/4744187/how-to-add-new-contacts-in-android

android.os.Bundle import android.content.ContentResolver import android.content.ContentValues import android.provider.ContactsContract import android.widget.TextView import android.widget.Toast public class AddContacts extends Activity Called when.. import android.provider.ContactsContract import android.widget.TextView import android.widget.Toast public class AddContacts extends Activity Called when the activity is first created. @Override public void onCreate Bundle savedInstanceState super.onCreate.. R.layout.main try ContentResolver cr this.getContentResolver ContentValues cv new ContentValues cv.put ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME New Name cv.put ContactsContract.CommonDataKinds.Phone.NUMBER 1234567890 cv.put..

Insertion of thousands of contact entries using applyBatch is slow

http://stackoverflow.com/questions/5596354/insertion-of-thousands-of-contact-entries-using-applybatch-is-slow

of thousands of contact entries using applyBatch is slow I'm developing an application where I need to insert lots of Contact entries. At the current time approx 600 contacts with a total of 6000 phone numbers. The biggest contact has 1800 phone.. The biggest contact has 1800 phone numbers. Status as of today is that I have created a custom Account to hold the Contacts so the user can select to see the contact in the Contacts view. But the insertion of the contacts is painfully slow. I.. of today is that I have created a custom Account to hold the Contacts so the user can select to see the contact in the Contacts view. But the insertion of the contacts is painfully slow. I insert the contacts using ContentResolver.applyBatch. I've..

Getting Number from Contacts Picker

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

Number from Contacts Picker I am trying to get a contacts name and phone number after a user has picked a contact from the Contact Picker... from Contacts Picker I am trying to get a contacts name and phone number after a user has picked a contact from the Contact Picker. I am attempting to make my application work for SDK v3 and up so I created an abstract class that would call only.. the right API and I also have the API for SDK v3 4 working. I am having problems getting the newer API that uses ContactsContract to work. I can get a contacts name but the number it retrieves is always the number for the contact ID BEFORE it..

How to call Android contacts list?

http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list

import android.content.Intent import android.database.Cursor import android.os.Bundle import android.provider.Contacts.People import android.view.View import android.widget.ListAdapter import android.widget.ListView import android.widget.SimpleCursorAdapter.. import android.widget.ListView import android.widget.SimpleCursorAdapter import android.widget.TextView public class Contacts extends ListActivity private ListAdapter mAdapter public TextView pbContact public static String PBCONTACT public static.. android.widget.TextView public class Contacts extends ListActivity private ListAdapter mAdapter public TextView pbContact public static String PBCONTACT public static final int ACTIVITY_EDIT 1 private static final int ACTIVITY_CREATE 0 Called..

checkbox in listview for multiple selection of contacts

http://stackoverflow.com/questions/9834723/checkbox-in-listview-for-multiple-selection-of-contacts

deselect it when I scroll down then go back to that deselected checkbox its get automatically selected... public class Contactlist_selfActivity extends ListActivity Called when the activity is first created. private ArrayList contact contact_list.. private ArrayList contact contact_list null private ProgressDialog mProgressDialog null private contactAdapter mContactAdapter null private Runnable mViewcontacts null private SparseBooleanArray mSelectedContacts new SparseBooleanArray private.. private contactAdapter mContactAdapter null private Runnable mViewcontacts null private SparseBooleanArray mSelectedContacts new SparseBooleanArray private ArrayList contact items @Override public void onCreate Bundle savedInstanceState super.onCreate..

Secondary Activity goes the Main Activity before all the data can be input

http://stackoverflow.com/questions/12596639/secondary-activity-goes-the-main-activity-before-all-the-data-can-be-input

error display.setContentView text display.show finally if didItWork Dialog display new Dialog this display.setTitle CONTACT SAVED TextView text new TextView this text.setText Sucess display.setContentView text display.show startActivity new.. text new TextView this text.setText Sucess display.setContentView text display.show startActivity new Intent CONTACTS.class LOGCAT 09 26 02 58 35.518 E WindowManager 1913 Activity com.example.contactlist.AddNewContact has leaked window..

Setting contact custom ringtone, how?

http://stackoverflow.com/questions/14230444/setting-contact-custom-ringtone-how

Cursor localCursor managedQuery contactData PROJECTION null null null localCursor.move 120 CONTACT ID NUMBER String str1 localCursor.getString localCursor.getColumnIndexOrThrow _id String str2 localCursor.getString localCursor.getColumnIndexOrThrow.. str1 ContentValues localContentValues new ContentValues localContentValues.put ContactsContract.Data.RAW_CONTACT_ID contactId localContentValues.put ContactsContract.Data.CUSTOM_RINGTONE f.getAbsolutePath Adventure.ogg getContentResolver..

Launching external application from my app

http://stackoverflow.com/questions/1977243/launching-external-application-from-my-app

how I'd go about doing this. I've tried this Intent intent new Intent intent.setAction Contacts.Intents.SHOW_OR_CREATE_CONTACT startActivity intent But this seems to throw an error and force close my application. I also tried adding action android.. throw an error and force close my application. I also tried adding action android name Contacts.Intents.SHOW_OR_CREATE_CONTACT in the AndroidManifest file but to no avail. A look at Logcat shows that it's an IOexception no such file or directory ...

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

a phone number. Is there any simple way to get what I want Here is the old API code I'm using static public final int CONTACT 0 ... Intent intent new Intent Intent.ACTION_PICK Contacts.Phones.CONTENT_URI startActivityForResult intent CONTACT ..... CONTACT 0 ... Intent intent new Intent Intent.ACTION_PICK Contacts.Phones.CONTENT_URI startActivityForResult intent CONTACT ... public void onActivityResult int requestCode int resultCode Intent intent if resultCode Activity.RESULT_OK requestCode.. public void onActivityResult int requestCode int resultCode Intent intent if resultCode Activity.RESULT_OK requestCode CONTACT return Cursor c managedQuery intent.getData null null null null if c.moveToFirst String phone c.getString c.getColumnIndexOrThrow..