[英]What is use of content://com.android.contacts in android
I want to know what is use of content://com.android.contacts in android.我想知道 android 中 content://com.android.contacts 的用途是什么。
And what it return means which type data from contact.?它返回的意思是来自联系人的哪种类型的数据。?
This is uri for contacts database.这是联系人数据库的 uri。 In android the platform provides content provider layer (database) to provide applications with ready data.
在android中,平台提供了内容提供者层(数据库)来为应用程序提供准备好的数据。 So like contacts , you can get media.image etc from this database.
所以像contacts 一样,你可以从这个数据库中获取media.image 等。
To use this you need to query the database to get cursor.要使用它,您需要查询数据库以获取游标。
For more read android content provider topic更多阅读android内容提供者主题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.