{"id":638,"date":"2023-01-15T15:47:39","date_gmt":"2023-01-15T06:47:39","guid":{"rendered":"https:\/\/www.dogrow.net\/android\/?p=638"},"modified":"2023-01-15T15:56:01","modified_gmt":"2023-01-15T06:56:01","slug":"blog34","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/android\/blog34\/","title":{"rendered":"(34) Android Emulator\u304b\u3089\u540c\u3058\u30de\u30b7\u30f3\u4e0a\u306e Web\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u3002"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>AndroidStudio\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u3001<br \/>\n<span class=\"my_fc_deeppinkBBig\">Android\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u304b\u3089\u3001<br \/>\n\u540c\u3058\u30d1\u30bd\u30b3\u30f3\u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b HTTP\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u3002<\/span><\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<h3 class=\"my_h\">(1) \u30c0\u30e1\u306a\u4f8b<\/h3>\n<p><span class=\"my_fc_crimsonBBig\">localhost\u3084 127.0.0.1\u306f\u4f7f\u3048\u306a\u3044\u3002<\/span><br \/>\n\u66f8\u3044\u3066\u3082\u8a8d\u8b58\u3057\u3066\u304f\u308c\u306a\u3044&#8230;<\/p>\n<h3 class=\"my_h\">(2) OK\u306a\u4f8b1 : \u7269\u7406\u7684\u306b\u30eb\u30fc\u30bf\u30fc\u304c\u8a8d\u8b58\u3057\u3066\u3044\u308b IP\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u3046\u3002<\/h3>\n<p><span class=\"my_fc_blueBBig\">192.168.1.15<\/span> \u306a\u3069\u3002<\/p>\n<h3 class=\"my_h\">(3) OK\u306a\u4f8b2 : AndroidStudio\u306e\u4eee\u60f3\u30eb\u30fc\u30bf\u30fc\u304c\u8a8d\u8b58\u3057\u3066\u3044\u308b IP\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u3046\u3002<\/h3>\n<p><span class=\"my_fc_blueBBig\">10.0.2.2<\/span><\/p>\n<p>\u53c2\u8003: <a href=\"https:\/\/developer.android.com\/studio\/run\/emulator-networking.html\" target=\"_blank\" rel=\"noopener\">\u3010AndroidStudio\u516c\u5f0f\u3011Android Emulator \u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/android\/wp-content\/uploads\/2023\/01\/i0012.jpg\" alt=\"\" class=\"my_add_bs1\" \/><\/a><\/p>\n<p><span class=\"my_fs_big2 my_fw_bold\">Java\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u3067\u306e\u4f7f\u7528\u4f8b<\/span><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nRequest req = new Request.Builder().url(&quot;http:\/\/10.0.2.2\/MyPage&quot;).build();\r\n<\/pre>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 AndroidStudio\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u3001 Android\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u304b\u3089\u3001 \u540c\u3058\u30d1\u30bd\u30b3\u30f3\u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b HTTP\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u3002 2. \u3084\u3063\u3066\u307f\u308b (1) \u30c0\u30e1\u306a\u4f8b \u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/android\/blog34\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-638","post","type-post","status-publish","format-standard","hentry","category-androidstudio","category-http"],"views":792,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/comments?post=638"}],"version-history":[{"count":9,"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"predecessor-version":[{"id":648,"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/posts\/638\/revisions\/648"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/android\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}