]: = TJContacts_PeopleColumns.JavaClass.DISPLAY_NAME;//Exit;//Selection: = Jstringtostring (TJContacts_PeopleColumns.JavaClass.DISPLAY_NAME) + ' like '% ' + AName + '% ';//end;////Exit;Selection: = jstringtostring (TJContacts_PeopleColumns.JavaClass.DISPLAY_NAME) +'Like "%'+ AName +'%"';//Select projection from contact database where selectionCursorcontactsphone: =SharedActivity.getContentResolver.query (TJCommonDataKinds_Phone.JavaClass.CONTENT_URI,Nil{projection {The name of the field to query
The original intention of writing this example is to imitate the address book list, which achieves some effects and cannot be 100% identical. I think there are still some shortcomings (some memory waste ).
This is the first step in this phase. If the amount of code is large, no code will be pasted.
Source code:Http://download.csdn.net/source/3245470
As follows:
1. implement classification by letter.
2. implement quick slide and modify the icon of
How does android obtain the source image of the local address book?
When talking about the contact in the previous articles, all the headers obtained are stored in the database:
cursor = context.getContentResolver().query( ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, photoId), new String[] { Photo.PHOTO }, null, null, null);
To obtain
In fact,
Primary school English third-year book point read the software. According to the 2014 Beijing Teaching Reform edition textbooks, pronunciation standards. Realize the point reading function. Where to read where and where not to point! Written by Beijing Institute of Educational Sciences, published by Beijing Press. isbn:9787200108781 apk installation package Download: Click here for http://pan.baidu.com/s/1jGoTs2q App preview:[
Today, I sorted out the materials and shared the information from the previous e-reader.
Open-source Android-based e-book reader FBReaderJ
Http://www.fbreader.org/
Supports epub fb2 html format, and pdf format.
Main functions include:
Directory management, search, zoom in and out, quick navigation, bookmarks, etc. For details, refer to the following
E-book
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
() + "-------------mcontacts---------"); inItlist ();} @Overridepublic boolean Oncreateoptionsmenu (Menu menu) {//Inflate the menu; This adds items to the action bar if it is PR Esent.getmenuinflater (). Inflate (R.menu.main, menu); return true;} /** Contact name **/private arraylistContact entity class Contactentity:Package Com.yqy.yqy_testtxl;import android.graphics.bitmap;/** * Contact information * @author yqy * */public class Contactentity {/** Name **/private string name;/** Contact numbe
I have explained the principle of implementing the book paging effect on android and explained how to release the source code at the end of the article. However, there have been a lot of troubles recently, the source code demo originally planned for everyone has no time to complete. It may need to be delay ~~ However, since most of the effects mentioned in the source code implementation principle are only s
How does android combine SDN numbers in the phone book with other common numbers?The original default design will separate SDN with the title "SDN ",The following modifications can be used to arrange the SDN and general numbers in the same order and in the first order.In configureSelection () method of DefaultContactListAdapter. javaAnnotate the following statement with selection IS_SDN_CONTACT + "/*** M: N
Download Android Development sdk ndk and android development sdkndk
Version 2014.7
ADT BundleHttp://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zipHttp://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.z
After careful comparison, the final selection of 2017-2018 Autumn textbooks:Android mobile app Design and Development (2nd edition)-based on the Android studio development environmentPublication date: 2017-03-01 ISBN: 978-7-115-44780-7 Price: 49.80 RMB page: 268
1th Android Introduction 11.1
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.