Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet84/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   80   81   82   83   84   85   86   87   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Where to go from here
 section below. An integer is 
returned from 
update
 that contains the count of how many rows were updated.
Dele/ng data
Deleting data is very similar to the other operations. Call 
delete
 on the content 
resolver object passing in arguments for the selection clause and selection 
arguments to identify the group of records to delete. A value is returned with an 
integer count of how many rows were deleted.
Adding a contract class
A contract class is a place to define constants used to assemble the content URIs. 
This can include constants to contain the authority, table names and column names 
along with assembled URIs. This class must be created and shared by the developer 
creating the provider. It can make it easier for other developers to understand and 
utilize the content provider in their application.
MIME types
Content providers can return standard MIME types like those used by media, or 
custom MIME type strings, or both. MIME types take the format 
type/subtype
 an 
example being 
text/html
. Custom MIME types or 
vendor-specific
 MIME types are 
more complicated and come in the form of: 
vnd.android.cursor.dir
 for multiple 
rows. They come in the form of 
vnd.android.cursor.item
 for single rows. The 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   80   81   82   83   84   85   86   87   ...   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