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. 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
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
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
To assign a ringtone to a contact group, follow these steps:1. Click contacts on the standby screen ].2. Click group ].3. Select a group for which you want to set the ringtone. [colleague] is used as an example.4. Click menu key in the lower left corner of the phone and select edit ].5. Click group ringtones ].6. Select a desired ringtone and click OK.* Take I959 as an example. The actual menu on your mobil
The source code of Google, the contact person in the mobile phone, has been shared by contentprovider. The bottom layer of contentprovider is implemented by SQLite database, so all its operations on data are implemented by SQL, only URI is provided at the upper layer.
You can create contentprovider in two ways:
1. Create your own contentprovider
2. Add your data to an existing contentprovider, provided that
This article describes how the system can match contacts in a phone book after receiving incoming calls. The analysis starts with the code that is related to this article from another article (based on Android6.0 's RIL Framework Layer module analysis).
Packages/service/***/call.java public void Handlecreateconnectionsuccess (Callidmapper idmapper, ParcelableConnect
Ion connection) {SetHandle (Connection.gethandle (), connection.gethandleprese
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.