{"id":2005,"date":"2014-02-27T11:22:07","date_gmt":"2014-02-27T11:22:07","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=2005"},"modified":"2017-01-27T11:09:11","modified_gmt":"2017-01-27T02:09:11","slug":"apk%ec%97%90-%eb%8d%b0%ec%9d%b4%ed%84%b0-%ed%8c%8c%ec%9d%bc-%eb%84%a3%ec%96%b4-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=2005","title":{"rendered":"APK\uc5d0 \ub370\uc774\ud130 \ud30c\uc77c \ub123\uc5b4 \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc \uc124\uce58 \ud328\ud0a4\uc9c0\uc778 APK \ud30c\uc77c\uc5d0\ub294 \uc774\ubbf8\uc9c0, \ubb38\uc790\uc5f4 \ub4f1\uacfc \uac19\uc740 \ub370\uc774\ud130\ubfd0\ub9cc \uc544\ub2c8\ub77c \uc784\uc774\uc758 \ub370\uc774\ud130 \ud30c\uc77c\ub3c4 \ub123\uc5b4 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc784\uc774\uc758 \ub370\uc774\ud130 \ud30c\uc77c\uc740 res \ud3f4\ub354\uc758 \uc11c\ube0c \ud3f4\ub354\uc778 raw\ub97c \uc9c1\uc811 \ub9cc\ub4e4\uc5b4 \ub123\uc5b4\uc8fc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1327684408.png\" width=\"402\" height=\"264\" \/><\/p>\n<p>\uc774\ub7ec\ud55c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130 \ud30c\uc77c\uc744 \uc800\uc7a5\ud574 \ub450\uba74 \ub2e4\uc74c\uc758 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ud574\ub2f9 \ub370\uc774\ud130 \ud30c\uc77c\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub294 InputStream \uac1d\uccb4\ub97c \uc5bb\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\nInputStream database_db = \r\n    map.getContext().getResources().openRawResource(R.raw.database_db);\r\n<\/pre>\n<p>\uc774\uc81c \uc774 InputStream \uac1d\uccb4\ub97c \ud1b5\ud574 \uc6d0\ud558\ub294 \ub514\ub809\ud1a0\ub9ac\uc5d0 \ud574\ub2f9 \ub370\uc774\ud130 \ud30c\uc77c\uc744 \ubcf5\uc0ac\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc758 \ucf54\ub4dc\ub294 InputStream \uac1d\uccb4\uc5d0 \ub2f4\uaca8\uc9c4 \ub370\uc774\ud130\ub97c \uc6d0\ud558\ub294 \ud30c\uc77c\uba85\uc73c\ub85c \uc800\uc7a5\ud574 \uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.<\/p>\n<pre>\r\nprivate boolean copy(InputStream in, String fileName) {\r\n    try {\r\n        OutputStream os = new FileOutputStream(fileName);\r\n        byte[] buffer = new byte[1024];\r\n        int bytesRead;\r\n        while((bytesRead = in.read(buffer)) !=-1) {\r\n            os.write(buffer, 0, bytesRead);\r\n        }\r\n\t        \r\n        os.flush();\r\n        os.close();\r\n    } catch (IOException e) {\r\n        return false;\r\n    }\r\n\r\n    return true;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc \uc124\uce58 \ud328\ud0a4\uc9c0\uc778 APK \ud30c\uc77c\uc5d0\ub294 \uc774\ubbf8\uc9c0, \ubb38\uc790\uc5f4 \ub4f1\uacfc \uac19\uc740 \ub370\uc774\ud130\ubfd0\ub9cc \uc544\ub2c8\ub77c \uc784\uc774\uc758 \ub370\uc774\ud130 \ud30c\uc77c\ub3c4 \ub123\uc5b4 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc784\uc774\uc758 \ub370\uc774\ud130 \ud30c\uc77c\uc740 res \ud3f4\ub354\uc758 \uc11c\ube0c \ud3f4\ub354\uc778 raw\ub97c \uc9c1\uc811 \ub9cc\ub4e4\uc5b4 \ub123\uc5b4\uc8fc\uba74 \ub429\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130 \ud30c\uc77c\uc744 \uc800\uc7a5\ud574 \ub450\uba74 \ub2e4\uc74c\uc758 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ud574\ub2f9 \ub370\uc774\ud130 \ud30c\uc77c\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub294 InputStream \uac1d\uccb4\ub97c \uc5bb\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. InputStream database_db = map.getContext().getResources().openRawResource(R.raw.database_db); &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=2005\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;APK\uc5d0 \ub370\uc774\ud130 \ud30c\uc77c \ub123\uc5b4 \uc0ac\uc6a9\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-2005","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2005"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2005\/revisions"}],"predecessor-version":[{"id":2885,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2005\/revisions\/2885"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2005"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}