Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet74/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   70   71   72   73   74   75   76   77   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

app
 

 
tasks
 

 
verification
 and right-click on 
testDebugUnitTest

Select 
Run 'starter:app'
 with the green arrow beside it.
This will create the report. Then browse to 
app/build/reports/tests/debug/
index.html
, right-click the file and select 
Open in Browser
. Then you can see a 
fantastic report of your testing, which you can see on the next page.
Saving Data on Android
Chapter 3: SQLite Database
raywenderlich.com
69


Test report
Excellent work! Now you can check the box next to the 
Write a unit test for my 
database model
 TODO item on your list!
Key points
• When creating an SQLite database, you should define a 
database schema
 — a 
group of 
String
 constants, used to define your 
database structure
.
• A database needs to be 
created
 and 
updated
, according to the context of the app
and the 
version of the database
.
• If an app doesn't have a database with the same name as in your schema, it will 
create one, using the defined schema.
• If the app already has a database with the same name, it will run the 
update
 
process, but only if the database version 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   70   71   72   73   74   75   76   77   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish