Saving Data on Android


using-files  and open  projects



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

using-files
 and open 
projects
. Once there, open 
SimpleNote
 located inside 
starter
. Wait for the project to sync, download its 
dependencies and set up the workplace environment. When finished, run the app on 
a device or in the simulator. For now, you can ignore the warnings in the code.
This app has a simple user interface with two 
EditTexts
, one for the filename and 
one for a note. There are also three buttons along the bottom: 
READ

WRITE
 and 
DELETE
. The user interface looks like this:
The SimpleNote App Interface
Saving Data on Android
Chapter 1: Using Files
raywenderlich.com
21


The sample for this project includes three sub-packages: 
model

ui
 and 
app
.

model
: This package includes a simple data class to represent a single note in 
Note.kt

NoteRepository.kt
 contains the declaration of an interface with 
methods to add, get and delete a 
Note

ExternalFileRepository

InternalFileRepository
 and 
EncryptedFileRepository
 are classes that 
implement 
NoteRepository
 and override its methods. You’ll be adding code to 
these classes later.


Download 19,28 Mb.

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