一旦为Intent同时指定了Action、Data属性,那么Android将可根据指定的数据类型来启动特定的应用程序,并对指定数据类型执行相应的操作。 下面是几个Action属性、Data属性的组合。ACTION_VIEW content://com.android.contacts/contacts/1:显示标识为1的联系人的信息。ACTION_EDIT content://com.android.contacts/contacts/1:编辑标识为1的联系人的信息。ACTION_DIAL content://com.android.contacts/contacts/1:显示向标识... Read More
posted @ 2013-11-17 16:28
TealerProg
Views(655)
Comments(0)
Diggs(0)
Data属性通常用于向Action属性提供操作的数据,Data属性接受一个Uri对象,一个Uri对象通常通过如下形式的字符串来表示: content://com.android.contacts/contacts/1 tel:123 Uri字符串总满足如下格式: scheme://host:port/path 例如上面给出content://com.android.contacts/contacts/1,其中content是scheme部分,com.android.contacts是host部分,port部分被省略了,/contacts/1 是path部分。 Type属性用于指... Read More
posted @ 2013-11-17 10:41
TealerProg
Views(4208)
Comments(1)
Diggs(1)

浙公网安备 33010602011771号