KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I was browsing the source code for Google IOSched App and noticed the following code snippet as part of their Content Provider implementation: public static class Blocks implements BlocksColumns, BaseColumns . As far as I know BaseColumns is simply an interface to two constants: _COUNT and _ID . I have two questions: What are the advantages/disadvantages of the implementing BaseColumns as opposed to having a private field _ID in the class directly? What is the role of the constant _COUNT ?
Tags (comma-separated)
Save Edits
Cancel