Android SimpleCursorAdapter and CursorLoader Code Generator

Quickly and easily generate an Android Studio project with SimpleCursorAdapters, CursorLoaders, a ContentProvider, SQLiteOpenHelper, and custom SQLite database tables.

To generate your own Android Studio project,
please Sign In or Create an Account.

To see how it all works, try the free
Android Pie Chart Code Generator

The generated zip file includes:

  • Source code - Java classes and XML files for:
    • Database creation - CREATE TABLE statements for your custom tables, a SQLite view to get and display the table schemas, and a SQLiteOpenHelper
    • Database access
      • One ContentProvider
      • One LoaderCallbacks handler per database table and SQlite view
      • CursorLoaders and SimpleCursorAdapters to populate ListFragments
    • User interface - Choice of Launcher Activity types:
  • Material design - Customized primary and accent colors
  • Support files - Android manifest, launcher icon and gradle files

The database starts with no records, so if you choose a Navigation Drawer Activity, the Fragments use loaders to read a SQLite view and display the CREATE TABLE statements.

Sign In and download your zip file today!

Example Screenshots

Here are screenshots of the Hello World Activity, and the Navigation Drawer Activity with two ListFragments.

Each list shows the database table schema from the example in Generate Android SimpleCursorAdapters and CursorLoaders, but can be easily modified to show database records instead of the schema.

Project Information

Project Name:
Package Name:

App and Activity Information

Application Name:
Activity Name:
Activity Title:
Activity Type:
Hello World
Navigation Drawer with one
ListFragment per database table

Theme and Colors

Activity Theme:
Material Primary Color:
Material Accent Color:
Material Color Preview:

Database Table Information

* primary key "_id" is required by android.widget.CursorAdapter

– Added error handling when receiving cursor
– Removed the copyright and license references from the comment headers of generated Java classes
– Replaced the GNU General Public License with a new End User License Agreement
– Added option of Navigation Drawer Activity with one ListFragment per database table
– Initial release plus enhancements through December 2016


As of Version 2.0 of all mobile application templates, the GNU General Public License has been retired in favor of an End User License Agreement (EULA) that more accurately reflects the nature of proprietary software that is available by subscription.

In summary, the EULA grants Licensees ownership of and permission to use and sell all End Products generated from the downloaded Software, but you are restricted from re-distributing or reselling the Software itself, except as packaged in the End Products as needed to make them functional.

Please read the EULA in full. A copy is included in each generated Android Studio project, and referenced in the comment header of each Java source file. The retired GNU General Public License is archived here for your reference.

Please send any questions to


Information about your mobile app submitted to this web site is not permanently stored, logged on our servers, used for internal or external analytics, or shared with any other external system or third party. For more information see this websites's Privacy Policy

Copyright ©