{"id":1029,"date":"2011-03-29T02:36:00","date_gmt":"2011-03-29T02:36:00","guid":{"rendered":"https:\/\/rawbytes.org\/?p=1029"},"modified":"2025-11-24T02:59:31","modified_gmt":"2025-11-24T02:59:31","slug":"android-content-provider%e3%81%ae%e8%a6%81%e7%82%b9%e3%81%a0%e3%81%91","status":"publish","type":"post","link":"https:\/\/rawbytes.org\/?p=1029","title":{"rendered":"Android Content Provider\u306e\u8981\u70b9\u3060\u3051"},"content":{"rendered":"<p>http:\/\/developer.android.com\/intl\/ja\/guide\/topics\/providers\/content-providers.html<br \/>\n1.\u30a2\u30d7\u30ea\u9593\u3067\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u6e21\u3059\u4ed5\u7d44\u307f\u3002\u3053\u308c\u4ee5\u5916\u306b\u306f\u7121\u3044\u3002<br \/>\n2.android.provider\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u6a19\u6e96\u306eContentProvider\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<br \/>\n3.permission\u3092\u5ba3\u8a00\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3082\u306e\u3082\u3042\u308b<br \/>\n4.\u72ec\u81ea\u306e\u3082\u306e\u3092\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3002\u305d\u306e\u5834\u5408\u3001ContentProvider\u3092\u30b5\u30d6\u30af\u30e9\u30b9\u5316\u3059\u308b\u3002<br \/>\n5.\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306f\uff11\u884c\uff11\u30ec\u30b3\u30fc\u30c9\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<br \/>\n6.\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306fURI\u304c\u5bfe\u5fdc\u3059\u308b\u3002CONTENT_URI\u5b9a\u6570\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308c\u3070\u5206\u308b\u3002<br \/>\n7.\u5178\u578b\u7684\u306a\u5f62\u5f0f\u306fcontent:\/\/com.example.transportaionprovider\/trains\/122\u3002<br \/>\n\u3000- \u30b9\u30ad\u30fc\u30e0\u90e8\u5206\uff08content:\u306f\u56fa\u5b9a\uff09<br \/>\n\u3000- \u30c9\u30e1\u30a4\u30f3\u90e8\u5206\u306fauthority\u3092\u793a\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u306e\u5834\u5408\u3001Manifest\u306eandroid:authorities\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3067\u5ba3\u8a00\u3055\u308c\u308b\u3082\u306e<br \/>\n\u3000- \u30d1\u30b9\u306e\u90e8\u5206\u306f\u30c7\u30fc\u30bf\u7a2e\u5225\u30020\uff5e\u8907\u6570\u30bb\u30b0\u30e1\u30f3\u30c8\u304c\u3042\u308a\u5f97\u308b\u3002<br \/>\n\u3000- \u672b\u5c3e\u306f\u30ec\u30b3\u30fc\u30c9\u306e_ID\u5024<\/p>\n<p>\n\u4ee5\u4e0b\u306e\u30d6\u30ed\u30b0\u3068\u304b\u3092\u898b\u308b\u3068\u3001Content URI\u306fOS\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u304b\u30e1\u30fc\u30ab\u30fc\u3068\u304b\u3067\u9055\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u305d\u3046\u306a\u306e\u3067\u8981\u6ce8\u610f\u3002<br \/>\n<a href=\"http:\/\/d.hatena.ne.jp\/rmiya\/20100725\/1280028729\">Android 2.2 \u306e\u30ab\u30ec\u30f3\u30c0\u30fcContentProvier \u306b\u5bfe\u5fdc<\/a>http:\/\/d.hatena.ne.jp\/rmiya\/20100725\/1280028729<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/developer.android.com\/intl\/ja\/guide\/topics\/providers\/content-providers.html 1.\u30a2\u30d7\u30ea\u9593\u3067\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u6e21\u3059\u4ed5\u7d44\u307f\u3002\u3053\u308c\u4ee5\u5916\u306b\u306f\u7121\u3044\u3002 2.android.provider\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u6a19\u6e96\u306eContentProvider\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b 3.permission\u3092\u5ba3\u8a00\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3082\u306e\u3082\u3042\u308b 4.\u72ec\u81ea\u306e\u3082\u306e\u3092\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3002\u305d\u306e\u5834\u5408\u3001ContentProvider\u3092\u30b5\u30d6\u30af\u30e9\u30b9\u5316\u3059\u308b\u3002 5.\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306f\uff11\u884c\uff11\u30ec\u30b3\u30fc\u30c9\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 6.\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306fURI\u304c\u5bfe\u5fdc\u3059\u308b\u3002CONTENT_URI\u5b9a\u6570\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308c\u3070\u5206\u308b\u3002 7.\u5178\u578b\u7684\u306a\u5f62\u5f0f\u306fcontent:\/\/com.example.transportaionprovider\/trains\/122\u3002 \u3000- \u30b9\u30ad\u30fc\u30e0\u90e8\u5206\uff08content:\u306f\u56fa\u5b9a\uff09 \u3000- \u30c9\u30e1\u30a4\u30f3\u90e8\u5206\u306fauthority\u3092\u793a\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u306e\u5834\u5408\u3001Manifest\u306eandroid:authorities\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3067\u5ba3\u8a00\u3055\u308c\u308b\u3082\u306e \u3000- \u30d1\u30b9\u306e\u90e8\u5206\u306f\u30c7\u30fc\u30bf\u7a2e\u5225\u30020\uff5e\u8907\u6570\u30bb\u30b0\u30e1\u30f3\u30c8\u304c\u3042\u308a\u5f97\u308b\u3002 \u3000- \u672b\u5c3e\u306f\u30ec\u30b3\u30fc\u30c9\u306e_ID\u5024 \u4ee5\u4e0b\u306e\u30d6\u30ed\u30b0\u3068\u304b\u3092\u898b\u308b\u3068\u3001Content URI\u306fOS\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u304b\u30e1\u30fc\u30ab\u30fc\u3068\u304b\u3067\u9055\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u305d\u3046\u306a\u306e\u3067\u8981\u6ce8\u610f\u3002 Android 2.2 \u306e\u30ab\u30ec\u30f3\u30c0\u30fcContentProvier \u306b\u5bfe\u5fdchttp:\/\/d.hatena.ne.jp\/rmiya\/20100725\/1280028729<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,11],"tags":[],"class_list":["post-1029","post","type-post","status-publish","format-standard","hentry","category-android","category-develop"],"_links":{"self":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1029"}],"version-history":[{"count":1,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1029\/revisions"}],"predecessor-version":[{"id":1030,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1029\/revisions\/1030"}],"wp:attachment":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}