In the recently updated Android Dev Guide, the documentation for Content Providers contains a section titled Contract Classes. Though there is a link to an example for Contacts, it was not immediately clear what is a Contract Class and how do I create one for my custom Content Provider
Would appreciate some help on this.
Thanks!
You can make your own Contract class and define some constants there. For example, column names that you can later call in code that makes queries to the database etc.
Nice example how Contract class is used see this thread Android – How do I load a contact Photo?