Skip to Content
안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기
book

안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기

by 한대희, 안데르스 예란손
April 2016
Beginner to intermediate
308 pages
7h 21m
Korean
Hanbit Media, Inc.
Content preview from 안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기
261
13
-
AsyncQueryHandler를 이용한 콘텐트 프로바이더 접근
<
provider
android
:
name
=
"
EatContentProvider
"
android
:
authorities
=
"
com
.
eat
.
provider
"
android
:
exported
=
"
true
"/>
접근 메서드는 이러한 구현에 따라 정의되고,
ContentResolver
클래스를 통해 호출될 수 있다.
ContentResolver
content
://
com
.
eat
.
provider
/
resource
와 같은 구문으로 정의되는 고
Uri
를 통해 콘텐트 프로바이더를 식별한다.
ContentResolver
는 프로바이더와 동일한 범위
의 데이터 접근 메서드(
query
,
insert
,
delete
,
update
)를 포함한다.
final Cursor query
(
Uri uri
,
String
[]
projection
,
String selection
,
String
[]
selectionArgs
,
String sortOrder
)
final Uri insert
(
Uri url
,
ContentValues values
)
final int delete
(
Uri url
,
String where
,
String
[]
selectionArgs
)
final int update
(
Uri uri
,
ContentValues values ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법

코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법

강재준

Publisher Resources

ISBN: 9788968481703