We have a headache in the absence of app development: a button to change the color of the past, or it is very difficult to see, eventually only temporarily abandoned, wasting a lot of development time and energy.Development specification Chapter see Android Development How to make their app UI beautiful, generous (specification article one)First, the app commonly used with referenceBottom background color, content background color, two colors similar,
By he minggui (http://blog.csdn.net/hmg25) reprint please indicate the source
Previously, I saw the special effects of simulating book pages like iBook on iPad. on Android, there were also apps such as Laputa and ireader to implement this special effect, there seems to be no ready-made examples for searching on the Internet, so I implemented one by myself, and now I will record the implementation process.
Android obtains the contact information in the address book. The Code is as follows:
/*** Get the contact information, including the name, number, and profile * @ return */private arraylist
Here: phonecontactor is a custom class for storing contact information. Do not forget to add the permission:
Android queries the contact name based on the phone number and exports all contacts in the address book. method 1 /*
2 * obtain the contact name based on the phone number
3 */
4 public static string getcontactnamebyphonenumber (context, string address ){
5 string [] projection = {contactscontract. phonelookup. display_name,
6 contactscontract. commondatakinds. Phone. Number };
7
8 // Add yourself to mspeers
/com.android.providers.contacts/databases directory is found, where the contact2.db file is the SQLite data file that holds the contact information. The original compressed file can then be discarded.
Use the SQLite tool, such as DB Browser for Sqlite, to open the data file and explore the Raw_contact and data tables.
Build the SQL statement select RAW_CONTACT_ID,DATA1,DATA2,DATA3,DATA4 from data to query, copy the query results to the Excel document. The database file can then be discar
Deep understanding Java Virtual machine 2 Java memory area and memory overflow exception 3 garbage collector and memory allocation policy 4 Virtual machine performance monitoring and troubleshooting tools 5 tuning case Study and actual combat 6 class file Structure 7 Virtual machine class loading mechanism 8 virtual machine bytecode execution engine 9 Class loading and execution subsystem case and actual combat 10 early compilation period optimization 11 Advanced runtime op
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.