If you have android installed on your system, go to {installation_dir}\platforms\android-x.x\sample\SearchableDictionary application, this is a sample application which uses a Content Provider and database.
[Edit] The dictionary project is also available online here or you can see the Notepad Sample App...
Actually I wanted how to store the image using content provider I have tried the example they gave on developer.android.com
But there you have to use Media class.
I want to store in my own database which I have created and has the fields like string , integer.
Not able to understand the issue on androids official portal.
Here's the link.
Android issue