Describe with example, how to create a simple database in SQLite (Assume suitable data).


                      


This procedure is by openOrCreateDatabase() 

1. The package imported into the application is android.database.sqlite.SQLiteDatabase. 

2. Here the class used is SQLiteDatabase. 

3. The method used to create the database or connect to the database is 

openOrCreateDatabse() method. 

Program: 

activity_main.xml 

<?xml version="1.0" encoding="utf-8"?> 

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"