Android SQLite Tutorial | Android CRUD Tutorial with SQLite (Create, Read, Update, Delete)

  Рет қаралды 193,799

ProgrammingKnowledge

ProgrammingKnowledge

Күн бұрын

Welcome to this Android SQLite Database Tutorial video. This video shows How to use SQLite with android on Android Studio. In addition we will be Creating Database and Tables in our SQLite database for use in our android SQLite database tutorial. So I video Android SQLite Database Tutorial How to create a SqLite database and then Select, Insert, Update, Delete which correspond to CRUD functionality in SQLite database. SQLite database management system comes bundled with the Android OS.
00:01 # Introduction + Creating Database and Tables
24:30 # Insert values to SQLite Database table using Android
38:19 # Show SQLite Database table Values using Android
52:46 # Update values in SQLite Database table using Android
01:07:32 # Delete values in SQLite Database table using Android
SQLite is an open-source social database i.e. used to perform database operations on android gadgets, for example, putting away, controlling or recovering relentless information from the database.
#SQLite #Android #ProgrammingKnowledge
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqcm.net/r1KEj
Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
Kotlin Android Development Masterclass - bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

Пікірлер: 165
@umarsaleem804
@umarsaleem804 3 жыл бұрын
I have been searching for CRUD methods in SQLite for months, but this here was very helpful for me. Thank you for such a simple solution 100% perfect Working. Keep it UP
@umermahmood6366
@umermahmood6366 4 жыл бұрын
Thank you for this simple and straight forward introduction to SQLite. Very helpful.
@siddhantbenake3845
@siddhantbenake3845 4 жыл бұрын
Very helful tutorial. Whoever is new to sqlite, watch this tutorial. Thank you so much!
@guliyevshahriyar
@guliyevshahriyar 4 жыл бұрын
Thanks a ton! I learnt many things alongside the topic I came to watch for. Have a great time 🙌
@ajaysinghrajput6134
@ajaysinghrajput6134 3 жыл бұрын
Helped me a lot , the instructions were clear and worked perfectly for me. Thank you
@jomgranade8764
@jomgranade8764 4 жыл бұрын
This really helps me a lot. Thank you for this video. ☺️
@srivardhini801
@srivardhini801 2 жыл бұрын
THANKYOU so much for this video.. it helped for me as a beginner. Got all the CRUD operations in one video.
@anwarmustaffa5664
@anwarmustaffa5664 3 жыл бұрын
Thanks for this tutorial sir, because of this i finally finish my assignments. thank you so much and may god bless you.
@ggaass1
@ggaass1 5 жыл бұрын
Very simple and easy to understand. Thanks.
@shihabshahriar6634
@shihabshahriar6634 4 жыл бұрын
I love this video. Thanks a lot, Sir.
@evanjones2974
@evanjones2974 4 жыл бұрын
Program worked perfectly for me. Thank you very much!
@sciencestruck9698
@sciencestruck9698 4 жыл бұрын
where is code?
@jonathangtl4663
@jonathangtl4663 4 жыл бұрын
Muchas gracias por el tutorial, saludos desde Perú 🇵🇪
@ronjoshuarollan1996
@ronjoshuarollan1996 3 жыл бұрын
This tutorial helps me a lot. Thank youu ProgrammingKnowledge!
@saikatbhattacharyya4666
@saikatbhattacharyya4666 4 жыл бұрын
Nice Tutorial....it is very easy to understand...Great Job
@sameerk12982
@sameerk12982 4 жыл бұрын
Very excellent tutorial...easy to understand and follow.....appreciated....
@bakkiyabalakrishnan7339
@bakkiyabalakrishnan7339 4 жыл бұрын
Tq so so so much.It was very helpful .The explanation was so clear and understandable .Keep on doing more videos.Tqsm sir
@jackelinemara
@jackelinemara 4 жыл бұрын
Thank you so much! Very helpful!
@vickyees
@vickyees 4 жыл бұрын
Thank you for your hard work, well worked for me
@dhruvbarot8699
@dhruvbarot8699 3 жыл бұрын
thank you sir this is best of tric of creating sql in android application
@Maira057
@Maira057 4 жыл бұрын
thank you for the video ;) easy to follow up.
@carriehinson3366
@carriehinson3366 4 жыл бұрын
Can you expand this video (or go from this one) to show how to insert a date using SQLite? This video has been very helpful
@hitanshimehta430
@hitanshimehta430 4 жыл бұрын
Thank you so much for video. It helped alot!! keep it up!!
@thanasisathanasi4965
@thanasisathanasi4965 4 жыл бұрын
What the fuck? He uses Android studio 1 and Java. Kotlin was not supported back then
@leydirosmeryaylascuri1835
@leydirosmeryaylascuri1835 4 жыл бұрын
Gracias ! me fue muy útil este vídeo.
@canonngirwa
@canonngirwa 3 жыл бұрын
Very useful! Thank you
@pavanpatil2360
@pavanpatil2360 4 жыл бұрын
Best sqlite operation vdo...
@myplaylist557
@myplaylist557 4 жыл бұрын
Thank you for this tutorial.
@ALEXAN03R
@ALEXAN03R 4 жыл бұрын
god bless u.thank you for this tutorial vid.
@ditsomusic
@ditsomusic 2 жыл бұрын
Great tutorial works well for Shopping Cart
@cobra_girl_147
@cobra_girl_147 4 жыл бұрын
Fantastic tutorial!
@aayuushhhhhh
@aayuushhhhhh 3 жыл бұрын
Thank you so much bro for making this video . It is really helpfull
@abraradnan854
@abraradnan854 4 жыл бұрын
Very helpful thank you so much
@insyaallahbermanfaat7847
@insyaallahbermanfaat7847 2 жыл бұрын
excellent tutorial. very helpful thanks.
@xcaliber125
@xcaliber125 5 жыл бұрын
Great explanation
@cengeflores288
@cengeflores288 3 жыл бұрын
thank you for this video tutorial I'm new in android studio on how to create a project
@tannenspitze1237
@tannenspitze1237 3 жыл бұрын
Thank you. I understand you, although I am not an english speaker.
@ashaelizabeth9296
@ashaelizabeth9296 3 жыл бұрын
Thank you so much
@dharapatel6189
@dharapatel6189 3 жыл бұрын
Thanks for upload this video
@ahmedmassalha7602
@ahmedmassalha7602 3 жыл бұрын
Thank you Sir !
@alighirban
@alighirban 4 жыл бұрын
thanks a lot dude
@efrenroquevanbel-ida3985
@efrenroquevanbel-ida3985 3 жыл бұрын
thank you man
@rohityadav-hz1nz
@rohityadav-hz1nz 5 жыл бұрын
Thanks friend
@Nithin.Raaj.J
@Nithin.Raaj.J 3 жыл бұрын
THANK U MAN
@coraymefootball8862
@coraymefootball8862 4 жыл бұрын
Thank you
@pathummalli2028
@pathummalli2028 4 жыл бұрын
Very Good Tutorial,, I Like to know how to set this data to a RecyclerView or a GridView
@wr3akhav0c
@wr3akhav0c 3 жыл бұрын
thank u ~!!
@AbbasAli-nm6su
@AbbasAli-nm6su 4 жыл бұрын
Love You Bro you are totally lit hahaha😍😜
@MarcoLopez-gg6dl
@MarcoLopez-gg6dl 4 жыл бұрын
Thanks for the video. How can you implementation with rest api? thanks a lot!
@ClevergunsYT
@ClevergunsYT 5 жыл бұрын
Great
@MLopez-uy9qc
@MLopez-uy9qc 3 жыл бұрын
Thanks :))
@abirhassan2011
@abirhassan2011 3 жыл бұрын
helpful 😍🥰🥰
@sidimedmahfoud5897
@sidimedmahfoud5897 4 жыл бұрын
thanks ....
@Arvss29
@Arvss29 5 жыл бұрын
do you have a tutorial creating a multiple table?
@hichamtribak1944
@hichamtribak1944 4 жыл бұрын
To manipulate and inspect the data you can as well use a program named DB Browser for SQLite.
@MuhammadHussain-tw5pu
@MuhammadHussain-tw5pu 4 жыл бұрын
impressive
@avichavich43
@avichavich43 5 жыл бұрын
hello thank you for this cool lesson, i have one Question : can i use the same coding if i want to use an External sqlite db ?
@adamoumoussaabdoulmoumouni8188
@adamoumoussaabdoulmoumouni8188 4 жыл бұрын
is the internal sqlite in the video?
@saicharan815
@saicharan815 4 жыл бұрын
How we get list of particular fields example in a table employes name and salary. when I select salary (20,0000) only show employers names depending on salary
@govindchoudhary3177
@govindchoudhary3177 4 жыл бұрын
you can check search query i thing its working
@reckyarianto8395
@reckyarianto8395 4 жыл бұрын
Terimakasih 🇲🇨🇮🇳
@RobertR1611
@RobertR1611 4 жыл бұрын
Thank you. How would you write a function to search the database?
@mladenzvjerac4073
@mladenzvjerac4073 3 жыл бұрын
Nice! But with one modification. New user, don't f..k around with FireFox, install DB browser for SQLite to see your database. Also, when you save your database from AndroidStudio to desktop or other part of your computer, save ALL files from AndroidStudio database. After that in DB browser open database.
@wiqasgiki
@wiqasgiki Жыл бұрын
Good.....please make a video Tableview against buffer message
@preetvakharia9425
@preetvakharia9425 4 жыл бұрын
if i want to perform or add where clause in Databasehelper's view all (Select statement ) what code should i use because i am confused.
@laxmidhakal2946
@laxmidhakal2946 4 жыл бұрын
I have two database table I want to substract the value from one table and add that substracted value in another database table how to do that
@cubedev4838
@cubedev4838 4 жыл бұрын
Thanks a lot!! How to use xampp with android studio?please update your vide
@vishalmishra1937
@vishalmishra1937 4 жыл бұрын
36:17 marks is stored as integer but passed as string in method
@rosanapastor5953
@rosanapastor5953 4 жыл бұрын
con android studio 3.4.1 no tiene "Android Device Monitor" . Podría decirme el equivalente?, gracias
@dennysetiawan7315
@dennysetiawan7315 3 жыл бұрын
nice tutorial sir, but what if i want to have a different page for insert the data and for showing the data?
@hichamtribak1944
@hichamtribak1944 4 жыл бұрын
Great work Sir however there is a problem in your code: You have to remove the function public void AddData and put the code inside in the constructor. In this example the function AddData is never executed.Thus, data wil not be inserted as well as the instructions related to the message will never be taken into account. Here is my own code source after correcting the errors: package com.example.sqllite; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import static android.widget.Toast.makeText; public class MainActivity extends AppCompatActivity { DatabaseHelper MYDB; EditText EDIT_TEXT1, EDIT_TEXT2, EDIT_TEXT3; Button BTNAJOUTER; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); MYDB = new DatabaseHelper(this); EDIT_TEXT1 = (EditText) findViewById(R.id.TEXT1); EDIT_TEXT2 = (EditText) findViewById(R.id.TEXT2); EDIT_TEXT3 = (EditText) findViewById(R.id.TEXT3); BTNAJOUTER = (Button) findViewById(R.id.BTN); Toast.makeText(MainActivity.this, "App ouverte", Toast.LENGTH_LONG).show(); MYDB.insertData("nnnnn", "ffffff", "120"); BTNAJOUTER.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { boolean isInserted = MYDB.insertData(EDIT_TEXT1.getText().toString(), EDIT_TEXT2.getText().toString(), EDIT_TEXT3.getText().toString()); if (isInserted) { Toast.makeText(MainActivity.this, "Donnees ajoutees", Toast.LENGTH_LONG).show(); } else { Toast.makeText(MainActivity.this, "Donnees non ajoutees", Toast.LENGTH_LONG).show(); } EDIT_TEXT1.setText(""); EDIT_TEXT2.setText(""); EDIT_TEXT3.setText(""); } } ); } }
@arslanahmed6618
@arslanahmed6618 4 жыл бұрын
ty brother
@muhammadzuhal361
@muhammadzuhal361 4 жыл бұрын
how can i create new database with filename form edittext from main activity data?
@teresinaweb
@teresinaweb 3 жыл бұрын
there is some video class where I can add more than one photo in the registration, for example, registration of people and each person could register 3 photos in addition to name and other information.
@chakroid
@chakroid 3 жыл бұрын
Hi one question how to validate duplicates (over come the duplicates) ?
@aethenwulf4757
@aethenwulf4757 3 жыл бұрын
Hi, i din't use android studio for a long time, and i forgot what java is looks like now, there was an option on updated android studio that give me a choice of what to use, JAVA or Kotlin, i was asking what are you using XD sorry noob question
@michaelparaguas6469
@michaelparaguas6469 4 жыл бұрын
sir, kindly please show also how you created the resource file menu.
@montyahuja8
@montyahuja8 4 жыл бұрын
Instead of checking db 19:12 thoroughly we can put toast in our constructor if that constructor will execute then toast will be printed successfully.....
@ngesthifarrel7997
@ngesthifarrel7997 4 жыл бұрын
is this can run in android studio version 3.5 ?
@ashaelizabeth9296
@ashaelizabeth9296 3 жыл бұрын
Could you please explain how to perform search using android
@sadaalrough6996
@sadaalrough6996 3 жыл бұрын
what if I have more than one tables? and after I saved my customers orders details, the customers need to enter the app to keep track their orders. how can I give them this authentication by using their orders numbers. please help
@daryllowey2043
@daryllowey2043 4 жыл бұрын
Good Day... I am unable to get showMessage working in the view all dialog. do I need to create a variable? Your assistance is appreciated.
@hichamtribak1944
@hichamtribak1944 4 жыл бұрын
You have to remove the function public void AddData and put the code inside in the constructor. In this example the function AddData is never executed.Thus, data is not inserted as well as the instructions related to the message will never be executed.
@classicyup3306
@classicyup3306 2 жыл бұрын
can u sign in using the information added to the student?
@KasunDhananjaya
@KasunDhananjaya 4 жыл бұрын
I have a problem with the design of the screen. in the designing view data fields and button are showing in correct positions and on running the program all elements showing in one row.
@vickyees
@vickyees 4 жыл бұрын
use instead of constraint layout or relative layout in xml
@spacex1442
@spacex1442 4 жыл бұрын
which version of Android Studio is this one you are working on?
@okay4928
@okay4928 4 жыл бұрын
1.0.1. It's stated at the top of the screen.
@mehrajuddinam4333
@mehrajuddinam4333 5 жыл бұрын
hi sir this app is not open in android phone once i get an apk file can you solve my problem how to run this app in my phone
@muhammadasfandyar1906
@muhammadasfandyar1906 4 жыл бұрын
why my application stopped when i click on view button my is same as your code then why i have the problem like this and how can i fix it?@programmingknowledge
@praffulbisht8520
@praffulbisht8520 Жыл бұрын
how to fix that ?
@neerajahlawat7393
@neerajahlawat7393 2 жыл бұрын
Update is not showing stored data whenever I clicked on any word as you did for update. help me out.
@techajay6029
@techajay6029 4 жыл бұрын
Sir please make a tutorial send data first to data save in sqlite when Internet is off condition and after I connected to internet all save data in sqlite send to the server and after all sqlite data is empty in your device Thaks
@codylecon2357
@codylecon2357 4 жыл бұрын
I am doing it, once finished, I would answer this comment again
@ganeshrathod8867
@ganeshrathod8867 3 жыл бұрын
if i change variable means its not working plz help me how to insert data in multiple variable according above video
@ayezza
@ayezza 2 жыл бұрын
can you make a search button?? thank youuu
@priyankamanna4550
@priyankamanna4550 3 жыл бұрын
I tried and every thing is working perfectly except the toast is not showing message for delete and update .. Operation is done but success message toast is not displaying what to do?
@leyoki16
@leyoki16 Жыл бұрын
i have an issue in inserting, it duplicates the first data i inserted, why it is happening?
@spacex1442
@spacex1442 4 жыл бұрын
Do anyone have the project file of this one?
@abdulrafay1509
@abdulrafay1509 4 жыл бұрын
I can't find Android option in my tools dropdown, can someone help me in running Android Device Monitor
@editz_island
@editz_island 4 жыл бұрын
Its not available for versions above 3.1
@najmuddinmalaysia5307
@najmuddinmalaysia5307 4 жыл бұрын
Do u want help? or u solve it already ?
@ayhan9393
@ayhan9393 4 жыл бұрын
Everything used in this video even Firefox and the extension are so outdated that I can't really keep up. Should have noticed earlier that it's almost a 5 years old video in fact.
@KadalCj
@KadalCj 4 жыл бұрын
You can notice it by looking on Android Studio version that he use. It was 1.0.1 and it was release on 2015 if I not mistaken
@QassimoveTV
@QassimoveTV 4 жыл бұрын
Also, he recorded this video on 04/03/2015 (you can say that by looking at creation date of DatabaseHelper) .. and uploaded video on 2019 .. weird
@alghabid24
@alghabid24 4 жыл бұрын
How come your main activity has already codes in it. You didn't explain briefly. You just jump right into DatabaseHelper Class and when you open MainActivity I have no idea what's going on. Can anyone explain this to me? First we open a blank activity and then jump right into creating DatabaseHelper class after he jumps back into MainActivity there's already codes in it.
@croedeeja
@croedeeja 4 жыл бұрын
If you're referring to the methods onCreateOptions menu and the other one, those are methods that are added by default if you choose to create basic activity instead of empty activity.
@vishalaparnathi
@vishalaparnathi 2 жыл бұрын
Sir please give me solution for Error: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly I tried many ways but didn't work. 😖
@dipeshpatil2771
@dipeshpatil2771 4 жыл бұрын
So Many Uncovered Things In This Video!! First of all you published this video in 2019 and you are using an outdated android studio. You are using ICE CREAM SANDWICH api that too is very old. being an ICE CREAM SANDWICH api your STUDENT.DB file was directly created in your local storage you didnt need to externally specify any permissions to write file on local storage. whereas since MARSHMALLOW api we explicitly need to give WRITE PERMISSION in the manifest so that it creates the STUDENT.DB file on your local storage. I never expected that you will use so much of outdated stuff which indirectly created problems building the app
@imrsk
@imrsk 4 жыл бұрын
entitled!
@abdulrafay1509
@abdulrafay1509 3 жыл бұрын
There is some weird problem, my application crashes on start, any ideas?
@dhruvinjariwala1139
@dhruvinjariwala1139 3 жыл бұрын
How to display data on Listview Please tell us
@vranjit5113
@vranjit5113 4 жыл бұрын
android device monitor is deprecated in android studio 3.5 . how can we access sqlite database file in Android Studio.
@ayhan9393
@ayhan9393 4 жыл бұрын
I had to look it up too. There is "Device File Explorer" button at right bottom. From there, find the database and right click, "save as" to export to PC.
@vranjit5113
@vranjit5113 4 жыл бұрын
@@ayhan9393 Thanks Ayhan.
@hmasat-5237
@hmasat-5237 4 жыл бұрын
sqlite manager addon mozile not working for me , can anyone help me
@Videoman2102
@Videoman2102 4 жыл бұрын
11:01 doesn´t work super(context, DATABASE_NAME, null, 1);
@sumitkb2770
@sumitkb2770 4 жыл бұрын
Sir how can I backup and restore sqlite database....
How to Integrate Google Sign In Your Android App using Android Studio
30:02
ProgrammingKnowledge
Рет қаралды 62 М.
SQLite Database for Android - Full Course
1:28:22
freeCodeCamp.org
Рет қаралды 246 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 34 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
Implementation of SQLite Database in Android using Kotlin
1:34:32
Dr. Parag Shukla
Рет қаралды 16 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,4 МЛН