{"id":2377,"date":"2011-06-25T00:00:50","date_gmt":"2011-06-24T22:00:50","guid":{"rendered":"http:\/\/blogs.wittwer.fr\/whiler\/?p=2377"},"modified":"2012-03-03T13:12:53","modified_gmt":"2012-03-03T12:12:53","slug":"debogage-android-vrai-telephone","status":"publish","type":"post","link":"https:\/\/blogs.wittwer.fr\/whiler\/2011\/06\/25\/debogage-android-vrai-telephone\/","title":{"rendered":"D\u00e9bogage Android sur un vrai t\u00e9l\u00e9phone"},"content":{"rendered":"<p>Depuis que j&rsquo;ai commenc\u00e9 \u00e0 d\u00e9velopper des applications Android, j&rsquo;utilise syst\u00e9matiquement l&rsquo;\u00e9mulateur pour tester, d\u00e9boguer si besoin, sur plusieurs versions du SDK.<br \/>\nLorsque tout semble parfait, je d\u00e9ploie manuellement sur mon vrai t\u00e9l\u00e9phone pour tester.<\/p>\n<p>Ayant<a href=\"\/whiler\/2011\/06\/24\/adb-pour-htc-desire-windows-7\/\" target=\"_blank\"> configur\u00e9 le pilote ADB<\/a> sur la machine o\u00f9 j&rsquo;ai Eclipse avec le SDK d&rsquo;Android, j&rsquo;ai eu envie d&rsquo;automatiser le d\u00e9ploiement des APK que je d\u00e9veloppe sur mon t\u00e9l\u00e9phone.<\/p>\n<p>J&rsquo;ai trouv\u00e9 une <a href=\"https:\/\/developer.android.com\/guide\/developing\/device.html\" target=\"_blank\">page int\u00e9ressante<\/a> sur le site <a href=\"https:\/\/developer.android.com\/\" target=\"_blank\">Android Developers<\/a>. <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/yes.gif\" alt=\"(y)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>Cependant, les explications succinctes que l&rsquo;on y trouve ne me permettaient pas d&rsquo;obtenir l&rsquo;interface pour choisir mon t\u00e9l\u00e9phone.<\/p>\n<div id=\"attachment_2378\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"\/whiler\/wp-content\/uploads\/2011\/06\/android_device_chooser.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2378\" class=\"size-medium wp-image-2378\" title=\"Choix du p\u00e9riph\u00e9rique\" src=\"\/whiler\/wp-content\/uploads\/2011\/06\/android_device_chooser-300x205.png\" alt=\"Choix du p\u00e9riph\u00e9rique\" width=\"300\" height=\"205\" srcset=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2011\/06\/android_device_chooser-300x205.png 300w, https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2011\/06\/android_device_chooser.png 688w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-2378\" class=\"wp-caption-text\">Choix du p\u00e9riph\u00e9rique<\/p><\/div>\n<p>Un \u00e9mulateur se lan\u00e7ait et l&rsquo;application y \u00e9tait d\u00e9ploy\u00e9e. <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/worry.gif\" alt=\":s\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><br \/>\n&nbsp;<br \/>\nC&rsquo;\u00e9tait tout \u00e0 fait logique, car j&rsquo;avais sp\u00e9cifi\u00e9 la cible \u00e0 utiliser sur mes diff\u00e9rents projets. <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/dull.gif\" alt=\"|-(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><br \/>\n (idea) Il faut donc, obligatoirement \u00eatre en manuel, ou d\u00e9cocher tous les p\u00e9riph\u00e9riques virtuels.<\/p>\n<div id=\"attachment_2379\" style=\"width: 230px\" class=\"wp-caption aligncenter\"><a href=\"\/whiler\/wp-content\/uploads\/2011\/06\/run_configurations.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2379\" class=\"size-medium wp-image-2379\" title=\"Configurations d'ex\u00e9cution\" src=\"\/whiler\/wp-content\/uploads\/2011\/06\/run_configurations-220x300.png\" alt=\"Configurations d'ex\u00e9cution\" width=\"220\" height=\"300\" srcset=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2011\/06\/run_configurations-220x300.png 220w, https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2011\/06\/run_configurations.png 574w\" sizes=\"auto, (max-width: 220px) 100vw, 220px\" \/><\/a><p id=\"caption-attachment-2379\" class=\"wp-caption-text\">Configurations d&#39;ex\u00e9cution<\/p><\/div>\n<p>Le d\u00e9ploiement, le d\u00e9bogage, &#8230;, tout fonctionne&nbsp;!<br \/>\n<div id=\"attachment_2388\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"\/whiler\/wp-content\/uploads\/2011\/06\/phone_debug.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2388\" src=\"\/whiler\/wp-content\/uploads\/2011\/06\/phone_debug-300x225.png\" alt=\"D\u00e9bogage\" title=\"D\u00e9bogage\" width=\"300\" height=\"225\" class=\"size-medium wp-image-2388\" srcset=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2011\/06\/phone_debug-300x225.png 300w, https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2011\/06\/phone_debug.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-2388\" class=\"wp-caption-text\">D\u00e9bogage<\/p><\/div><\/p>\n<div class=\"thanks_button_div\" \n                  style=\"float: right; margin-right: 10px; margin-top:10px;\"><div id=\"thanksButtonDiv_2377_1\" style=\"background-image:url(https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/plugins\/thanks-you-counter-button\/images\/thanks_compact_brown1.png); background-repeat:no-repeat; float: left; display: inline;\"\n                onmouseover=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_2377_1', true);\" \n                onmouseout=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_2377_1', false);\"\n                onclick=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_2377_1', false);\" >\n                <input type=\"button\" onclick=\"thankYouButtonClick(2377, 'You left &ldquo;Thanks&rdquo; already for this post')\" value=\"Merci\u00a0 0\"\n                  class=\"thanks_button thanks_compact thanks_brown1\"\n                  style=\"  font-family: Verdana, Arial, Sans-Serif; font-size: 14px; font-weight: normal;; color:#00f;\"\n                  id=\"thanksButton_2377_1\" title=\"Click to leave &ldquo;Thanks&rdquo; for this post\"\/>\n             <\/div><div id=\"ajax_loader_2377_1\" style=\"display:inline;visibility: hidden;\"><img decoding=\"async\" alt=\"ajax loader\" src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/plugins\/thanks-you-counter-button\/images\/ajax-loader.gif\" \/><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Depuis que j\u2019ai commenc\u00e9 \u00e0 d\u00e9velopper des applications Android, j\u2019utilise syst\u00e9matiquement l\u2019\u00e9mulateur pour tester, d\u00e9boguer si besoin, sur plusieurs versions du SDK.<br \/>\nLorsque tout semble parfait, je d\u00e9ploie manuellement sur mon vrai t\u00e9l\u00e9phone pour tester.<\/p>\n<p>Ayant configur\u00e9 le pilote ADB sur la machine o\u00f9 j\u2019ai Eclipse avec le SDK d\u2019Android, j\u2019ai eu envie d\u2019automatiser le d\u00e9ploiement des APK que je d\u00e9veloppe sur mon t\u00e9l\u00e9phone&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[132,6],"tags":[158],"class_list":["post-2377","post","type-post","status-publish","format-standard","hentry","category-android","category-dev","tag-android"],"_links":{"self":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/2377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/comments?post=2377"}],"version-history":[{"count":0,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/2377\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/media?parent=2377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/categories?post=2377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/tags?post=2377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}