Saving Data on Android


Adding the content provider



Download 19,28 Mb.
Pdf ko'rish
bet89/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   85   86   87   88   89   90   91   92   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Adding the content provider
Android Studio has a neat feature to automatically add content classes. A content 
provider class extends 
ContentProvider
 from the Android SDK and implements all 
the required methods. By using the automated method of adding the content 
provider class, many of these method stubs will be provided for you. It will be your 
job to fill in the functions in the content provider one by one. Ready to get started? :]
Right click the provider package and select 
New
 > 
Other
 > 
Content Provider

Provide the class name 
ToDoContentProvider
 and the URI authority 
com.raywenderlich.contentprovidertodo.provider
. Also check the boxes for
Saving Data on Android
Chapter 4: ContentProvider
raywenderlich.com
79


exported and enabled. Ensure that the source language is Kotlin, and press Finish.
Add a Content Provider dialog
The class name field provides the name of the new class that will be created in the 
provider
 package. The URI Authorities field can contain a semicolon-separated list 
of one to many URI authorities that identify the data under the purview of the 
content provider. Checking the exported field means that the component can be 
used by components of other applications. This automatically adds a 
 
element into 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   85   86   87   88   89   90   91   92   ...   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