{"id":247,"date":"2010-08-24T01:07:03","date_gmt":"2010-08-23T16:07:03","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/08\/24\/android_2\/"},"modified":"2010-08-24T01:07:03","modified_gmt":"2010-08-23T16:07:03","slug":"android_2","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/08\/24\/android_2\/","title":{"rendered":"Android \u30c7\u30d0\u30c3\u30b0\u4e2d\u304b\u5426\u304b\u3092\u5224\u5b9a\u3059\u308b"},"content":{"rendered":"<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/08\/09\/android_google_gae\">Android \u30a2\u30d7\u30ea\u304b\u3089\u3001GAE \u306e\u8a8d\u8a3c\u3092\u884c\u3046\u3053\u3068\u306f\u51fa\u6765\u305f\u306e\u3060\u304c\u3001GAE \u306e SDK\u306b\u542b\u307e\u308c\u308b\u958b\u767a\u74b0\u5883\u306b\u3046\u307e\u304f\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u3002<\/a><\/p>\n<p>\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u4e2d\u304b\u5426\u304b\u3092\u5224\u5b9a\u3057\u3066\u3001\u30c7\u30d0\u30c3\u30b0\u4e2d\u306e\u5834\u5408\u306f\u3001\u63a5\u7d9a\u5148\u306eURL\u3092\u30ed\u30fc\u30ab\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u66f4\u3057\u3001\u8a8d\u8a3c\u30d7\u30ed\u30bb\u30b9\u3092\u30b9\u30ad\u30c3\u30d7\u3055\u305b\u3088\u3046\u3068\u601d\u3044\u305d\u308c\u3089\u3057\u3044API\u3092\u63a2\u3057\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"http:\/\/developer.android.com\/reference\/android\/os\/Debug.html#isDebuggerConnected%28%29\">android.os.Debug.isDebuggerConnected()<\/a><\/p>\n<p>\u3042\u3063\u305f\u3002<\/p>\n<p>\u30fb\u30fb\u30fb \u304c\u3001\u8a66\u305b\u3069\u8a66\u305b\u3069 \u4e0a\u8a18\u306e\u7d50\u679c\u304c true \u306b\u306a\u3089\u306a\u3044\u3002\u3044\u3089\u3044\u3089\u3044\u3089\u3044\u3089\u3002<\/p>\n<p>\u3057\u3089\u3079\u3066\u305f\u3089\u3001SDK\u306b\u3053\u3093\u306a\u8a18\u8ff0\u304c\u3002<\/p>\n<p><a href=\"http:\/\/developer.android.com\/guide\/developing\/eclipse-adt.html#RunningOnDevice\">Declare your application as debuggable in your manifest<\/a><\/p>\n<p>\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3051\u3070\u3044\u3044\u306e\u306d\u3002\u3075\u30fc\u3093\u3002<\/p>\n<p>\u3067\u3001\u898b\u3066\u307f\u308b\u3068\u3001\u3042\u308a\u307e\u3057\u305f\u3001Debuggable = true \u306b\u8a2d\u5b9a\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px\" title=\"android_debugable01\" border=\"0\" alt=\"android_debugable01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable01_thumb.jpg\" width=\"390\" height=\"250\" \/><\/a><\/p>\n<p>LogCat \u306b\u51fa\u529b\u3059\u308b\u3068\u30ad\u30e3\u30d7\u30c1\u30e3\u304c\u3068\u308c\u306a\u3044\u3057\u3001false \u306e\u5834\u5408\u78ba\u8a8d\u304c\u51fa\u6765\u306a\u3044\u306e\u3067\u3001Toast \u306b\u8868\u793a\u3055\u305b\u308b\u3079\u304f\u3001\u30e1\u30a4\u30f3 Activity \u306e onCreate \u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3002<\/p>\n<pre class=\"prettyprint linenums\">(Toast.makeText(this, \r\n    String.valueOf(\"Debug.isDebuggerConnected() = \" + Debug.isDebuggerConnected()), \r\n    Toast.LENGTH_LONG)).show();\r\n<\/pre>\n<p>(\u304c\u3001Toast \u306b\u3057\u3066\u3082\u30ad\u30e3\u30d7\u30c1\u30e3\u306f\u3068\u308c\u306a\u3044\u3053\u3068\u306b\u5f8c\u3067\u6c17\u3065\u304f) <\/p>\n<p>\u8d77\u52d5\u3057\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u3002\u3061\u3083\u3093\u3068\u6a5f\u80fd\u3057\u3066\u308b\u3063\u307d\u3044\u3002\u3042\u305f\u308a\u307e\u3048\u304b\u3002<\/p>\n<p>&nbsp;<a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable02.png\"><img loading=\"lazy\" decoding=\"async\" style=\"BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px\" title=\"android_debugable02\" border=\"0\" alt=\"android_debugable02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable02_thumb.png\" width=\"186\" height=\"307\" \/><\/a><\/p>\n<p>\u305d\u3057\u3066\u3001\u304d\u3061\u3093\u3068 Toast \u306b true \u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093 USB \u30c7\u30d0\u30c3\u30b0\u3092\u505c\u6b62\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068 false \u304c\u8fd4\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u30c7\u30d0\u30c3\u30b0\u6642\u3068\u901a\u5e38\u6642\u3067\u6319\u52d5\u304c\u5207\u308a\u66ff\u3048\u3089\u308c\u307e\u3059\u3002\u4e00\u6b69\u91ce\u671b\u306b\u8fd1\u3065\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable03.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_debugable03\" border=\"0\" alt=\"android_debugable03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable03_thumb.png\" width=\"244\" height=\"124\" \/><\/a><\/p>\n<p>Eclipse \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304b\u3089\u3082\u3044\u308d\u3044\u308d\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px\" title=\"android_debugable04\" border=\"0\" alt=\"android_debugable04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android_667\/android_debugable04_thumb.jpg\" width=\"467\" height=\"120\" \/><\/a>&nbsp;&nbsp;&nbsp; <\/p>\n<\/p>\n<p>\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u3068\u304d\u306b\u306f false \u306b\u623b\u3057\u305f\u65b9\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android \u30a2\u30d7\u30ea\u304b\u3089\u3001GAE \u306e\u8a8d\u8a3c\u3092\u884c\u3046\u3053\u3068\u306f\u51fa\u6765\u305f\u306e\u3060\u304c\u3001GAE \u306e SDK\u306b\u542b\u307e\u308c\u308b\u958b\u767a\u74b0\u5883\u306b\u3046\u307e\u304f\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u3002 \u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u4e2d\u304b\u5426\u304b\u3092\u5224\u5b9a\u3057\u3066\u3001\u30c7\u30d0\u30c3\u30b0\u4e2d\u306e\u5834\u5408\u306f\u3001\u63a5\u7d9a\u5148\u306eURL\u3092\u30ed [&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-247","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\/247","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=247"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/247\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}