随笔分类 -  android

learn
摘要:编写的mail.xml文件:<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/frame" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layo 阅读全文
posted @ 2012-06-04 10:36 罗小姿 阅读(309) 评论(0) 推荐(0)
摘要:ContentObserver——内容观察者,目的是观察(捕捉)特定Uri引起的数据库的变化,继而做一些相应的处理,它类似于 数据库技术中的触发器(Trigger),当ContentObserver所观察的Uri发生变化时,便会触发它。触发器分为表触发器、行触发器, 相应地ContentObserver也分为“表“ContentObserver、“行”ContentObserver,当然这是与它所监听的Uri MIME Type有关的。 熟悉Content Provider(内容提供者)的应该知道,我们可以通过UriMatcher类注册不同类型的Uri,我们可以通过这些不同的 Uri来查询不. 阅读全文
posted @ 2012-06-02 17:04 罗小姿 阅读(332) 评论(0) 推荐(0)
摘要:在SDK中 Parcelable类的概述是这样的:Interface for classes whose instances can be written to and restored from aParcel. Classes implementing the Parcelable interface must also have a static field calledCREATOR, which is an object implementing theParcelable.Creatorinterface.这个接口的实例是通过Parcel进行存储的,在使用Parcelable的时候 阅读全文
posted @ 2012-06-02 13:57 罗小姿 阅读(273) 评论(0) 推荐(0)