ContentResolver

    [Android] ContentResolver, ContentProvider에 관해

    ContentProvider는 어떤 앱이 다른 앱으로 데이터를 제공하고자 할 경우 사용한다. 요청은 ContentResolver 클래스에 의해 처리된다. URI ( Uniform Resource Identifier ) 데이터의 위치를 표시하고 데이터를 가져오기 위해 사용 ex) content://authority/path/id - content:// 문자열이 URI 을 나타냄 - authority 중복되지 않아야 하며 패키지 명을 사용하는 것을 권장 - path 가상의 경로 - id 있으면 단수, path 까지만 있으면 복수 Query parameter resolver.query( , , , , ) - projection : 칼럼을 필터링 - selection : 행을 필터링하는 방법 - selectio..