找回密码
 立即注册
theContactsProviderexampleAndroid | android开发 2022-11-07 54 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
Androidcontact通信录实例,比较不错的例子,来自书中的完整实例,Android手机读取联系人信息、显示、保存、修改联系人,多卡一起读取联系人等,触及关键:删去指定数据列、URI类型转换、刺进数据、查询数据、更新数据库、从ContactsProvider中提取通信录内容、启用长按支持,弹出的上下文菜单、使用managedQuery获取ContactsProvider的Cursor、使用SimpleCursorAdapter建立Cursor的Adapter以便使用,数据表示模式为:名字-手机号码、为当时ListView相关Adapter、目录建立的回调函数、在目录中增加“增加”按钮并为之设定快捷键及图标、上下文菜单选择回调函数等,在本通信录源码中,假如通信录列表的Activity是被其他Activity调用以回来选择的通信信息,比方,短信程序通过本例来获取或人的电话号码。本资料共包括以下附件:

(Android contact example, a good example, comes from the complete example in the book. Android phones read contact information, display, save, modify contacts, read contacts with multiple cards, etc., and hit the key: delete the specified data column, URI type conversion, insert data, query data, update the database, extract address book content from ContactsProvider, enable long press support, and pop up the context menu Use managedQuery to obtain the Cursor of the ContactsProvider, and use SimpleCursorAdapter to create the Cursor Adapter for use. The data representation mode is: name mobile phone number, adapter related to the current ListView, callback function created for the directory, add "Add" button to the directory and set shortcut keys and icons for it, and select callback function from the context menu. In the source code of this address book, Suppose the Activity in the address book list is the communication information selected by other activities. For example, the SMS program obtains the phone number of or person through this example. This document includes the following annexes:)

[下载]12095545729.rar




上一篇:AdXmpp (Openfire+asmack+spark) Android即时通源代码
下一篇:Android PictureViewer图片查看器源码例子