Android provides different ways to store data locally so using SQLite is one the way to store data. We will implement crud operations like insert, update, delete and display data with multiple tables. Kotlin Android SQLite Tutorial. The first example is simple and is for beginners. If you observe the above result, the entered user details are storing in the SQLite database and redirecting the user to another activity file to show the user details from the SQLite database. I am getting lot of queries about handling the sqlite database when it is having multiple tables. Welcome to Android SQLite Tutorial with Example. Data type integrity is not maintained in SQLite, you can put a value of a certain data type in a column of another datatype (put string in an integer and vice versa). used to perform database operations on android gadgets, for example, putting away, controlling or … ",new String[]{String.valueOf(id)});         return  count;     } }. This method is called whenever there is an updation in the database like modifying the table structure, adding constraints to the database, etc. It returns an instance of SQLite database which you have to receive in your own object.Its syntax is given below Apart from this , there are other functions available in the database package , that does this job. Now let’s start by creating new project in Android Studio. 2. Also most of the examples assume a deep knowledge of Android and SQL. public class DbHandler extends SQLiteOpenHelper {     private static final int DB_VERSION = 1;     private static final String DB_NAME = "usersdb";     private static final String TABLE_Users = "userdetails";     private static final String KEY_ID = "id";     private static final String KEY_NAME = "name";     private static final String KEY_LOC = "location";     private static final String KEY_DESG = "designation";     public DbHandler(Context context){         super(context,DB_NAME, null, DB_VERSION);     }     @Override     public void onCreate(SQLiteDatabase db){         String CREATE_TABLE = "CREATE TABLE " + TABLE_Users + "("                 + KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_NAME + " TEXT,"                 + KEY_LOC + " TEXT,"                 + KEY_DESG + " TEXT"+ ")";         db.execSQL(CREATE_TABLE);     }     @Override     public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){         // Drop older table if exist         db.execSQL("DROP TABLE IF EXISTS " + TABLE_Users);         // Create tables again         onCreate(db);     } }. SELECT col-1, col-2 FROM tableName WHERE col-1=apple,col-2=mango GROUPBY col-3 HAVING Count(col-4) > 5 ORDERBY col-2 DESC LIMIT 15; Then for query() method, we can do as:-String table = "tableName"; String[] columns = … The APIs you'll need to use a database on Android are available in the android.database.sqlite package. Once we create a new layout resource file details.xml, open it and write the code like as shown below,