- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 android 4.2 SMS常见数据监听, 更新方式, ContentObserver, CursorLoader,AsyncQueryHandler
1. 注册数据库监听的ContentObserver, 数据库发生变化了的监听Observer, 代码如下: private void registerThreadsInfoObserver() { if (null == mThreadsInfoObserver) { mThreadsInfoObserver = new ThreadsI
2013-12-05 09:34:28 1683
原创 MatrixCursor 与 AbstractCursor实现Cursor 封装
Contacts 模块中: protected synchronized void onQueryComplete(int token, Object cookie, Cursor cursor) 查询得到一个Cursor, 源码中对此cursor 作了一下封装, 生成一个新的Cursor, 代码如下: Cursor mContactsCursor = new ExtendedCu
2013-12-23 11:34:15 1292
原创 同事写的图片压缩方法
if (MessageUtils.ensureImageSizeExceed(this, imgpath)) { imgpath = MessageUtils.compressPicture(this, imgpath); } public static boolean ensureImageSizeExceed (Context context, Str
2013-12-20 10:21:58 565
原创 android 4.2 MMS listVIew平滑滚动到列表最后一项的效果
/** * smoothScrollToEnd will scroll the message list to the bottom if the list is already near * the bottom. Typically this is called to smooth scroll a newly received message into view.
2013-12-20 10:05:44 1295
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人