Pre-Populate ROOM Database with Already Loaded Data | Android Studio Tutorial

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

🐱‍👤 Wanna become a member? Join!

📸 Instagram

Hello there and welcome back, in this video I'm going to show you how you can pre-populate your ROOM database with some existing data. So whenever a user install the app for the first time, you'll already have data in your database. Watch the whole video to learn more about it! :)

Рекомендации по теме
Комментарии
Автор

Simple and to the point !! Thank you so much for making great content !!

bjugdbjk
Автор

Thanks a lot sir. Really helped me in an app. Cleared my concept of Room db. keep posting these tips and useful tutorials

islamicpoint
Автор

You are the best. I like it Android Studio. When I see your videos feel as a professional. Thank You

williammay
Автор

How can I pre-populate a drawable resource id in database because I don't have its values outside my Android studio project.

meetsoni
Автор

Hi Professor, Hope you are doing great... I have many errors on the app... can you post all the imports of all the files... I am missing somethings...

peterfraga
Автор

can't thank you enough!! Great tutorial!!!

purple
Автор

I really like your tutor can you make shimmerview effect on recyclerview

abrarhafis
Автор

Very impressive, Please do some tutorials for Realm Database too, it'd help a lot :)

logichub
Автор

Hi sir, how do I insert/update that .db file? if I do, it works during the app is active but disappears after the app reloads.

guduguminchu
Автор

great stuff.. if ur android db has 10 tables, but u just want to prepopulate 1 of them, would you need to also add those 9 empty tables as well for this to work?

makasiparsad
Автор

How would you add maps to the database in this example? Say you had a map for phone numbers for each of the people? map["work"], map["home"], map["mobile"] for example? in the DB browser your only options are "integer", "text", "blob", "real", and "numeric"

aaronwalker
Автор

thanks very clear and straight forward

digitalluxury
Автор

What if you have large amounts of data you want to pre populate is there a recommended way for such?

paulvickers
Автор

Hi I would like to ask you how can i export a Room database to a .db file so the user can use it later to import if they switch devices. Can I use .CSV file prepopulate a Room database. I hope you can answer.

farisrizvanovic
Автор

Good video. It was a pain to search for how to pre-populate room DB because there is no straightforward explaination.
Thank you

AliAhmad-dev
Автор

Thanks for the tutorial! is very good!
I'm going to try to do it for a real database with several tables.😬

Ariel_B_
Автор

10:00 Let's see what will happen.. Seems like that error starts ad on YouTube. Interesting...

otoS
Автор

Is there a way to do this without dagger hilt? Im learning Jetpack Compose right now and I want to do so without any confusing addons like dagger hilt. I want to stick to the normal, basic way first before learning how to optimize with other things like dagger hilt

bulllletsss
Автор

Thanks for your videos. Specially this one. Do you know where can I start to try to populate a Room DB with the content of a txt file? Is it possible? Thanks a lot! Great job!!

muytecnoOk
Автор

Thanks for the video, I have an Sqlite file for my IOS app (which works for the last ten years), I want to transfer this to Android with Compose, I struggle to get this done, do you know of any assistants that can help me, please Pierre

pierremarais