Saving Data on Android


ui : This package includes  MainActivity.kt



Download 19,28 Mb.
Pdf ko'rish
bet20/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   16   17   18   19   20   21   22   23   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

ui
: This package includes 
MainActivity.kt

MainActivity
 implements the 
OnClick
 methods for each button. Because the code to read, write, encrypt and 
delete is abstracted behind 
NoteRepository
 and placed into separate classes, the 
code to handle the button click events remains the same regardless of the type of 
storage being utilized. This code is dependent on a single repository, and only the 
concrete type of the repository needs to change.

app
: This package includes 
Utility.kt
, which contains a utility function to produce 
Toast
 messages.
Using internal storage
The internal storage, by default, is private to your app. The system creates an 
internal storage directory for each app and names it with the app’s 
package name

When you uninstall the app, files saved in the internal storage directory are deleted. 
If you need files to persist — even after the app is uninstalled — use external storage.
Are you ready to see internal storage in action?

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   16   17   18   19   20   21   22   23   ...   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