{"id":288,"date":"2013-05-08T12:33:45","date_gmt":"2013-05-08T03:33:45","guid":{"rendered":"https:\/\/www.united-bears.co.jp\/blog\/?p=288"},"modified":"2013-05-08T12:33:45","modified_gmt":"2013-05-08T03:33:45","slug":"%e7%94%bb%e5%83%8f%e3%81%8c%e5%8b%9d%e6%89%8b%e3%81%ab%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%82%8b%ef%bd%9eandroid-%e3%81%ae%e3%83%a1%e3%83%87","status":"publish","type":"post","link":"https:\/\/www.united-bears.co.jp\/blog\/archives\/288","title":{"rendered":"\u753b\u50cf\u304c\u52dd\u624b\u306b\u30ae\u30e3\u30e9\u30ea\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\uff5eAndroid \u306e\u30e1\u30c7\u30a3\u30a2\u30b9\u30ad\u30e3\u30ca\u30fc\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>Android \u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u72ec\u81ea\u306b\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb(\u753b\u50cf\u3001\u52d5\u753b\u3001\u97f3\u697d)\u3092\u7ba1\u7406\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u3088\u3046\u306b\u3001MediaStore \u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u4efb\u610f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c MediaStore \u306b\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u3092\u767b\u9332\u30fb\u53c2\u7167\u3067\u304d\u308b\u3002\u305f\u3068\u3048\u3070\u3001\u6a19\u6e96\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ae\u30e3\u30e9\u30ea\u30fc\u306f\u3001MediaStore \u306b\u767b\u9332\u3055\u308c\u305f\u753b\u50cf\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u3002MediaStore \u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3001\u305f\u3068\u3048\u3070\u753b\u50cf\u3092\u767b\u9332\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>\u72ec\u81ea\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3068\u3063\u3066\u306f\u3001\u5c11\u3005\u3084\u3063\u304b\u3044\u306a\u52d5\u304d\u306b\u306a\u308b\u3002\u305f\u3068\u3048\u3070\u3001\u30ae\u30e3\u30e9\u30ea\u30fc\u3092 Intent \u7d4c\u7531\u3067\u547c\u3073\u51fa\u3057\u3066\u753b\u50cf\u3092\u30b3\u30d4\u30fc\u3057\u305f\u5834\u5408\u3001\u540c\u3058\u753b\u50cf\u304c\u8907\u6570 MediaStore \u306b\u767b\u9332\u3055\u308c\u308b\u3002\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u308b\u3068\u3001\u300c\u5143\u306e\u753b\u50cf\u300d\u300c\u30b3\u30d4\u30fc\u3057\u305f\u753b\u50cf\u300d\u300c\u72ec\u81ea\u306b\u4f5c\u6210\u3057\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u300d\u304c\u30ae\u30e3\u30e9\u30ea\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u30ae\u30e3\u30e9\u30ea\u30fc\u306b\u8868\u793a\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001MediaStore \u306b\u767b\u9332\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u306a\u3051\u308c\u3070\u3044\u3044\u3060\u3051\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u5b9f\u306f\u305d\u3046\u3067\u306f\u306a\u304f\u3001Media Scanner \u304c\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u8d77\u52d5\u3057\u3066\u304a\u308a\u3001\u6687\u306a\u3068\u304d\u306b\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3057\u3066\u56de\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n<p>Media Scanner \u306b\u3001\u691c\u7d22\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u3057\u3066\u307f\u308b\u3068\u3001<a href=\"http:\/\/developer.android.com\/reference\/android\/provider\/MediaStore.html#MEDIA_IGNORE_FILENAME\" target=\"_blank\">MediaStore API \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u30d2\u30f3\u30c8\u304c\u3042\u3063\u305f\u3002<\/p>\n<blockquote><p>\npublic static final String MEDIA_IGNORE_FILENAME<\/p>\n<p>Added in API level 9<br \/>\nName of the file signaling the media scanner to ignore media in the containing directory and its subdirectories. Developers should use this to avoid application graphics showing up in the Gallery and likewise prevent application sounds and music from showing up in the Music app.<\/p>\n<p>Constant Value: &#8220;.nomedia&#8221;\n<\/p><\/blockquote>\n<p>\u3055\u3089\u306b\u3001.nomedia \u3067\u63a2\u3057\u3066\u3044\u304f\u3068\u3001<a href=\"http:\/\/developer.android.com\/guide\/topics\/data\/data-storage.html#filesExternal\" target=\"_blank\">Storage Option<\/a>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4e2d\u306b\u3001\u4ee5\u4e0b\u306e\u8a18\u8ff0\u304c\u3042\u3063\u305f\u3002<\/p>\n<blockquote><p>\nHiding your files from the Media Scanner<\/p>\n<p>Include an empty file named .nomedia in your external files directory (note the dot prefix in the filename). This will prevent Android&#8217;s media scanner from reading your media files and including them in apps like Gallery or Music.\n<\/p><\/blockquote>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u72ec\u81ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u300c.nomedia\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u304a\u3051\u3070\u3044\u3044\u3063\u3066\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android \u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u72ec\u81ea\u306b\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb(\u753b\u50cf\u3001\u52d5\u753b\u3001\u97f3\u697d)\u3092\u7ba1\u7406\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u3088\u3046\u306b\u3001MediaStore \u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u4efb\u610f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c MediaStore \u306b\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u3092\u767b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-android","category-android-develop"],"_links":{"self":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":7,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts\/288\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}