tag:blogger.com,1999:blog-31625059472580128312024-03-19T01:48:50.955-07:00CONFESSIONS OF A DROID-A-HOLICMy journey form an android novice to an android developer and an android experimenter.This will include some development tutorials and other random things about android.I will also consider reviewing apps.AKdroidhttp://www.blogger.com/profile/10768250324472024423noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3162505947258012831.post-29711416113613700052012-03-24T10:38:00.001-07:002012-03-24T10:58:14.514-07:00How’s The View !!! – Part One<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: large;"><span style="line-height: 27px;"><b><u><br /></u></b></span></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"> It is long back since I did the last post. Let’s start the actual thing now.
With all your development environment setup, it is time for some real android
programming. User Interface (UI) is one of the most important aspects of the Android
programming. It can give you’re the important edge that will attract users to
your app and is taken to be seriously off. One of the reasons for popularity of
Android platform is its simple-to-understand and highly interactive UI.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"><br /></span></div>
<div class="MsoNormal">
<i><u><span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;">So
how do you make UIs in Android?<o:p></o:p></span></u></i></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;">This is such a huge topic that it will be taken in various
parts.<o:p></o:p></span></div>
<div class="MsoNormal">
<b><u><span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;">The
View and ViewGroup class<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"> View and
ViewGroup Class are the basic building blocks of Android UI elements. ViewGroup
Class takes care of grouping of various elements known as (YES!!! you guessed
it) Views. Views are also known as widgets e.g. TextView, Button ListView etc. Each
of the widget is a class in itself and has a set of properties and values that
can be manipulated for defining its behaviour. ViewGroup also known as layouts
contain these widgets within them and decide the positioning of these widgets
within them and provide the final look and feel of the application.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;">That is about some basic
background. Now let’s get down to some business. In Android programming, UI can
be made using both Java i.e. programmatically and statically using XML (Extended
Markup Language). The XML approach provides for clear separation of UI code so
that Java can be used for the core code of your application. <o:p></o:p></span></div>
<div class="MsoNormal">
<b><u><span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;">A Basic
XML Layout <o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;">We will edit the main.xml in our Hello World Application.
All the layouts are placed in the <i><u>res/layout/</u></i> folder in your project.(The code is in red color)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;"><br /></span></div>
<div class="MsoNormal">
<span style="color: red; font-family: Arial, sans-serif;"><span style="line-height: 18px;"><i></i></span></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><?xml version="1.0" encoding="utf-8"?></i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_width="fill_parent"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_height="fill_parent"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:orientation="vertical"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:background="#FFAA00"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> ></i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> <TextView</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_width="fill_parent"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_height="wrap_content"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:text= "How's The View" </i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:textSize="40dp"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:textColor="#0088FF"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:gravity="center_horizontal"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_marginTop="40dp" </i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:id="@+id/textview"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> /></i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span><Button </i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span> android:layout_width="wrap_content"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_height="wrap_content"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:textSize="20dp"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:id="@+id/button1"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:text="Press Me"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_gravity="center_horizontal" </i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> android:layout_marginTop="40dp"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i> />"</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><br /></i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i></LinearLayout></i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><br /></i></span><br />
<span style="font-family: Arial, sans-serif;">You can view the code on <a href="https://github.com/AKdroid/Example">github</a> as well.</span><br />
<span style="font-family: Arial, sans-serif;"><i><br /></i></span><br />
<span style="font-family: Arial, sans-serif;">The XML code consists of tags (here LinearLayout , TextView, Button)</span><br />
<span style="font-family: Arial, sans-serif;">and attributes( layout_width, layout_height,textSize etc.android is a namespace).</span><br />
<span style="font-family: Arial, sans-serif;">Most of the attributes are self-explanatory.The output of the above code is :</span><br />
<span style="font-family: Arial, sans-serif;"><br /></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrLDcPvifXqhvpr7bo-gn5-IgJlX8_IBtV02n3IyLZ96Ht-SBmqA7NO_cmHj_958Vj1qJb7ILte3YexxiVJXLZlMoDlYcdHpqj3CKvvHoGhyphenhypheng44VTjmZAJrVbYlwJf1fNsrAb2C6pAOfI/s1600/examplelayout.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrLDcPvifXqhvpr7bo-gn5-IgJlX8_IBtV02n3IyLZ96Ht-SBmqA7NO_cmHj_958Vj1qJb7ILte3YexxiVJXLZlMoDlYcdHpqj3CKvvHoGhyphenhypheng44VTjmZAJrVbYlwJf1fNsrAb2C6pAOfI/s320/examplelayout.png" width="213" /></a></div>
<span style="font-family: Arial, sans-serif;"><br /></span><br />
<span style="font-family: Arial, sans-serif;">The most important and highly used attributes are <i>layout_width</i> and <i>layout_height</i> which take values <i>wrap_content</i> and<i> fill_parent .</i>As the name suggests they make the size of the widgets wrap their content or fill their parent(i.e. their container) completely.Here LinearLayout is a ViewGroup which places the contents in a linear fashion.Here the orientation is vertical therefore the TextView and the Button are placed in the order they appear in the xml file in one below the other.</span><br />
<span style="font-family: Arial, sans-serif;"><br /></span><br />
<span style="font-family: Arial, sans-serif;">To set the layout to an Activity following function is used</span><br />
<span style="font-family: Arial, sans-serif;"><br /></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i>setContentView(R.layout.main);</i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><br /></i></span><br />
<span style="font-family: Arial, sans-serif;"><b>Next Part will talk about different layouts and referencing widgets in Java code.Till then </b></span><br />
<span style="font-family: Arial, sans-serif;"><b><br /></b></span><br />
<span style="color: blue; font-family: Arial, sans-serif;"><b>Happy Droiding :-)</b></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><br /></i></span><br />
<span style="color: red; font-family: Arial, sans-serif;"><i><br /></i></span></div>
</div>AKdroidhttp://www.blogger.com/profile/10768250324472024423noreply@blogger.com1tag:blogger.com,1999:blog-3162505947258012831.post-66412648753462073482011-12-15T10:11:00.000-08:002011-12-15T10:11:37.416-08:00Hello Android !!<div dir="ltr" style="text-align: left;" trbidi="on"> Its time for the next tutorial.You should have set up your development environment as shown in the previous post.Its time for the first project.This tutorial will deal with Hello Android which frankly is nothing but creating a project and running it.We will explore the contents of the project in this tutorial.What you require is Eclipse,an emulator and of course the ADT Plugin as described in the previous post.<br />
<br />
<span style="color: blue; font-size: large;"><b><u>New Project</u></b></span> <br />
1)<span style="color: black; font-size: small;">We start by making a new project in Eclipse</span><br />
<b>File > New > Android Project</b><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSP4lopVePwYqRoGzK0trcSj1KhnihNGWuSm6Z92vXDvkGX6r8eC4n2aqJztrTcxtM8ry4FxIsVhvUuPEojZADNq4u9uogNiZT6IzHstDnWN7di3GHvTmnz38Wk-vBEDH_Lx-xds5gFpk/s1600/ScreenShot001.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="230" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSP4lopVePwYqRoGzK0trcSj1KhnihNGWuSm6Z92vXDvkGX6r8eC4n2aqJztrTcxtM8ry4FxIsVhvUuPEojZADNq4u9uogNiZT6IzHstDnWN7di3GHvTmnz38Wk-vBEDH_Lx-xds5gFpk/s320/ScreenShot001.png" width="320" /></a></div><br />
2) A dialog box will appear as shown below<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiowPt8wNHhJspDRERju2qSeRSzmyRiHuHbwCpTINLGpRzDEXlx4I6alC-VqT9cg_pSC42cgR-tlxt8Prwe1yBv33_fRiXXNYsLQGuX0Hel9CVJgdM7fLiGHp03Wb36XAdNx3nH5-ItOVg/s1600/ScreenShot002.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiowPt8wNHhJspDRERju2qSeRSzmyRiHuHbwCpTINLGpRzDEXlx4I6alC-VqT9cg_pSC42cgR-tlxt8Prwe1yBv33_fRiXXNYsLQGuX0Hel9CVJgdM7fLiGHp03Wb36XAdNx3nH5-ItOVg/s320/ScreenShot002.png" width="320" /></a></div><br />
3) Give your Project a name.(Here Example)<br />
4) Select a Target version representing your target android version.I have selected v1.6 and above as this will make your app available for all above android versions.<br />
5) Eclipse will automatically fill Min-SDK version and application name which you can change.You have to specify a package a name as well.It should be unique and don't use com.android.//something .This will be used to identify and search your application in android market.<br />
6) There is also a field called Activity name.This Activity refers to a class that is going to be set as a launcher activity.Activity is something that a user views as his UI and has the control of UI thread.More on Activity in later posts.<br />
7)Once all this is done you are ready to create your project.Click on Finish to create the Project.<br />
<br />
<div style="color: blue;"><u><b><span style="font-size: large;">Setting up running Environment:</span></b></u></div>In order to run your program on eclipse you will have to setup run/debug configurations.<br />
<br />
1) Go to <b>Run > Run Configurations</b> <br />
The following dialog will open<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDLnlalCdMD8cCVPZYz2Trg_w7VIFZ6lO79eN7c6fZWsOrIP5RzzoadB2FXuMen_E5zqlnvKDgfFlw37vfFzNU2o4D1ip6_SFs1LDZmqTRx47UXA2jDo42oJuhNeGAFDEve_h9Qoi9bCs/s1600/ScreenShot006.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDLnlalCdMD8cCVPZYz2Trg_w7VIFZ6lO79eN7c6fZWsOrIP5RzzoadB2FXuMen_E5zqlnvKDgfFlw37vfFzNU2o4D1ip6_SFs1LDZmqTRx47UXA2jDo42oJuhNeGAFDEve_h9Qoi9bCs/s320/ScreenShot006.png" width="320" /></a></div>2) Double Click on the Android Application and then the New_configuration<br />
3) Give it a name and give the Project name for Project<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigmhI8TExyH7cxtd0aHDg62vUr08leIRGIIocmRcSsVTWP-zB-VhPhLA_QCvcJjCwgaBvtPb9RVCSL2gHruvTvTVNfHYAzCun47p1BLw-2AGRHYrGHQpS_jnTUKlNhmiSsALUtVhlpUkM/s1600/ScreenShot007.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigmhI8TExyH7cxtd0aHDg62vUr08leIRGIIocmRcSsVTWP-zB-VhPhLA_QCvcJjCwgaBvtPb9RVCSL2gHruvTvTVNfHYAzCun47p1BLw-2AGRHYrGHQpS_jnTUKlNhmiSsALUtVhlpUkM/s320/ScreenShot007.png" width="320" /></a></div>4) Click on Target > select a target from the AVD you created as per the last post.Here donut. Click on Apply and Run to run your project.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjns0YWzv2f_TSLL1rLN5EaEST_3D9p4WDFwaRZIFQ0qstYNSFEK8_vRfzpJ1NK3jY8ZQvuYRQ1ohFy5yK0LcHMfP2QW7peD09dER0wrhhdv6SdkHTkDzwASNa3aaKsFUTtdM42S9LZJPw/s1600/ScreenShot008.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjns0YWzv2f_TSLL1rLN5EaEST_3D9p4WDFwaRZIFQ0qstYNSFEK8_vRfzpJ1NK3jY8ZQvuYRQ1ohFy5yK0LcHMfP2QW7peD09dER0wrhhdv6SdkHTkDzwASNa3aaKsFUTtdM42S9LZJPw/s320/ScreenShot008.png" width="320" /></a></div><br />
<div style="color: red;"><b>That's it you successfully completed the Hello Android Project.Did you do anything ? Nothing actually told ya !!<span style="color: blue;"> :)</span></b></div><br />
<div style="color: blue;"><u><span style="font-size: large;"><b>Finally just an Overview of what all files were generated in the project:</b></span></u></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimhefa5PFQUM5NlRQB_yOf4YHi-n5Updgo-yoXRYGjJjw_-mmz3qp-T0MXBrcxLF2XHCkGhCWiGdfGmcGpG7iNEdLEpG2FHUvZeKaeIsz6quz7V8CqTWFgVD7_1wBvqgBveOGkcYNzEL8/s1600/ScreenShot005.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimhefa5PFQUM5NlRQB_yOf4YHi-n5Updgo-yoXRYGjJjw_-mmz3qp-T0MXBrcxLF2XHCkGhCWiGdfGmcGpG7iNEdLEpG2FHUvZeKaeIsz6quz7V8CqTWFgVD7_1wBvqgBveOGkcYNzEL8/s320/ScreenShot005.png" width="320" /></a></div><br />
1)<b><span style="color: blue;"> src</span></b> : as the name suggests contains your java package and the source code.You can see the <br />
ExampleActivity.java in it.<br />
2)<b><span style="color: blue;"> gen:</span></b> It contains self-generated R.java which holds the references of all the resources like TextView,strings,<br />
drawables,colors,layouts.<br />
3) <b><span style="color: blue;">res</span></b>: -><span style="color: blue;">drawable</span>(ldpi,mdpi,hdpi)->contains the images you want to use in your app(for different densities)<br />
<b><span style="color: blue;">res</span></b>: -><span style="color: blue;">layout</span> ->contains the layout in an xml file made of views like textview , buttons etc.<br />
<b><span style="color: blue;">res</span></b>:-><span style="color: blue;">values</span> ->some values you want to be available throughout your app.like strings say your app name <br />
in xml files <br />
The reference for these resources are stored in R.java in gen.<br />
4) AndroidManifest.xml : A very important file which has instructions for your application behaviour and information for Android OS like how many Activities it has?what is the package name?What permissions are required?etc.<br />
<br />
Thats the project environment you have.A more realistic app in the next tutorials till then, <br />
Happy Droiding !! <br />
<br />
</div>AKdroidhttp://www.blogger.com/profile/10768250324472024423noreply@blogger.com6tag:blogger.com,1999:blog-3162505947258012831.post-64173225751848140122011-12-11T00:09:00.000-08:002011-12-11T00:12:01.280-08:00Getting Started !!<div dir="ltr" style="text-align: left;" trbidi="on"> <span style="color: black;">So are you all geared up for android development now ? Android Development is done in Java and if you don't ant to bang your head on a wall in an IDE more specifically in Eclipse IDE.</span><br />
<div style="color: black;">Pre-Requisites for android development:</div><div style="color: black;">1)Android SDK and ADT plugin: </div><div style="color: black;">You can download it from here: <a href="http://developer.android.com/sdk/eclipse-adt.html">http://developer.android.com/sdk/eclipse-adt.html</a></div><div style="color: black;"><br />
</div><div style="color: black;">2)Eclipse IDE :</div><div style="color: black;">You can Download it from here : <a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></div><div style="color: black;">You will require <span style="font-size: small;">Eclipse IDE for Java Developers => Galileo or Helios or Indigo will do. I use Galileo but newer versions will be preferred. </span></div><div style="color: black;"><span style="font-size: small;">3) Some basic knowledge of Java and xml .</span></div><div style="color: black;"><span style="font-size: small;"> </span></div><div style="color: black;"><span style="font-size: small;">This tutorial will mainly deal with setting up the development environment.</span></div><div style="color: black;"><br />
</div><div style="color: black;"><span style="font-size: small;">1) Download the Android SDK starter package downloaded from the above link.</span></div><div style="color: black;"><br />
</div><div style="color: black;"><span style="font-size: small;">2)Run the SDK manager in your android-sdk folder</span></div><div style="color: black;"><span style="font-size: small;"><br />
</span></div><div style="color: black;"><span style="font-size: small;">3)In the SDK Manager , click on the Available Packages and download all of them or at least the sdk and at least one emulator i.e API levels.</span></div><div style="color: black;"><br />
</div><div class="separator" style="clear: both; color: black; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrbNc_wXsuCfP8-4fhVmaAUIHCPU0paoHyz8qQ4QVjny4uGDe443cAQQePa5jpal1ARmiiwKkC2Ygafex2TyThVqCkMtwnvl85jxjjDGuui_gjyQLxKnyaF9pn2W3_h4EZYqKV-xy59_U/s1600/ScreenShot008.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="228" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrbNc_wXsuCfP8-4fhVmaAUIHCPU0paoHyz8qQ4QVjny4uGDe443cAQQePa5jpal1ARmiiwKkC2Ygafex2TyThVqCkMtwnvl85jxjjDGuui_gjyQLxKnyaF9pn2W3_h4EZYqKV-xy59_U/s320/ScreenShot008.bmp" width="320" /></a></div><div style="color: black;"><br />
</div><div style="color: black;"><br />
</div><div style="color: black;"><span style="font-size: small;">4)Installing ADT plugin in eclipse :</span></div><div style="color: black;"><span style="font-size: small;">Start Eclipse:</span></div><div style="color: black;"><span style="font-size: small;">Go to </span><b>Help</b> > <b>Install New Software </b></div><div style="color: black;"><b><br />
</b></div><div style="color: black;">5) Click <b>Add</b>, in the top-right corner.In the Add Repository dialog that appears, enter "ADT Plugin" for the <i>Name</i> and the following URL for the <i>Location</i>:</div><div style="color: black;"><br />
</div><pre class="prettyprint" style="color: black;"><span class="pln">https</span><span class="pun">:</span><span class="com">//dl-ssl.google.com/android/eclipse/</span></pre><pre class="prettyprint" style="color: black;"><span class="com"> </span></pre><div class="separator" style="clear: both; color: black; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcwjzgynJTwF62CZamj2zBB5l_uqqAmQy9Y5fPSIezwtO8bqN0aW3dMTPh6XPKKg4ig0-38lJWVh9c_n70qFLOIITOBghulhoGPs31s1Y7FZcMRj5p-8evYuJvjVLkUgwxFGoF7uoLQuQ/s1600/ScreenShot009.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcwjzgynJTwF62CZamj2zBB5l_uqqAmQy9Y5fPSIezwtO8bqN0aW3dMTPh6XPKKg4ig0-38lJWVh9c_n70qFLOIITOBghulhoGPs31s1Y7FZcMRj5p-8evYuJvjVLkUgwxFGoF7uoLQuQ/s320/ScreenShot009.bmp" width="320" /></a></div><pre class="prettyprint" style="color: black;"><span class="com"> </span></pre><pre class="prettyprint" style="color: black;"><span class="com"> </span></pre><pre class="prettyprint" style="color: black;"><span class="com">6) Click OK.</span>In the Available Software dialog, select the checkbox next to</pre><pre class="prettyprint" style="color: black;">Developer Tools and click<b> Next</b>.</pre><pre class="prettyprint" style="color: black;"> </pre><pre class="prettyprint" style="color: black;">7)In the next window, you'll see a list of the tools to be downloaded. Click
<b>Next</b> and Read and accept the license agreements, then click <b>Finish</b>.
</pre><div style="color: black;">Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click <b>OK</b>.</div><pre class="prettyprint" style="color: black;">8)Restart Eclipse.</pre><pre class="prettyprint" style="color: black;">9)</pre><pre class="prettyprint" style="color: black;">Give the android sdk path in eclipse:</pre><pre class="prettyprint" style="color: black;">Go to Window > Preferences > Android >path to SDKi.e android sdk folder.</pre><pre class="prettyprint" style="color: black;">(Make sure no spaces are included in the path) </pre><div style="color: black;"><br />
</div><div style="color: black;"><span style="font-size: small;">10) Create an Android Virtual Device</span></div><pre class="prettyprint" style="color: black;">Go to Window > Android SDK And AVD Manager > New > Choose an API Level give it name </pre><pre class="prettyprint" style="color: black;">and choose Create AVD.This will be the emulator on which your projects will run.Choose</pre><pre class="prettyprint" style="color: black;">Screen size preferably HVGA(standard resolution).</pre><pre class="prettyprint" style="color: black;">This completes your configuration of android development environment.</pre><pre class="prettyprint" style="color: black;">Now you are all set to develop the next big app for android.More on that in the next post.</pre><pre class="prettyprint" style="color: black;">Till then </pre><pre class="prettyprint"><span style="color: black;">Happy Droiding !!!!</span> </pre><pre class="prettyprint"> </pre><pre class="prettyprint"> </pre><span style="font-size: small;"><br />
</span><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>AKdroidhttp://www.blogger.com/profile/10768250324472024423noreply@blogger.com0tag:blogger.com,1999:blog-3162505947258012831.post-2838463653959231222011-12-02T05:07:00.000-08:002011-12-02T06:07:01.749-08:00Why Android???<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-size: large;"><br />
</span><br />
<span style="font-size: small;"> <span style="color: blue; font-family: Times,"Times New Roman",serif; font-size: large;"> The second post for this blog is coming after a very long time.A month and half in assignments and exams makes it really hard to blog.The application development did take a backseat during this duration and hence the exams ended I went on and started work on updating Vocopedia.Now vocopedia has been updated to v1.5.Also I got Vocopedia copyrighted and a paid version will soon be up.Before we start with android application development it would be essential to know why Android ?</span></span><br />
<div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><br />
</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><u><b>WHY ANDROID ??</b></u> </span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><br />
</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><b> For a user:</b></span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><br />
</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"> Android is an open source operating system based on Unix currently owned by Google.It is one of the most popular and probably the best Operating System for Mobile Smartphones and Tablets.No doubt</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;">android was chosen for ultra low cost tablet Akash.It has multiple app stores the main among it being the Android Market managed by Google.It is known to have 2,00,000+ apps in April 2011 and is the fastest growing app-store behind apple's App Store only.Also there are many free apps for android available(say 60%). It has the best user interface,usability and a developer network in the word that develops applications,scripts for your phone to make it better day by day. There are Custom Roms (custom builds) available that make your phone fast ,smooth ,cool and awesome. Cyanogen Mod being the best of them with CM9( Android 4.0-ICS in development) being the latest.No doubt I am an all and all Android guy !!Android phones make other phones look obsolete.And the best part is you can get an android phone for as less as 6K while for iPhone in India you have to pay 50K.So you want to buy a phone?Go for Android anytime. </span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><br />
</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><b>For a developer:</b></span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><br />
</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"> Android development can be a great decision as a hobby or even a full time profession.Android development is basically done in Java.For developing an Android Application there are mainly two requirements, Android SDK and Eclipse IDE 1.5 and above.Why develop for Android ? For anyone wanting to start into mobile application development android is ideal since no. of phones getting activated in a day is more than 4,00,000.Also a lot of tutorials and help is available online for Android.In order to publish your app in android market you need to pay 25$ one time only on the other hand for Iphone you have to pay 99$ every year which is also the same for windows phone 7 and for nokia-symbian apparently no one bothers.</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;">Also the applications can be developed in Windows,Linux and Mac Os.For iPhone you require Mac and for Windows Phone 7 only Windows.From hardware point of view you can create hardware specific applications.Android development is not limited to apps but in kernel development,performance enhancements,and literally unleashing the power of your devices which cannot be done on other platforms.The Kernel development for my made me a fan of Linux and that is why I have started studying Linux Kernels for the same.Plus it will improve my knowledge of embedded systems programming (My Favourite Subject) .</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"> From next post onwards android application development tutorials will be coming. Till then</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"><br />
</span></div><div style="color: blue; font-family: Times,"Times New Roman",serif;"><span style="font-size: large;"> Happy Droiding !!! </span></div></div>AKdroidhttp://www.blogger.com/profile/10768250324472024423noreply@blogger.com2tag:blogger.com,1999:blog-3162505947258012831.post-27391240899508604142011-09-08T08:57:00.000-07:002011-09-09T08:06:35.986-07:00The Journey Begins.................<div dir="ltr" style="text-align: left;" trbidi="on"><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;">Before October 2010,If you would ask me what is Android , I would have said "come again?".Then I would have tried recalling and said "Oh ya ,that OS everyone keeps talking about on the gadget shows, good interface and all." I didn't bother about it much then because it was anyway out of my reach.Paying 10k+ for a phone didn't seem possible at that time.But now I bought an android.Probably did everything that is possible from it and here I am blogging maybe bragging about it. ;) :)</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;"><br />
</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;">I bought my first (and only) Android phone in Nov 2010.I had to convince my father to buy samsung galaxy 3 while he was going for galaxy 5 .And guess what I got it Samsung Galaxy 3.I was a proud android phone owner.I actually had to wait for an hour in the Mobile Store in Dombivli while they had to bring it from Kalyan outlet.Apparently the model was in very great demand and why not 12K for a phone with android and that too with those features,it was a bargain.There weren't much androids in India then but now you see them everywhere.</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;"><br />
</span></div><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif; margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><span style="font-size: large;"><a href="http://hothotbuzz.com/wp-content/gallery/samsung-galaxy-3/samsung-galaxy-3-3.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="234" src="http://hothotbuzz.com/wp-content/gallery/samsung-galaxy-3/samsung-galaxy-3-3.jpg" width="320" /></a></span></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large;">My awesome Galaxy 3</span></td></tr>
</tbody></table><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;">In the beginning it was just cool apps and games and all things smartphone-like.My phone was shipped with android 2.1- Eclair. It is a good version but a Froyo(Android 2.2) upgrade would have been nice.After a lot of delay and public requests(a hell lot of them) finally they launched an upgrade and guess what it was full of bugs.A Little bit of disappointment there but I continued with using it as it is till I my yearnings for the awesome Live Wallpapers and a bug-free android made my find <a href="http://forum.xda-developers.com/forumdisplay.php?f=861">XDA-developers.</a> That's when i became akdroid and since then there's no looking back.</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;"> Since then I bravely rooted my phone,enavled live wallpapers,installed a custom ROM- <a href="http://forum.xda-developers.com/showthread.php?p=17349961#post17349961">Indroid v4</a></span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;">and its updates ,overclocked it,changed kernels,got great control over the phone hardware and vast options of customizations for my Apollo.There is even a USB On The Go in the menu and with that I could even connect a pen-drive,mouse etc to my phone :O :) :)</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;"> My love for programming resulted in eventually trying to develop an android app and i published app on the android market having more than 1000 downloads as of now......</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;">Here's the link:</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;"> <a href="https://market.android.com/details?id=com.akdroid.vocopedialite&feature=search_result">Vocopedia</a>--- Vocab Builder</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;"><br />
</span></div><div style="background-color: #eeeeee; color: blue; font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: large;">In the upcoming posts,I would be posting tutorials on android app development as well as all the things happening in the ever changing world of android.....</span></div><div style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="background-color: #eeeeee; color: blue; font-size: large;"> Till then Happy Droiding...... :) :) :)</span></div><br />
<br />
<br />
<br />
<br />
<br />
</div>AKdroidhttp://www.blogger.com/profile/10768250324472024423noreply@blogger.com1