Android SQLite Database Tutorial # 3 How to Insert Data in SQLite Database

preview_player
Показать описание
In this i will show you how to insert data in SQLite Database in Android

SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation.

SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC,ODBC e.t.c

Part #1 Introduction + Creating Database and Tables

Part #2 Introduction + Creating Database and Tables

Part #3 How to Insert Data in SQLite Database

Part #4 How to Show Data From SQLite Database in Android

Part #5 How to Update Data in SQLite Database

Part #6 How to Delete Data From SQLite Database in Android

If you like my video Don't forget to like, Comments and share my Video and Subscribe my Channel
Рекомендации по теме
Комментарии
Автор

Nice tutorial arslan but there is one flaw in this.If you don't enter any data at all the null data is still inserted in the database.
I think you need to implement one if else condition in your case:

if ")&& "))
{
toast "please write complete info"
}

else
{
insert data
}


something like this

mubeenkhan
Автор

@ARSL Tech Bro SQLite ma image kesy insert krwaty hai aski video bnao aur asko kesy retrieve krty hai wo b btao

omaisakhtar
Автор

Arsalan bhai
Add.setonclicklistner Mai
If vali condition chal nahi ri or jab bhi mai insert button pr click krra hu data not inserted rikha aara h

ananysharma
Автор

Database create ho raha he but application to crash ho jaa rahi he

princebhanushali
Автор

Not working bro, App crashing when i click insert button

gauravpatil
Автор

sir when am running the app it is crashing

umaradil
visit shbcf.ru