READ_CONTACTS code for AndroidManifest. xml:
After the above files are compiled, the application can run correctly on the Android2.1 simulator.
What if the app runs on android1.6? 1.6 does not have the ContactsContract class system, so an error will be reported. Note that the ContactContract class is added in API Level 5, which is not supported in earlier Android versions.
On Android 1.6 (API Level 4), The fillMaps () method is implemented as follows:
Private List
Then it can run on 1.6. T
[Java]View Plaincopyprint?
Get the intent in the middle of the image
Ivshowimage = (ImageView) Findviewbyid (r.id.call_log_detail_contact_img);
//Call phone number get avatar URI
Uri urinumber2contacts = URI
. Parse ("content://com.android.contacts/"
+ "data/phones/filter/" + strphonenumber);
Cursor cursorcantacts = sapplication.nowsapplication
. Getcontentresolver (). Query (urinumber2contacts, null, null,
null, null );
if (C
Step 1. Enable BluetoothSlide down the screen curtain with your fingers and click Bluetooth to green.Step 2. Check the contacts to be transferred1. Click contacts on the standby page ].2. Click the menu and click share business card through ].3. Select the contacts you want to send. (If you want to send all emails, check [select all ].)4. Click finish ].5. Click Bluetooth ].Step 3. Search for and transmit Bluetooth devices1. The phone will automatical
New Microsoft. phone. userdata. contacts reports system when accessing contact data. exception information. In fact, this cause may be because your project is upgraded from a Windows Phone 7 project. You only need to go to properties \ wmappmanifest in the project file. add in XMLCode, Declare the required permissions:
The following compatibility statement is
Cool disk How to invite mobile phone contact person to use the following methods:
Cool Disk iphone Platform client
1. In the software running, click the "Settings" icon in the Red box position below.
2. Under the setting interface, click the "free upgrade cool disk space" option in the red box at the bottom of the image below.
3. Click the input box in the red box below to enter
MIUI7 is based on the Android native system and Android ROM,MIUI for Chinese users who are popular with mobile enthusiasts.
We are in the Miui7 interface click "Contact" and then into the Millet phone contact interface, as shown in the following figure
After entering the contact interface, we click on "The me
1 We click "Settings" below the Dial-up interface in the mx4 phone, and there is an "account and contact management" in the setup. (pictured below)
2 Now we click on "Sim Contact" to enter, select the contact you need to import, and then click the "..." symbol. (pictured below)
3 after entering, we
Why do you want to import the SIM card contact to the SD card, there are several reasons for this one is to import SD card can set the contact head and so on, another SIM card storage space is limited to import to the SD card can be stored more contact people.
1. Under the Samsung A7 (2016) standby page, click "Contact
Android saves the email address in the mobile phone email to the contact. The email address is lost.1. Insert a common SIM card into your mobile phone2. log on to the mailbox and add the email address to the SIM card;3. the email address is not added. Only the name or phone number is added.This is the Google Default action. When saved, the security check is perfo
Before doing a little exercise need to get the phone number of contact person, by looking at the relevant information, I try to write a small example, can be successfully obtained.First, you need to get permissions in Androidmanifest.xml
XML layout file
Mainactivity.java
Package com.getcontacts;
Import Android.net.Uri;
Import Android.os.Bundle;
Import android.app.Activity;
1. Set up a contact to actively reject the connection2. The Contact calls3. Cancel the contact's own unsolicited rejection4. The Contact callsError:Phone interface without avatar display, directly display a black screen, and click the Reject button appears the interface of the call process, and the actual background has been hung upChange the Callnotifier.java fi
1. There is a merged contact on the mobile phone 2. Edit the merged contact 3. The mobile phone screen fades slowly and then enters the editing interface.
first, find the editcontactactivity under the contacts source package. java file, and then find the bindeditors () method, as shown below (there are two modifica
Note: Like colleagues, family, good friends of these groups Samsung mobile phone in the factory has been set up for us, if this is the three groups we do not need to create, only need to add contacts to the group. The following is an introduction to adding a new grouping and adding a link.
1. Click on the "Contact" icon on your phone to open it.
Last learned to crawl the picture, this time want to try to crawl business Contact phone, of course, here is purely personal technical learning, crawl after the timely deletion, not used for other illegal purposes, all the consequences at your own risk.First I studied with 114 yellow pages of data.The following four are used in the module, the first 2 need to install, the next 2 is Python comes with.import
1. Click application on the standby page ].2. Click my files ].3. Click sdcard0 ].4. Click DCIM ].5. Select Camera ].6. Find and click the image you want to set.5. Open the image, click menu in the lower left corner, and select set ].6. Click [contact photo ].7. Click the contact you want to set ("test" is used as an example ).Tip: only contacts stored on mobile phones are supported. If your conta
ContentProvider: The Central Archive, as well as an example of getting a contact's phone number. contentproviderThe Android official document describes five Data Storage Methods: sqlite, SharedPreferences, network storage, external storage, and file storage. However, these data cannot be shared, then we will introduce the main character of today: ContentProvider
ContentResolver can operate data in ContentProvider. You can use the getContentResolver ()
1. Click [application] on the page on the mobile phone and then go to the following page.2. Click set ].3. Slide the screen up and click the [contact] option. This will first enter us regardless of other options.4. Click the "import/export contacts" option. You only need to select this section.5. Select your SIM card. Here we use [import from SIM 1 card] as an example.6. Click device. The device i
, conditional value string[] Array (contact_id)
Uri object is Uri.parse ("Content://com.android.contacts/data")
Loops are the same as above
The name corresponds to the type is Vnd.android.cursor.item/name
The corresponding type of telephone is VND.ANDROID.CURSOR.ITEM/PHONE_V2
Need permission, Android.permisssion.READ_CONTACTS
Invokes the Setadapter () method of the ListView object, assigning data to the view, and the parameter is a adapter object
Get adapter object with new Simpleadapter
1. There is a merged contact on the mobile phone.2. Edit the merged contacts.3. The phone screen fades slowly and then enters the editing page.
First, find the EditContactActivity. java file under the contacts source package, and then find the bindEditors () method, as shown below (there are two modifications ):Protected void bindEditors (){...New Thread (new Run
To obtain contacts on mobile phones, Microsoft provides the icontact interface, which can be used to obtain SIM card contacts, which can be achieved through the simreadphonebookentry function. Examples are provided in the SDK. However, you can also read contacts by reading the database.
I remember that I have seen on the Internet the efficiency of using the icontact interface to read contacts and reading databases to get contacts. It seems that reading databases can be much faster.
Mobile
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.