{"id":3710,"date":"2011-11-17T09:33:43","date_gmt":"2011-11-17T04:03:43","guid":{"rendered":"http:\/\/windowsvj.com\/wpblog\/2011\/11\/android-development-getting-started\/"},"modified":"2011-11-20T20:50:27","modified_gmt":"2011-11-20T15:20:27","slug":"android-development-getting-started","status":"publish","type":"post","link":"http:\/\/windowsvj.com\/wpblog\/2011\/11\/android-development-getting-started\/","title":{"rendered":"Android Development [Getting Started]"},"content":{"rendered":"<p>So you want to develop for Android ? Huh\u2026 ? Android is a open source OS by Google (rather purchased by Google in 2005) which is used in Mobile phones as well as in tablets. Hardware manufacturers like Samsung, Amazon are using Android to power their devices. <\/p>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image17.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb17.png\" width=\"123\" height=\"132\" \/><\/a><\/p>\n<p align=\"left\">You would ask why you would want to develop an application in Android. Reasons may be a boost to your career, one of the demanding needs in today\u2019s scenario and yeah it is cool. (Though we found Windows Phone 7 cooler, which we would cover coming week)<\/p>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image18.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb18.png\" width=\"215\" height=\"391\" \/><\/a><\/p>\n<p>So if you want to get started with development of Android, here is list of tools &amp; components you would require:<\/p>\n<p><strong>1. Java <\/strong><\/p>\n<ul>\n<li>Go to <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html<\/a>&#160; <\/li>\n<li>Select \u201cJava Platform, Standard Edition\u201d, by clicking on \u201cDownload JRE.\u201d <\/li>\n<\/ul>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image19.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb19.png\" width=\"367\" height=\"303\" \/><\/a><\/p>\n<ul>\n<li>Select the Windows platform, click the checkbox of &quot;Java SE Runtime Environment 6u24 with JavaFX License Agreement&quot;, and click &quot;Continue&quot;.<\/li>\n<li>On the next page, download the JRE using the hyperlink. <\/li>\n<li>Install it once downloaded. <\/li>\n<\/ul>\n<p><strong>2. Eclipse (Galileo) <\/strong><\/p>\n<ul>\n<li>Go to <a href=\"http:\/\/www.eclipse.org\/downloads\/packages\/release\/galileo\/r\">http:\/\/www.eclipse.org\/downloads\/packages\/release\/galileo\/r<\/a>.<\/li>\n<li>Select the \u201cEclipse IDE for Java Developers\u201d package. <\/li>\n<li>Download Windows 32 bit edition &amp; extract the folder from the zip download to your desktop. <\/li>\n<\/ul>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image20.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb20.png\" width=\"479\" height=\"271\" \/><\/a><\/p>\n<ul>\n<li>Inside the folder, you may find eclipse.exe which is used to start eclipse IDE.<\/li>\n<li>When prompted on first startup, Leave the default workspace alone and select the checkbox titled \u201cUse this as default and do not ask again\u201d.<\/li>\n<\/ul>\n<p><strong>3. Android SDK<\/strong><\/p>\n<ul>\n<li>Download Android SDK from <a href=\"http:\/\/developer.android.com\/sdk\/index.html\">http:\/\/developer.android.com\/sdk\/index.html<\/a> for eclipse. <\/li>\n<li>Select the Windows Package, android?sdk_r09-windows.zip and download it to your desktop. <\/li>\n<\/ul>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image21.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb21.png\" width=\"597\" height=\"189\" \/><\/a><\/p>\n<ul>\n<li>Extract it and execute SDK Setup.exe (or SDK Manager.exe).<\/li>\n<li>A window labeled \u201cChoose Packages to Install\u201d shall be skipped as of now.<\/li>\n<\/ul>\n<p><strong>4. Add ADT plugin <\/strong><\/p>\n<ul>\n<li>Navigate to Help \u2013&gt; Install New Software and then click on Add in the Available Software dialog. <\/li>\n<\/ul>\n<p><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image22.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb22.png\" width=\"594\" height=\"445\" \/><\/a><\/p>\n<ul>\n<li>In the Add Site dialog enter \u201cADT Plugin\u201d in the Name field, and try any of these URL <\/li>\n<ul>\n<li><a href=\"http:\/\/dl?ssl.google.com\/android\/eclipse\">http:\/\/dl?ssl.google.com\/android\/eclipse<\/a> <\/li>\n<li><a href=\"http:\/\/dl?ssl.google.com\/android\/eclipse\/site.html\">http:\/\/dl?ssl.google.com\/android\/eclipse\/site.html<\/a> <\/li>\n<li><a href=\"https:\/\/dl?ssl.google.com\/android\/eclipse\">https:\/\/dl?ssl.google.com\/android\/eclipse<\/a><\/li>\n<\/ul>\n<li>Click on OK; Expand the tree named \u201cDeveloper Tools\u201d. <\/li>\n<li>Check ALL boxes that appear &amp; finsih the installation.<\/li>\n<li>Select Yes for \u201cSoftware Updates\u201d dialog at installation end.<\/li>\n<li>Eclipse will restart.<\/li>\n<\/ul>\n<p><strong>5. Link ADT Plugin and Android SDK<\/strong><\/p>\n<ul>\n<li>Start Eclipse. Navigate to Window \u2013&gt; Preferences<strong>. <\/strong><\/li>\n<li>Click on Android. <\/li>\n<li>In the SDK location browse the path to the android-sdk-windows folder. <\/li>\n<\/ul>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image23.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb23.png\" width=\"625\" height=\"452\" \/><\/a><\/p>\n<ul>\n<li>Click on Apply &amp; Click OK.<\/li>\n<\/ul>\n<p><strong>6. Add Platforms<\/strong><\/p>\n<ul>\n<li>Start Eclipse &amp; go to Window -&gt; Android SDK and ADV Manager &amp; Select \u201cAvailable packages\u201d. <\/li>\n<li>Assuming we are developing apps for Base SDK Android 2.2, Add SDK Platform Android 2.2 and all of the API 8 packages<\/li>\n<\/ul>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image24.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb24.png\" width=\"534\" height=\"397\" \/><\/a><\/p>\n<ul>\n<li>Click on the Accept All radio button for all packages and then click on Install to start. <\/li>\n<li>At the end of a successful installation \u201cRestart ADB&quot;. <\/li>\n<\/ul>\n<p><strong>7. Add Android Virtual Devices (AVDs)<\/strong> <\/p>\n<p>Create an AVD for the Google Nexus One smart phone with these steps: <\/p>\n<p>1.) In Eclipse Go to Window -&gt; Android SDK and AVD Manager <\/p>\n<p>2.) Select \u201cVirtual Devices\u201d. Click New in the right panel. <\/p>\n<p>3.) Type the name of the AVD, for example nexus_one_avd <\/p>\n<p>4.) Set the Target as Android 2.2(The Base SDK for your application) <\/p>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image25.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb25.png\" width=\"625\" height=\"373\" \/><\/a><\/p>\n<p>5.) Set the SD Card Size to 20MB. <\/p>\n<p>6.) Set the Skin Resolution at 480 X 800. <\/p>\n<p>7.) Set the Abstracted LCD Density to 240 &amp; Click Create AVD. <\/p>\n<p>8.) Exit the Android AVD Manager. <\/p>\n<p>Though you may change these settings as per your need they are ideal one for beginner. <\/p>\n<p><strong>8. Hello World Tutorial <\/strong><\/p>\n<p>After this loads of work you may Create your first Hello World Android program, using the steps listed at the page: <a href=\"http:\/\/developer.android.com\/resources\/tutorials\/hello-world.html\">http:\/\/developer.android.com\/resources\/tutorials\/hello-world.html<\/a> <\/p>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image26.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb26.png\" width=\"163\" height=\"244\" \/><\/a><\/p>\n<p>While running the application it will take some time for the Android emulator to load. <strong><em>Make sure you have enough patience to work with Android. <\/em><\/strong>To exit the app and go back to the Android UI, press the ESC key. <\/p>\n<p>For any queries\/Issue\/Questions write us up in the Comment Section\u2026.<\/p>\n<p><strong><em><font color=\"#cccccc\">Android, Android Development, Development Kit for Android, Android for Beginners, Learn Android<\/font><\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you want to develop for Android ? Huh\u2026 ? Android is a open source OS by Google (rather purchased by Google in 2005) which is used in Mobile phones as well as in tablets. Hardware manufacturers like Samsung, Amazon are using Android to power their devices. You would ask [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[257],"tags":[],"class_list":["post-3710","post","type-post","status-publish","format-standard","hentry","category-android-2"],"_links":{"self":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/comments?post=3710"}],"version-history":[{"count":1,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3710\/revisions"}],"predecessor-version":[{"id":3724,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3710\/revisions\/3724"}],"wp:attachment":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/media?parent=3710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/categories?post=3710"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/tags?post=3710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}