{"id":1819,"date":"2020-04-08T09:23:00","date_gmt":"2020-04-08T00:23:00","guid":{"rendered":"https:\/\/www.itchefblog.com\/?p=1819"},"modified":"2021-04-22T02:59:11","modified_gmt":"2021-04-21T17:59:11","slug":"android%ec%97%90%ec%84%9c-%eb%aa%a8%eb%93%a0-%ec%82%ac%ec%a7%84%ec%a0%95%eb%b3%b4-%ea%b0%80%ec%a0%b8%ec%98%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.itchefblog.com\/?p=1819","title":{"rendered":"Android\uc5d0\uc11c \ubaa8\ub4e0 \uc0ac\uc9c4\uc815\ubcf4 \uac00\uc838\uc624\uae30"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/\/\ubaa8\ub4e0 \uc0ac\uc9c4 \uc815\ubcf4 \uac00\uc838\uc624\uae30\nval cursor = contentResolver.query(\n    MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n    null, \/\/\uac00\uc838\uc62c \ud56d\ubaa9 \ubc30\uc5f4\n    null, \/\/\uc870\uac74\n    null, \/\/\uc870\uac74\n    MediaStore.Images.ImageColumns.DATE_TAKEN + &quot; DESC&quot;\n)\n\nif(cursor != null){\n    while(cursor.moveToNext()) {\n        \/\/\uc0ac\uc9c4 \uacbd\ub85c Uri \uac00\uc838\uc624\uae30\n        val uri = cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA))\n\n        Log.d(&quot;MainActivity&quot;, uri)\n    }\n    cursor.close()\n}\n<\/pre>\n\n\n<p>\uc0ac\uc9c4\uc815\ubcf4 \uac00\uc838\uc624\uae30\ub294 \uc704\ud5d8 \uad8c\ud55c\uc774\ub77c manifest\uc5d0 \uad8c\ud55c\ucd94\uac00 \uc678\uc5d0 \uc2e4\ud589 \uc2dc\uc810\uc5d0 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uad8c\ud55c \uc694\uccad\uc744 \ud574\uc57c\ud55c\ub2e4.<\/p>\n\n\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/\/manifest\uc5d0 \ucd94\uac00\ud560 \ub0b4\uc6a9\n&lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; \/&gt;\n<\/pre>\n\n\n<p>\uc0ac\uc9c4\uc5d0 \uc811\uadfc\ud558\uae30 \uc804 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uad8c\ud55c\uc744 \uc694\uccad\ud574\uc57c\ud55c\ub2e4.<br>\uc544\ub798 \ub9c1\ud06c \ucc38\uc870!<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-it-chef\uc758-\uc77c\uc0c1-\ube14\ub85c\uadf8 wp-block-embed-it-chef\uc758-\uc77c\uc0c1-\ube14\ub85c\uadf8\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"mfvkNxGKYK\"><a href=\"https:\/\/www.itchefblog.com\/?p=1821\">\uad8c\ud55c \ud655\uc778 \ubc0f \uc694\uccad<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\uad8c\ud55c \ud655\uc778 \ubc0f \uc694\uccad&#8221; &#8212; IT + CHEF\uc758 \uc77c\uc0c1 \ube14\ub85c\uadf8\" src=\"https:\/\/www.itchefblog.com\/?p=1821&#038;embed=true#?secret=mfvkNxGKYK\" data-secret=\"mfvkNxGKYK\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\uc0ac\uc9c4\uc815\ubcf4 \uac00\uc838\uc624\uae30\ub294 \uc704\ud5d8 \uad8c\ud55c\uc774\ub77c manifest\uc5d0 \uad8c\ud55c\ucd94\uac00 \uc678\uc5d0 \uc2e4\ud589 \uc2dc\uc810\uc5d0 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uad8c\ud55c \uc694\uccad\uc744 \ud574\uc57c\ud55c\ub2e4. \uc0ac\uc9c4\uc5d0 \uc811\uadfc\ud558\uae30 \uc804 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uad8c\ud55c\uc744 \uc694\uccad\ud574\uc57c\ud55c\ub2e4.\uc544\ub798 \ub9c1\ud06c \ucc38\uc870!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[349,372,7,4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1819"}],"collection":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1819"}],"version-history":[{"count":2,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1819\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1819\/revisions\/1823"}],"wp:attachment":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}