티스토리 뷰

반응형

Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.

Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.

 

아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.

What is difference between contentprovider and contentResolver in android

안드로이드에서 contentProvider와 contentResolver의 차이점은 무엇인가요?

 문제 내용 

What is the difference between ContentProviders and ContentResolver? I do not want for the SQLite database. I am developing an application for media.

ContentProvider와 ContentResolver의 차이점은 무엇인가요? SQLite 데이터베이스는 필요하지 않습니다. 미디어용 애플리케이션을 개발 중입니다.

 

 

 

 높은 점수를 받은 Solution 

I found some explanation here. In summary

여기서 몇 가지 설명을 찾았습니다. 요약하자면...

 

Content Resolver resolves a URI to a specific Content provider.

ContentResolver는 URI를 특정 ContentProvider로 해석합니다.

 

Content Provider provides an interface to query content.

ContentProvider는 콘텐츠를 쿼리할 수 있는 인터페이스를 제공합니다.

 

The way to query a content provider is contentResolverInstance.query(URI,.....)

ContentProvider를 쿼리하는 방법은 contentResolverInstance.query(URI,.....)입니다.

 

 

 

 가장 최근 달린 Solution 

In 2021 :D

2021년 기준으로는 :D

 

Content Resolver : For Data Request

Content Resolver : 데이터 요청을 위해 사용됩니다.

 

Content Provider : For Data Response

Content Provider : 데이터 응답을 위해 사용됩니다.

 

 

 

출처 : https://stackoverflow.com/questions/18874801/what-is-difference-between-contentprovider-and-contentresolver-in-android

반응형
댓글
공지사항
최근에 올라온 글