{"id":252,"date":"2010-09-08T23:49:43","date_gmt":"2010-09-08T14:49:43","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/09\/08\/android_gae\/"},"modified":"2010-09-08T23:49:43","modified_gmt":"2010-09-08T14:49:43","slug":"android_gae","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/09\/08\/android_gae\/","title":{"rendered":"Android \u30a2\u30d7\u30ea\u304b\u3089\u3001GAE \u958b\u767a\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5229\u7528\u3059\u308b"},"content":{"rendered":"<ul>\n<li>\n<h3><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/08\/06\/android_gae_windows7\">Android (\u5b9f\u6a5f) \u3068 GAE \u3092\u9023\u643a\u3055\u305b\u308b\u305f\u3081\u306e\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3092 Windows7 \u306b\u69cb\u7bc9<\/a><\/h3>\n<\/li>\n<li>\n<h3><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/08\/09\/android_google_gae\">Android \u30a2\u30d7\u30ea\u304b\u3089 Google \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5229\u7528\u3057\u3066 GAE \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528<\/a><\/h3>\n<\/li>\n<\/ul>\n<p>\u3068\u3001Android \u7aef\u672b\u306eGoogle \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7528\u3044\u3066\u3001GAE\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u6e96\u5099\u3092\u5f90\u3005\u306b\u9032\u3081\u3066\u304d\u3066\u3044\u305f\u306e\u3060\u304c\u3001GAE\u306e\u958b\u767a\u74b0\u5883\u3067\u306e\u3084\u308a\u65b9\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u3068\u308a\u3042\u3048\u305a\u5b9f\u969b\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u8a66\u3057\u3066\u3044\u305f\u3002<\/p>\n<p>\u304c\u3001\u4f55\u3068\u304b\u3044\u3051\u308b\u65b9\u6cd5\u304c\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3002<\/p>\n<p>\u901a\u5e38PC\u304b\u3089\u3001GAE\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30ed\u30b0\u30a4\u30f3\u3057\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u30ca\u30d3\u30b2\u30fc\u30c8\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"gae_auth04\" border=\"0\" alt=\"gae_auth04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth04_thumb.jpg\" width=\"366\" height=\"165\" \/><\/a>&nbsp;<\/p>\n<p>\u305f\u3060\u3001Android \u7aef\u672b\u3067\u306fGoogle \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30ed\u30b0\u30a4\u30f3\u3092\u5fc5\u8981\u3068\u3059\u308bGAE\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u753b\u9762\u3092\u8868\u793a\u3055\u305b\u3066\u3001\u4e8b\u524d\u306b\u8a8d\u8a3c\u3092\u884c\u3063\u3066\u304a\u304f\u3053\u3068\u304c\u51fa\u6765\u308b\u3002\u305d\u306e\u624b\u9806\u306f\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/08\/09\/android_google_gae\">\u524d\u56de<\/a>\u5b9f\u73fe\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/android_gae03.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"android_gae03\" border=\"0\" alt=\"android_gae03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/android_gae03_thumb.png\" width=\"148\" height=\"244\" \/><\/a> <\/p>\n<p>\u304c\u3001\u540c\u3058\u624b\u9806\u3067\u3001\u30db\u30b9\u30c8\u540d\u306e\u307f\u3001\u958b\u767a\u7528\u306eGAE \u306e Web\u30b5\u30fc\u30d0\u30fc\u306b\u3057\u3066\u3082\u305d\u306e\u307e\u307e\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u3002<\/p>\n<p>\u307e\u3041\u3042\u304f\u307e\u3067\u958b\u767a\u74b0\u5883\u306a\u306e\u3067\u3001\u8a8d\u8a3c\u5468\u308a\u307e\u3067\u5b8c\u5168\u306b\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u51fa\u6765\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u7121\u3044\u306e\u3060\u308d\u3046\u3002<\/p>\n<p>\u958b\u767a\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u3001\u4f55\u3067\u3082\u3044\u3044\u306e\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u76ee\u7684\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u9077\u79fb\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"gae_auth02\" border=\"0\" alt=\"gae_auth02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth02_thumb.jpg\" width=\"244\" height=\"136\" \/><\/a> <\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u307e\u3041 Cookie \u306b\u306a\u306b\u304c\u3057\u304b\u306e\u5024\u3092\u57cb\u3081\u8fbc\u3093\u3067\u3044\u308b\u306e\u3060\u308d\u3046\u3068\u8a00\u3046\u3053\u3068\u3067\u3001Firebug \u3067\u306e\u305e\u3044\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"gae_auth01\" border=\"0\" alt=\"gae_auth01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth01_thumb.jpg\" width=\"465\" height=\"240\" \/><\/a> <\/p>\n<p>\u3053\u3093\u306a\u30a8\u30f3\u30c8\u30ea\u30fc\u304c\u3002\u306a\u3093\u304b\u3001\u5f8c\u534a\u306e\u6570\u5024\u306e\u90e8\u5206\u306f\u52d5\u7684\u306b\u751f\u6210\u3057\u3066\u3044\u308b\u306e\u304b\u306a\uff1f\u3068\u601d\u3063\u3066\u3001<a href=\"http:\/\/www.google.co.jp\/search?q=test%40example.com%3AFalse%3A185804764220139124118&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;hl=ja&amp;client=firefox-a&amp;rlz=1R1GGLL_ja___JP385\">\u691c\u7d22\u3057\u3066\u307f\u308b<\/a>\u3068\u6570\u4ef6\u305d\u306e\u307e\u307e\u306e\u5024\u304c\u30d2\u30c3\u30c8\u3002<\/p>\n<pre class=\"prettyprint linenums\">dev_appserver_login=<a href=\"mailto:dev_appserver_login=test@example.com:False:185804764220139124118\">test@example.com:False:185804764220139124118<\/a><\/pre>\n<p>\u306a\u3093\u304b\u3001\u56fa\u5b9a\u5024\u307f\u305f\u3044\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e Cookie \u306b\u30bb\u30c3\u30c8\u3057\u3066\u9001\u4fe1\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3001\u3001\u3001<\/p>\n<pre class=\"prettyprint linenums\">String uri   = null;\r\nString acsid = null;\r\nHttpGet httpGet = null;\r\nHttpResponse response = null;\r\nif (Debug.isDebuggerConnected()) {\r\n    \/\/ \u30c7\u30d0\u30c3\u30b0\u6642\u306e\u30b3\u30fc\u30c9\r\n    uri   = \"http:\/\/192.168.10.119:8080\/cardroid\";\r\n    acsid = \"dev_appserver_login=\\\"test@example.com:False:185804764220139124118\\\"\";\r\n} else {\r\n    \/\/ \u30ea\u30ea\u30fc\u30b9\u6642\u306e\u30b3\u30fc\u30c9\u4ee5\u4e0b\u53c2\u7167\r\n    \/\/ https:\/\/www.typea.info\/blog\/index.php\/2010\/08\/09\/android_google_gae \r\n}\r\nHttpPost httpPost = new HttpPost(uri);\r\nhttpPost.setHeader(\"Cookie\", acsid);\r\n\r\nresponse = client.execute(httpPost);\r\nBufferedReader reader = new BufferedReader(new InputStreamReader(in));\r\n    String l = null;\r\n    while((l = reader.readLine()) != null) {\r\n    Log.i(\"MyApp\",l);\r\n}<\/pre>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u3081\u3067\u305f\u304f\u3001\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3068\u306a\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"gae_auth03\" border=\"0\" alt=\"gae_auth03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/a2ac1745e1cb_14305\/gae_auth03_thumb.jpg\" width=\"776\" height=\"97\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067\u3001\u958b\u767a\u74b0\u5883\u3067\u3001GAE\u30a2\u30d7\u30ea\u3092\u30c6\u30b9\u30c8\u51fa\u6765\u305d\u3046\u3060\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android (\u5b9f\u6a5f) \u3068 GAE \u3092\u9023\u643a\u3055\u305b\u308b\u305f\u3081\u306e\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3092 Windows7 \u306b\u69cb\u7bc9 Android \u30a2\u30d7\u30ea\u304b\u3089 Google \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5229\u7528\u3057\u3066 GAE \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528 \u3068\u3001Android \u7aef\u672b\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[39,19],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-android","category-googleappengine"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}