摘要: 在MessageCompose.java类中添加这两个方法: private boolean findAttachmentWithMessageId(Context context,long messageId){ Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI,messageId); Cursor c = context.getContentResolver().query(uri,Attachment.CONTENT_PROJECTION,null,null,null); boolean allAttachmen 阅读全文
posted @ 2013-07-30 19:45 奥斯卡影帝 阅读(212) 评论(0) 推荐(0) 编辑
摘要: (1)framework层搜索管理器(SearchManager):主要功能是对Android系统全局搜索提供支持,当Android系统启动完成后会发出系统启动完成(BOOT_COMPLETED)广播,SearchManager接收到此广播后会通过PackageManager搜索系统中支持全局搜索的应用程序,SearchManager解析搜索源的配置信息并将这些配置信息封装成对象保存在List列表中供全局搜索应用程序使用。(2)全局搜索AppWidget:AppWidget是搜索的入口,当用户需要使用全局搜索时会单击已经添加到桌面的全局搜索AppWidget,这时会打开全局搜索应用。(3)全局 阅读全文
posted @ 2013-07-30 19:39 奥斯卡影帝 阅读(672) 评论(0) 推荐(0) 编辑