{"id":7015,"date":"2019-04-24T10:00:34","date_gmt":"2019-04-24T01:00:34","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=7015"},"modified":"2019-04-23T20:16:59","modified_gmt":"2019-04-23T11:16:59","slug":"%e6%96%b0%e4%ba%ba%e6%97%a5%e8%aa%8c12","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/7015","title":{"rendered":"\u65b0\u4eba\u65e5\u8a8c12"},"content":{"rendered":"\n<p>Android\u30a2\u30d7\u30ea\u4e0a\u3067\u4fdd\u5b58\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304c<\/p>\n\n\n\n<p>PC\u4e0a\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305a\u306b\u56f0\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u30a2\u30d7\u30ea\u5185\u3067\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f<\/p>\n\n\n\n<p>\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u66f8\u304d\u8fbc\u3093\u3060\u3060\u3051\u3067\u306f\u3001<\/p>\n\n\n\n<p>\u30b9\u30de\u30db\u306e\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u30a2\u30d7\u30ea\u3084\u30d1\u30bd\u30b3\u30f3\u3067\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3001<\/p>\n\n\n\n<p>\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001MediaStore\u3078\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3044\u304f\u3064\u304b\u65b9\u6cd5\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f<\/p>\n\n\n\n<p>MediaStore\u306b\u767b\u9332\u3059\u308b\u305f\u3081\u306bMediaScanner\u306b\u4f9d\u983c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>MediaScannerConnection\u306escanFile\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30fc\u30c9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>val file = File(\/*\u3053\u3053\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9*\/);\nval filepath = arrayOf&lt;String>(file.absolutePath)\n MediaScannerConnection.scanFile(context, filepath, null, null)<\/code><\/pre>\n\n\n\n<p> scanFile\u30e1\u30bd\u30c3\u30c9 \u306e\u7b2c1\u5f15\u6570\u306f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3001<\/p>\n\n\n\n<p>\u7b2c2\u5f15\u6570\u304c\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306e\u914d\u5217\u3001<\/p>\n\n\n\n<p>\u7b2c3\u5f15\u6570\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u306e\u914d\u5217\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306f\u7701\u7565\u53ef\u80fd\u3067\u7701\u7565\u3057\u305f\u5834\u5408\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u304b\u3089\u63a8\u6e2c\u3057\u3066\u304f\u308c\u307e\u3059\u3002 <\/p>\n\n\n\n<p>\u7b2c4\u5f15\u6570\u306f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u3059\u304c\u3001\u7701\u7565\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u308f\u305a\u304b\u6570\u884c\u3067\u5b9f\u73fe\u53ef\u80fd\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6c34\u66dc\u62c5\u5f53:Tanaka<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7015\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/7015\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u65e5\u8a8c12\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7015\" data-text=\"\u65b0\u4eba\u65e5\u8a8c12\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7015\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7015\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Android\u30a2\u30d7\u30ea\u4e0a\u3067\u4fdd\u5b58\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304c PC\u4e0a\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305a\u306b\u56f0\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[119,27],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7015"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=7015"}],"version-history":[{"count":10,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7015\/revisions"}],"predecessor-version":[{"id":7027,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7015\/revisions\/7027"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=7015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=7015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=7015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}