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

  Рет қаралды 37,555

Coding with Dev

Coding with Dev

4 жыл бұрын

#𝐏𝐚𝐫𝐭 𝟏 (𝐈𝐧𝐬𝐞𝐫𝐭 𝐀𝐧𝐝 𝐑𝐞𝐚𝐝 𝐃𝐚𝐭𝐚)
Hello Guys,In this 𝐚𝐧𝐝𝐫𝐨𝐢𝐝 𝐬𝐭𝐮𝐝𝐢𝐨 tutorial we will learn to 𝐢𝐧𝐬𝐞𝐫𝐭,𝐮𝐩𝐝𝐚𝐭𝐞,𝐝𝐞𝐥𝐞𝐭𝐞,𝐬𝐞𝐥𝐞𝐜𝐭 data in 𝐒𝐐𝐋𝐢𝐭𝐞 D𝐚𝐭𝐚𝐛𝐚𝐬𝐞.in this example we will store 𝐞𝐦𝐩𝐥𝐨𝐲𝐞𝐞 name,email in to 𝐒𝐐𝐋𝐢𝐭𝐞 D𝐚𝐭𝐚𝐛𝐚𝐬𝐞 and then select and modify data in 𝐒𝐐𝐋𝐢𝐭𝐞 D𝐚𝐭𝐚𝐛𝐚𝐬𝐞 in very simple way.
#𝐏𝐚𝐫𝐭 𝟏 (Insert And Read Data) SQLite Tutorial Link - • Android SQLite Tutoria...
#𝐏𝐚𝐫𝐭 𝟐 (Update And Delete Data) SQLite Tutorial Link - • Android SQLite Tutoria...
𝐖𝐡𝐚𝐭 𝐢𝐬 𝐒𝐐𝐋𝐢𝐭𝐞 ?
-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.
-To use SQLiteOpenHelper, create a subclass that overrides the onCreate() and onUpgrade() callback methods.
-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 ,MySql e.t.c
𝐃𝐚𝐭𝐚𝐛𝐚𝐬𝐞 - 𝐇𝐞𝐥𝐩𝐞𝐫 𝐜𝐥𝐚𝐬𝐬
For managing all the operations related to the database , an helper class has been given and is called SQLiteOpenHelper. It automatically manages the creation and update of the database. Its syntax is given below
𝐃𝐚𝐭𝐚𝐛𝐚𝐬𝐞 - 𝐂𝐫𝐞𝐚𝐭𝐢𝐨𝐧
In order to create a database you just need to call this method openOrCreateDatabase with your database name and mode as a parameter. It returns an instance of SQLite database which you have to receive in your own object.
𝐃𝐚𝐭𝐚𝐛𝐚𝐬𝐞 - 𝐈𝐧𝐬𝐞𝐫𝐭𝐢𝐨𝐧
we can create table or insert data into table using execSQL method defined in SQLiteDatabase class.
𝐃𝐚𝐭𝐚𝐛𝐚𝐬𝐞 - 𝐅𝐞𝐭𝐜𝐡𝐢𝐧𝐠
We can retrieve anything from database using an object of the Cursor class. We will call a method of this class called rawQuery and it will return a resultset with the cursor pointing to the table. We can move the cursor forward and retrieve the data.
Please 👍𝐋𝐢𝐤𝐞 ,👤𝗦𝗵𝗲𝗮𝗿,✎𝐂𝐨𝐦𝐦𝐞𝐧𝐭 And ☝𝐒ᴜʙ𝐒ʀɪʙᴇ My 𝗬𝗢𝗨𝗧𝗨𝗕𝗘 Channel
𝗰𝗹𝗶𝗰𝗸 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘃𝗶𝗱𝗲𝗼𝘀 - / codingwithdev
Source code - github.com/devendrachavan/
Follow 𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤 - / coding-with-dev-101018...
Follow 𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - / codingwithdev
Follow 𝐆𝐢𝐭𝐡𝐮𝐛 - github.com/devendrachavan
Follow 𝐌𝐞𝐝𝐢𝐮𝐦 - / devendrac706
𝐅𝐨𝐫 𝐁𝐮𝐬𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐪𝐮𝐢𝐫𝐢𝐞𝐬
-codingwithdev@gmail.com
𝐒ᴜʙ𝐒ʀɪʙᴇ My 𝗬𝗢𝗨𝗧𝗨𝗕𝗘 Channel #𝗰𝗼𝗱𝗶𝗻𝗴𝘄𝗶𝘁𝗱𝗲𝘃 for more latest videos..
/ codingwithdev
Thank You :-)
#SQLite #AndroidStudioTutorial #CRUD #sqlitedatabase #create #update #read #delete #Android #EmployeeDirectoryApp #recyclerview #listview
#sqlite database in android example step by step
#how to connect sqlite database in android studio
#how to insert data in sqlite database in android studio
#how to store data in sqlite database in android example
#how to insert and retrieve data from sqlite database in android
#simple sqlite database example in android
#android sqlite tutorial for beginners
#Setting up an Android SQlite Database - Employee Directory App #1

Пікірлер: 47
@NIKHILKUMAR-cp5dl
@NIKHILKUMAR-cp5dl 2 жыл бұрын
thank you so much sir I was depressed from 3 days and I thought android development is not made for me so I found your video and this helped me so much thanks !
@jothamithagu7403
@jothamithagu7403 9 ай бұрын
Finally a video that has taken me step by step to finish-line successfully. Though my device did not display the "View Employee" data... I guess it's because I'm using the Android Device, and this needs external device. Thank you so much.
@Tridez99
@Tridez99 Жыл бұрын
Thank you, your video helped me a lot!
@luannguyenthanh2108
@luannguyenthanh2108 2 жыл бұрын
Thanks so much for your video, it's easy to understand.
@goddy2481
@goddy2481 3 жыл бұрын
Thanks you bro. It is super usefull.
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Thanks for ur valuable response
@sibusisom2362
@sibusisom2362 3 жыл бұрын
I JUST SUBSCRIBED TO YOUR CHANNEL!! YOU BRILIANT THANK YOU!!!
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Thanks for ur valuable response
@priyankashivappa
@priyankashivappa 3 жыл бұрын
Hello sir, this was really helpful. Can please say how to do switch button coding and connect to database?
@nmkl8272
@nmkl8272 Жыл бұрын
شكرا التطبيق رائع جدا
@GeorgeR-dt4yu
@GeorgeR-dt4yu 3 жыл бұрын
whats the use of implementation in gradle? i dont get it.
@MayaMaya-dm3pb
@MayaMaya-dm3pb 3 жыл бұрын
Could anybody help out how can I connect this entered data with DB browser app so that I can connect this datas to other applications I devolepe
@education_beauty
@education_beauty 3 жыл бұрын
Sir how can we get numbers from sqlite and store them in string variables
@bouchentoufothman7264
@bouchentoufothman7264 11 ай бұрын
Hello sir, when i try to enter the view employee, the app keeps crashing can you help me pls
@ibrahimalmesbahi754
@ibrahimalmesbahi754 4 ай бұрын
Sqlite is local DB. How can we use android with a remote database like Sql server
@hasankanaan5628
@hasankanaan5628 3 жыл бұрын
Please sir i have a problem, “no adapter attached;skipping layout “ You can please resolve it?
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Hello hasan , please cross check your code , YourArrayAdapterClass adapter = new YourArrayAdapterClass(this, artists); recyclerView = findViewById(R.id.cardList); recyclerView.setHasFixedSize(true); recyclerView.setAdapter(adapter); recyclerView.setLayoutManager(new LinearLayoutManager(this));
@ebajovinceronnie2998
@ebajovinceronnie2998 3 жыл бұрын
this is not working
@vishalrathod-fq5sb
@vishalrathod-fq5sb 2 жыл бұрын
Sir i have error :no adapter attached skipping layou pls give me solution for that
@CodingwithDev
@CodingwithDev 2 жыл бұрын
Hello vishal, After inflating the recyclerview into your view class(Activity Or Fragment), you should mention the LayoutManager of it. If by mistake you miss it.... Please check the source code also..
@radhikapatel1755
@radhikapatel1755 3 жыл бұрын
Sir i have an error:- Recyclerview: No adapter attached; skipping layout And i have add :- item. Size () then alsowi got same error Sir please can u solve my error
@CodingwithDev
@CodingwithDev 3 жыл бұрын
LinearLayoutManager llm = new LinearLayoutManager(this); llm.setOrientation(LinearLayoutManager.VERTICAL); list.setLayoutManager(llm); list.setAdapter( adapter );
@radhikapatel1755
@radhikapatel1755 3 жыл бұрын
@@CodingwithDev Thanks sir
@zkk1235
@zkk1235 Жыл бұрын
I need source code plz. Where is source code. There is nothing in github
@verm1lon885
@verm1lon885 3 жыл бұрын
Hello, could you help me please. I can't see the content
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Hey Please check the source code link on description ...I hope it's very helpful for u ... Thank you..
@lucyakimoto1939
@lucyakimoto1939 3 жыл бұрын
i have an error in select * from what should i do
@s.k1312
@s.k1312 Жыл бұрын
plz try one more time
@jhoncarlosdrilon3880
@jhoncarlosdrilon3880 3 жыл бұрын
is there a kotlin version of this tutorial bro?
@CodingwithDev
@CodingwithDev 3 жыл бұрын
@Jhon Hi, in feature, i will be trying to create tutorial in kotlin.
@aulairvanzidnivavan2435
@aulairvanzidnivavan2435 3 жыл бұрын
Iam just followed your instructions, but when i run the project and add email there is show "there is no empoloyee in the database"
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Hello please check your insert query on DatabaseHelperClass.java file...It's may be something wrong..Also check on github link on description...I hope it's helpful for you..
@aulairvanzidnivavan2435
@aulairvanzidnivavan2435 3 жыл бұрын
@@CodingwithDev thank you very much
@lucyakimoto1939
@lucyakimoto1939 3 жыл бұрын
@@aulairvanzidnivavan2435 hi? i have the same problem, I copy the code for Dartabasehelperclass.java and yet it doent show any content
@shashikrishan3011
@shashikrishan3011 3 жыл бұрын
I followed the sample code. All the data add to the database in insert part. but when I click on view button the app doesn't response. could you please help me?
@CodingwithDev
@CodingwithDev 3 жыл бұрын
@Shashi hello, please check the source code link on description...I hope it's helpful for u...
@shashikrishan3011
@shashikrishan3011 3 жыл бұрын
@@CodingwithDev it's working now. Thanks for your response.
@rimshajavaid4123
@rimshajavaid4123 3 жыл бұрын
Same thing is happened to me... no error no mistake also no output
@lucyakimoto1939
@lucyakimoto1939 3 жыл бұрын
@@shashikrishan3011 hello i have the same problem, how did you solve it? I already copy all the source code and there is no display
@abhinavsaxena7282
@abhinavsaxena7282 2 жыл бұрын
Begginer should not come here it was the very complicated way of doing that
@Ilya-wr3cm
@Ilya-wr3cm 3 жыл бұрын
can you share the file code...please??
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Here's a direct link for SQLite Tutorial.. github.com/devendrachavan/SQLiteExample.git
@Ilya-wr3cm
@Ilya-wr3cm 3 жыл бұрын
@@CodingwithDev Thank you very much
@ParaiyoasaiPathippaham
@ParaiyoasaiPathippaham 3 жыл бұрын
fraud. uncompleted and wrong guiding
@dividedtime8529
@dividedtime8529 2 жыл бұрын
sir I have this error org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.suport:design:28.2.1.
SQLite Database for Android - Full Course
1:28:22
freeCodeCamp.org
Рет қаралды 247 М.
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,5 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Login and Signup using SQLite in Android Studio | Kotlin
34:18
Android Knowledge
Рет қаралды 10 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 347 М.
SQLite in Android Theory
9:07
Telusko
Рет қаралды 58 М.
SQLite Database Tutorial for Android Studio
1:27:08
Programming w/ Professor Sluiter
Рет қаралды 189 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 187 М.
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН