posted @ 2010-06-02 22:15 Enrico Zhang 阅读(307) 评论(0) 推荐(0) 编辑
摘要:
Occasionally, you might need to store a file in a database. The usual approach is to save the file to disk and then update the record in the database that points to the corresponding file name. Androi... 阅读全文
摘要:
Before you access one, you should know a few things about an Android cursor: A cursor is a collection of rows. You need to use moveToFirst() because the cursor is positioned before the first row.... 阅读全文
posted @ 2010-06-02 21:17 Enrico Zhang 阅读(592) 评论(0) 推荐(0) 编辑
摘要:
Now you know that to retrieve data from a content provider you need to use URIs supplied by that content provider. Because the URIs defined by a content provider are unique to that provider, it is imp... 阅读全文
posted @ 2010-06-02 21:15 Enrico Zhang 阅读(575) 评论(0) 推荐(0) 编辑
摘要:
dumpcrashamdumpstateinputitrmonkeypmsvcssltestdebuggerddhcpcdhostapd_clifilluplinkerlogwrappertelnetdiftopmkdosfsmountmvnotifynetstatprintenvrebootpsrenicermrmdirrmmodsendeventschedtoppingshhciattachs... 阅读全文
posted @ 2010-05-31 13:39 Enrico Zhang 阅读(224) 评论(0) 推荐(0) 编辑
摘要:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm#然后就是yum install git --disablerepo=* --enablerepo=epel #启用epel的repository#然后:git --versiongit version 1.5.5.6 #返回g... 阅读全文
posted @ 2010-05-28 23:53 Enrico Zhang 阅读(184) 评论(0) 推荐(1) 编辑
摘要:
在做android开发的时候,经常需要从网上下载一些图片,在界面上显示,一般的获取图片都会使用如下的代码:[代码]//获取connection,方法略conn = getURLConnection(url);is = conn.getInputStream();//获取Bitmap的引用Bitmap bitmap = BitmapFactory.decodeStream(is)但是上面的方法在设备... 阅读全文
posted @ 2010-05-25 16:54 Enrico Zhang 阅读(585) 评论(0) 推荐(0) 编辑