Sample code for chapter 3 of book Android SQLite Essentials available at http://www.amazon.in/Android-SQLite-Essentials/dp/1783282959