Saving Data on Android


Understanding content provider basics



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

Understanding content provider basics
In order to get data from a content provider, you use a mechanism called
raywenderlich.com
72


ContentResolver
. The content resolver provides methods to query(), update(), 
insert() and delete() data from a content provider. A request is made to a content 
resolver by passing a URI to one of the SQL-like methods. These methods return a 
Cursor
.
Note
: Cursor is defined and discussed in more detail in the previous SQLite 
chapter. A cursor is essentially a pointer to a row in a table of structured data 
that was returned by the query.
To interact with a content provider via a content resolver there are two basic steps:
1. Request permission from the provider by adding a permission in the manifest.
2. Construct a query with an appropriate content URI and send the query to the 
provider via a content resolver object.

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   73   74   75   76   77   78   79   80   ...   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