SQLite + Android - Insert Data in Database Table (Book Library App) | Part 2

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

We are going to create a Book Library application. Our application will have all the necessary functionality which every app with database should have. That includes CRUD, or Create, Read, Update and Delete functions. Also I'm going to teach you how to add Recyclerview and display data from our SQLite database in it. We are going to add some animations as well.

----------

One of the main principles of SQL databases is the schema: a formal declaration of how the database is organized. The schema is reflected in the SQL statements that you use to create your database. You may find it helpful to create a companion class, known as a contract class, which explicitly specifies the layout of your schema in a systematic and self-documenting way.

A contract class is a container for constants that define names for URIs, tables, and columns. The contract class allows you to use the same constants across all the other classes in the same package. This lets you change a column name in one place and have it propagate throughout your code.
Рекомендации по теме
Комментарии
Автор

7:49

I don't have the databases, help please

ravanelmochamad
Автор

7:47 there is no sqlitetutorial files in my device file explorer. can u help me about this?

jayperson
Автор

You are the best kotlin Shifu that I have ever listent to. Thank you very much😘

РусланАлимов-яу
Автор

My application keeps crashing upon clicking on the add button, try catch yielded no results and kept crashing.

RealOny
Автор

Thank you very much for this! Just a question: to export the databases every time is the only way to see the datas with SQLite-Studio? It is a bit cumbersome. Maybe there is some extension for Android Studio to see the datas directly on the IDE?

fral.
Автор

Thanks for your time!
This video was helpful to me :-)

dmytroazhdier
Автор

I keep getting failed 😞 when I click at the add button on my add activity class

seifabdihafid
Автор

I have two titles inside of database file not three and it doesn't open by sqllite

jenniesloft
Автор

Hello, Can you help me? I wrote your code in my Android studio, but it is showing only Failed?

dilnamo
Автор

when i went to file explore and to data - data, i did not find my file project and it shows error to the over files that said the package not debuggable

حسنسلاممكي
Автор

if i wanna add some column in database.. where do i need to modified my code?

shaheershukri
Автор

i have login and register page, how do i create crud along with login?how do i put them in one db...i keep having problems on every step

puch
Автор

I am doing same like as but my Toast show "Failed" guide me ?

zaidtahir
Автор

Love from Pakistan bro. Great video series.

hassanalighumman
Автор

Hey there’s no option like device file explorer what do I do?

Dewnam
Автор

it's throwing null pointer exception as i click to add there anyone to help me?

amnakhalil
Автор

what if i want to insert an image of the book also, can ou explain pls or make a video with this app and code?

playtoy_cardi_
Автор

will you please tell me in backend you will use java or kotlin?

abdulrehmanalibrohi
Автор

I am struggling with how to avoid opening and closing the database multiple times, because I read that best practise is to open it once when starting the app and to close it once when closing the app. I also read that is recommended to have the dbhelper as a singleton. I have several viewmodels that access the database through the database helper and I'm finding it difficult to put all of this together... how do I open it once if I need both a writable and readable db? Also, the context that is passed, is it the activity or fragment? I have one activity and several fragments which in turn have their own view models. Currently all viewmodels create a new dB helper and each method in the dBhelper class opens and closes the dB. I'm real, y struggling with architecture... Anybody got any tips?

amandasjoberg
Автор

Anyone please helps me, I dont have the purple navigation bar as above. How can I make it. I didnt see Stevdza created it. Please help!!!

leodehazover
visit shbcf.ru