<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3107900095695948044</id><updated>2024-10-04T19:12:35.867-07:00</updated><category term="advantages of android"/><category term="android eclipse"/><category term="android features"/><category term="android newbee"/><category term="starting android"/><category term="starting android with eclipse"/><category term="why android"/><category term="writing your first android application"/><title type='text'>Android Geeks</title><subtitle type='html'>This blog is my initiative to help others and myself by interacting and sharing technical know how about learning android.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://androidgeeks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3107900095695948044/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://androidgeeks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chetan Sharma</name><uri>http://www.blogger.com/profile/12450541479643228998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_6yK-iYaoefc/SbK-PMFMWxI/AAAAAAAAArU/-VKDK3GqvWg/S220/FotoSketcher+-+DSC000481.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3107900095695948044.post-8129636170473961061</id><published>2010-04-03T06:08:00.000-07:00</published><updated>2010-04-03T06:09:50.816-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="advantages of android"/><category scheme="http://www.blogger.com/atom/ns#" term="android features"/><category scheme="http://www.blogger.com/atom/ns#" term="why android"/><title type='text'>Advantages of Android platform</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; line-height: 14px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; line-height: 14px;&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;vertical-align: top;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot;&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal;&quot;&gt;Android is open source and a fully customizable mobile platform. Android offers a full stack: an operating system, middleware, and key mobile applications.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;5%&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;95%&quot;&gt;&lt;div align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal;&quot;&gt;&lt;div align=&quot;justify&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal;&quot;&gt;&lt;span class=&quot;text3&quot; style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: bold;&quot;&gt;Open Platform:&lt;/span&gt;&amp;nbsp;Built on the open Linux Kernel, Android was built from the ground-up to enable developers to create compelling mobile applications that take full advantage of all a handset has to offer&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;5%&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;95%&quot;&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span class=&quot;text3&quot; style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: bold;&quot;&gt;All Applications are Equal:&lt;/span&gt;&amp;nbsp;Android does not differentiate between the phone&#39;s core applications and third-party applications. They can all be built to have equal access to a phone&#39;s capabilities providing users with a broad spectrum of services.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;5%&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;95%&quot;&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span class=&quot;text3&quot; style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: bold;&quot;&gt;Overcomes Boundaries:&lt;/span&gt;&amp;nbsp;Android allows you to combine information from the Web, directly from your mobile handset and corporate sources thereby accelerating the information-gathering process.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;5%&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;text1&quot; style=&quot;color: #616161; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: normal; line-height: 14px;&quot; valign=&quot;top&quot; width=&quot;95%&quot;&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span class=&quot;text3&quot; style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, Geneva, sans-serif; font-weight: bold;&quot;&gt;Fast and Easy Development:&lt;/span&gt;Incorporating a powerful Java engine, Android provides access to a wide range of useful libraries and tools that can be used to build rich applications. In addition, it includes a full set of tools that have been built from the ground up alongside the platform providing developers with high productivity and deep insight into their applications.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/span&gt;Learn how to create a sample android application &lt;a href=&quot;http://androidgeeks.blogspot.com/2010/04/writing-your-first-basic-android.html&quot;&gt;here&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://androidgeeks.blogspot.com/feeds/8129636170473961061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://androidgeeks.blogspot.com/2010/04/advantages-of-android-platform.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3107900095695948044/posts/default/8129636170473961061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3107900095695948044/posts/default/8129636170473961061'/><link rel='alternate' type='text/html' href='http://androidgeeks.blogspot.com/2010/04/advantages-of-android-platform.html' title='Advantages of Android platform'/><author><name>Chetan Sharma</name><uri>http://www.blogger.com/profile/12450541479643228998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_6yK-iYaoefc/SbK-PMFMWxI/AAAAAAAAArU/-VKDK3GqvWg/S220/FotoSketcher+-+DSC000481.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3107900095695948044.post-3028913179743215127</id><published>2010-04-02T23:46:00.000-07:00</published><updated>2010-04-03T06:11:29.656-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="android newbee"/><category scheme="http://www.blogger.com/atom/ns#" term="starting android"/><category scheme="http://www.blogger.com/atom/ns#" term="starting android with eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="writing your first android application"/><title type='text'>Writing your first basic Android application</title><content type='html'>The purpose with which I started this blog was the problems I faced while writing a basic android application. I found documentation and resources required to create an application quiet tedious.&lt;br /&gt;
&lt;br /&gt;
In case you want to know why this technology is rapidly catching check here the &lt;a href=&quot;http://androidgeeks.blogspot.com/2010/04/advantages-of-android-platform.html&quot;&gt;advantages of android&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Getting the basic setup done.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
What you require:- An Integearted Development Envoinment aka IDE like eclipse. You may download it from here &lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;Get Eclipse&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Getting the Android SDK&lt;/b&gt; - The second pre-requisite is getting Android SDK which gives the required libraries and platform to develop full fledged android applications.&amp;nbsp; &lt;a href=&quot;http://developer.android.com/intl/it/sdk/index.html&quot;&gt;Get Android&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Prepare your development computer&lt;/b&gt;&lt;br /&gt;
Read the &lt;a href=&quot;http://developer.android.com/sdk/requirements.html&quot;&gt;System Requirements&lt;/a&gt; document and make sure that your development computer meets the hardware and software requirements for the Android SDK. Install any additional software needed before downloading the Android SDK. In particular, you may need to install the &lt;a href=&quot;http://java.sun.com/javase/downloads/index.jsp&quot;&gt;JDK&lt;/a&gt;  (version 5 or 6 required) and &lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;Eclipse&lt;/a&gt;  (version 3.4 or 3.5, needed only if you want develop using the ADT Plugin).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Download and install the SDK starter package&lt;/b&gt;&lt;br /&gt;
Select a starter package from the table at the top of this page and download it to your development computer. To install the SDK, simply unpack the starter package to a safe location and then add the location to your PATH.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Install the ADT Plugin for Eclipse&lt;/b&gt;&lt;br /&gt;
If you are developing in Eclipse, set up a remote update site at &lt;code&gt;https://dl-ssl.google.com/android/eclipse/&lt;/code&gt;. Install the Android  Development Tools (ADT) Plugin, restart Eclipse, and set the &quot;Android&quot;  preferences in Eclipse to point to the SDK install location. For detailed instructions, see &lt;a href=&quot;http://developer.android.com/sdk/eclipse-adt.html&quot;&gt;ADT Plugin  for Eclipse&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating your first application&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 id=&quot;post-12&quot;&gt;Android Development Demo: “DialANumber”&lt;br /&gt;
&lt;/h3&gt;While I think the Android development examples are not really good and straight forward perhaps some of you come along with them. However, I would like to provide you a very very simple example here on how to write your own first Android program.&lt;br /&gt;
This is technically very easy. Once you got Eclipse and Android installed and running on your computer (I use a Mac OS Leopard powered MacBook but you can use a Microsoft Windows XP/Vista/etc. PC as well) you just start Eclipse. Now you just go to “&lt;code&gt;New » Project... » Android » Android Project...&lt;/code&gt;” and enter the required data. Once you are done the result might look like this:&lt;br /&gt;
&lt;img alt=&quot;Android Development Demo: &quot; src=&quot;http://www.androiddevelopment.org/wp-content/uploads/2008/10/dialanumber_1.png&quot; /&gt;&lt;br /&gt;
Now you can start writing and customize the default “Hello World” a.k.a. “Hello Android” app which just shows a text field. If you are really really lazy you could also copy/paste the following code:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;package com.DialANumber;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
import android.app.Activity;&lt;br /&gt;
import android.content.Intent;&lt;br /&gt;
import android.net.Uri;&lt;br /&gt;
import android.os.Bundle;&lt;br /&gt;
import android.view.KeyEvent;&lt;br /&gt;
import android.view.View;&lt;br /&gt;
import android.widget.Button;&lt;br /&gt;
import android.widget.EditText;&lt;br /&gt;
import android.widget.LinearLayout;&lt;br /&gt;
public class DialANumber extends Activity {&lt;br /&gt;
EditText mEditText_number = null;&lt;br /&gt;
LinearLayout mLinearLayout_no_button = null;&lt;br /&gt;
Button mButton_dial = null;&lt;br /&gt;
/** Called when the activity is first created. */&lt;br /&gt;
@Override&lt;br /&gt;
public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
super.onCreate(savedInstanceState);&lt;br /&gt;
mLinearLayout_no_button = new LinearLayout(this);&lt;br /&gt;
mEditText_number = new EditText(this);&lt;br /&gt;
mEditText_number.setText(”5551222″);&lt;br /&gt;
mLinearLayout_no_button.addView(mEditText_number);&lt;br /&gt;
mButton_dial = new Button(this);&lt;br /&gt;
mButton_dial.setText(”Dial!”);&lt;br /&gt;
mLinearLayout_no_button.addView(mButton_dial);&lt;br /&gt;
mButton_dial.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;
public void onClick(View v) {&lt;br /&gt;
performDial();&lt;br /&gt;
}&lt;br /&gt;
});&lt;br /&gt;
setContentView(mLinearLayout_no_button);&lt;br /&gt;
}&lt;br /&gt;
public boolean onKeyDown(int keyCode, KeyEvent event) {&lt;br /&gt;
if (keyCode == KeyEvent.KEYCODE_CALL) {&lt;br /&gt;
performDial();&lt;br /&gt;
return true;&lt;br /&gt;
}&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
public void performDial(){&lt;br /&gt;
if(mEditText_number!=null){&lt;br /&gt;
try {&lt;br /&gt;
startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(”tel:” + mEditText_number.getText())));&lt;br /&gt;
} catch (Exception e) {&lt;br /&gt;
e.printStackTrace();&lt;br /&gt;
}&lt;br /&gt;
}//if&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
That was quick! &lt;img alt=&quot;:)&quot; src=&quot;http://www.androiddevelopment.org/wp-includes/images/smilies/icon_smile.gif&quot; /&gt;&lt;br /&gt;
Now you should create a debug runtime configuration which can be done at “&lt;b&gt;Run » Debug Configurations…&lt;/b&gt;“. Here you select “&lt;b&gt;Android Application&lt;/b&gt;” and press “&lt;b&gt;New&lt;/b&gt;“. Enter a name and select the “&lt;b&gt;DialANumber&lt;/b&gt;” project. Launching the default Activity might be a good idea as we not know what the f*** it means right now. &lt;img alt=&quot;:)&quot; src=&quot;http://www.androiddevelopment.org/wp-includes/images/smilies/icon_smile.gif&quot; /&gt; So just hit “&lt;b&gt;Apply&lt;/b&gt;” and “&lt;b&gt;Debug&lt;/b&gt;” and the program will be started in the Android simulator. To give you a clue how that looks like here are some screen shots:&lt;br /&gt;
&lt;img alt=&quot;Android Development Demo: &quot; src=&quot;http://www.androiddevelopment.org/wp-content/uploads/2008/10/dialanumber_2.png&quot; /&gt;&lt;br /&gt;
&lt;img alt=&quot;Android Development Demo: &quot; src=&quot;http://www.androiddevelopment.org/wp-content/uploads/2008/10/dialanumber_3.png&quot; /&gt;&lt;br /&gt;
As there is an EditField for the phone number which can be modified you can also enter a new phone number in there. An example of this comes here:&lt;br /&gt;
&lt;img alt=&quot;Android Development Demo: &quot; src=&quot;http://www.androiddevelopment.org/wp-content/uploads/2008/10/dialanumber_4.png&quot; /&gt;&lt;br /&gt;
&lt;img alt=&quot;Android Development Demo: &quot; src=&quot;http://www.androiddevelopment.org/wp-content/uploads/2008/10/dialanumber_5.png&quot; /&gt;&lt;br /&gt;
As everyone can see we are able to dial the number in two different ways:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Hit the “Dial!” button next to the input field.&lt;/li&gt;
&lt;li&gt;Hit the “green dial” button on the bottom of the device.&lt;/li&gt;
&lt;/ol&gt;Here is an illustration of this:&lt;br /&gt;
&lt;img alt=&quot;Android Development Demo: &quot; src=&quot;http://www.androiddevelopment.org/wp-content/uploads/2008/10/dialanumber_4_modified.png&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Suggestions are welcome!</content><link rel='replies' type='application/atom+xml' href='http://androidgeeks.blogspot.com/feeds/3028913179743215127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://androidgeeks.blogspot.com/2010/04/writing-your-first-basic-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3107900095695948044/posts/default/3028913179743215127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3107900095695948044/posts/default/3028913179743215127'/><link rel='alternate' type='text/html' href='http://androidgeeks.blogspot.com/2010/04/writing-your-first-basic-android.html' title='Writing your first basic Android application'/><author><name>Chetan Sharma</name><uri>http://www.blogger.com/profile/12450541479643228998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_6yK-iYaoefc/SbK-PMFMWxI/AAAAAAAAArU/-VKDK3GqvWg/S220/FotoSketcher+-+DSC000481.jpg'/></author><thr:total>0</thr:total></entry></feed>