{"id":1839,"date":"2011-09-04T12:21:13","date_gmt":"2011-09-04T19:21:13","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=1839"},"modified":"2012-02-12T15:31:04","modified_gmt":"2012-02-12T23:31:04","slug":"getting-started-with-android-deployment-and-debugging","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2011\/09\/getting-started-with-android-deployment-and-debugging\/","title":{"rendered":"Getting Started with Android Deployment and Debugging"},"content":{"rendered":"<p>As usual with Android, getting started on a process usually involves a few hiccups.  Here is a complete list of the steps it took for me to get started with deploying apps directly to my Android phone from my Windows development box.<\/p>\n<ol>\n<li \/>Install the Android SDK.\n<li \/>Add the Android SDK&#8217;s Platform Tools directory to your path (so that you can run the <tt>adb<\/tt> tool).\n<ul>\n<li \/>Click Start\n<li \/>Right click on Computer, select Properties from the menu\n<li \/>Click Advanced System Settings on the left\n<li \/>Click Environmental Variables\n<li \/>Double-click on PATH in the User Variables list, append a semicolon and the Android SDK Platform Tools folder (e.g. &#8220;;C:\\Program Files (x86)\\Android\\android-sdk\\platform-tools&#8221;)<\/ul>\n<li \/>Install the ADB driver for your device.\n<ul>\n<li \/>If you have a Google device (e.g. Nexus One), install the <a href=\"http:\/\/developer.android.com\/sdk\/win-usb.html\">Google ADB driver<\/a>.\n<li \/>If you have a non-Google device (e.g. LG Optimus V), search for &#8220;[your device brand and product name] adb driver&#8221;, which should turn up the necessary driver.  Using the example of the LG Optimus V (VM670 aka LG LGP500), the LG Mobile Support Tool must be installed (be prepared for a uniquely awful user interface).\n    <\/ul>\n<li \/>On your Android device, go to Settings | Applications | Development.  Enable USB debugging.  You might as well enable the other two options, as well.\n<li \/>Plug in your Android device.\n<li \/>Create and compile an Android project.  Locate the .apk file, which will be in your project&#8217;s <tt>bin<\/tt> directory.\n<li \/>Open a command prompt and type, <tt>adb install pathToYourPackage.apk<\/tt>.  If you have an emulator running, you may need to tell adb to only reference the USB device with the <tt>-d<\/tt> switch.\n<\/ul>\n<p>Incidentally, I had some trouble getting my PC to recognize the Android over USB initially.  It took a few minutes for me to realize that the power adapter for my USB hub had come unplugged.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As usual with Android, getting started on a process usually involves a few hiccups. Here is a complete list of the steps it took for me to get started with deploying apps directly to my Android phone from my Windows &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2011\/09\/getting-started-with-android-deployment-and-debugging\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[298,15],"tags":[],"class_list":["post-1839","post","type-post","status-publish","format-standard","hentry","category-android","category-technology"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=1839"}],"version-history":[{"count":16,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1839\/revisions"}],"predecessor-version":[{"id":2019,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1839\/revisions\/2019"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=1839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=1839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=1839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}