<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sanjeev Shrestha</title>
	<atom:link href="http://www.sanjeevshrestha.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sanjeevshrestha.com</link>
	<description>Android, Iphone, Mobile Apps and everthing in between</description>
	<lastBuildDate>Mon, 09 Nov 2009 06:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hello World!</title>
		<link>http://www.sanjeevshrestha.com/hello-world/</link>
		<comments>http://www.sanjeevshrestha.com/hello-world/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 16:11:45 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[First Program]]></category>
		<category><![CDATA[Hello World in Android]]></category>
		<category><![CDATA[HelloWorld]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com/hello-world/</guid>
		<description><![CDATA[Finally I created my first  &#8220;HelloWorld&#8221; app in Android and I am sharing it with you. This is just a simple HelloWorld Program that displays a HelloWorld in a Button with Date and Time on it. The date and time changes with the click on the button. I have tried to implement actionlisteners so it [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/Screenshot1.png" alt="" />Finally I created my first  &#8220;<strong>HelloWorld&#8221; </strong>app<strong> </strong>in Android and I am sharing it with you. This is just a simple HelloWorld Program that displays a <strong>HelloWorld in a Button with Date and Time</strong> on it. The date and time changes with the click on the button. I have tried to implement actionlisteners so it is little more than a <strong>HelloWorld</strong> Program.</p>
<p>Steps to Create My HelloWorld Program in Eclipse with Android SDK. Create a new android project. <em><strong>File-&gt;New-&gt;Android Project</strong></em>. <span id="more-24"></span>Fill in information like <strong>Project Name</strong>,<strong> Location for your project</strong> (e.g. Create new project in workspace). <strong>Select build Target.</strong> Android has several Versions ranging from 1.1 to 2.0 (latest). Select the target platform you want to port your application to. I selected 1.5 and it depends on you. Enter <strong>Application Name</strong>,<strong> Package name</strong>,<strong> Activity Name</strong> and hit finish button. In my case I entered following information for my first HelloWorld Program.</p>
<p>ProjectName: <strong>HelloWorld</strong><br />
Location for your project:<strong> /home/sanjeev/androidworkspace/HelloWorld</strong><br />
Select Build Target: <strong>Android 1.5 </strong><br />
Application Name: <strong>HelloWorld</strong><br />
Package Name: <strong>com.sanjeevshrestha.android</strong><br />
Activity Name: <strong>HelloWorld</strong></p>
<p>This creates a project in your workspace and you are ready to modify the activity file that is HelloWorld.java which is in your src folder under the folder structure depending on your package name. In my case it is <strong>src/com/sanjeevshrestha/android/HelloWorld.java</strong>. Here is the content of my HelloWorld.java file</p>
<blockquote><p>/**<br />
* Hello World Program<br />
* @author Sanjeev Shrestha<br />
* @version 1.0<br />
* @date 8 November 2009<br />
*<br />
*/</p>
<p>package com.sanjeevshrestha.android;</p>
<p>import android.app.Activity;<br />
import android.os.Bundle;<br />
import android.view.View;<br />
import android.widget.Button;<br />
import java.util.Date;</p>
<p>public class HelloWorld extends Activity implements View.OnClickListener{<br />
/** Called when the activity is first created. */<br />
Button btn;<br />
@Override<br />
public void onCreate(Bundle savedInstanceState) {<br />
super.onCreate(savedInstanceState);<br />
btn=new Button(this);<br />
btn.setOnClickListener(this);<br />
updateTime();<br />
setContentView(btn);<br />
}</p>
<p>public void onClick(View view)<br />
{<br />
updateTime();<br />
}</p>
<p>public void updateTime()<br />
{<br />
String DateString=new Date().toString();<br />
btn.setText(&#8220;Hello World by Sanjeev at &#8220;+DateString);<br />
}<br />
}</p></blockquote>
<p>Build the project and your first HelloWorld program is ready for Android. Here is the output of my HelloWorld Program.<br />
<img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/Screenshot.png" alt="" /><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/Screenshot-2.png" alt="" /><br />
My First Android HelloWorld Program. I am loving it <img src='http://www.sanjeevshrestha.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Try for yourself and Happy Androiding!! <a href="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/HelloWorld.zip"></a></p>
<p>Download the zip file for HelloWorld application <a href="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/HelloWorld.zip">HelloWorld</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=50dc7b8a-03fc-8370-b7a9-6d46099c7bb1" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse error &#8211; Cannot connect to keystore</title>
		<link>http://www.sanjeevshrestha.com/eclipse-error-cannot-connect-to-keystore/</link>
		<comments>http://www.sanjeevshrestha.com/eclipse-error-cannot-connect-to-keystore/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 07:58:56 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[android sdk installation error]]></category>
		<category><![CDATA[cannot connect to keystore]]></category>
		<category><![CDATA[eclipse error]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com/?p=13</guid>
		<description><![CDATA[I started programming with android for few days now. I use eclipse for development and android sdk fits just fine with ADT plugin for Eclipse. But some of us must have faced a error that says &#8220;Cannot connect to keystore&#8221; while installing the android sdk with eclipse&#8217;s install new software feature. The google android page [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: right; margin-top: 10px; margin-bottom: 10px; margin-left: 10px;" src="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/logoWhite.png" />I started programming with android for few days now. I use eclipse for development and android sdk fits just fine with ADT plugin for Eclipse. But some of us must have faced a error that says <i><b>&#8220;Cannot connect to keystore&#8221;</b></i> while installing the android sdk with eclipse&#8217;s <b>install new software</b> feature. The google android page also says this will occur if you are using linux. <span id="more-13"></span>And yes I do use linux &#8211; ubuntu 9.04. The android page says to install the latest Java VM and it should work fine, yes that is true but your sun-java is the latest and you don&#8217;t have updates. This might be quite a problem. No worries. hit the following command in your terminal:</p>
<blockquote><p>sudo apt-get install openjdk-6-jre sun-java6-jdk<br />sudo update-java-alternatives -s java-6-sun</p></blockquote>
<p><b>Note: update with the latest java version</b><br />This should work with other flavor of linux too. Try with appropriate package manager.</p>
<p>Now try installing the android sdk again. It should work. Happy androiding..</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=eecaf91c-893c-87f4-8c84-4177e19224e6" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com/eclipse-error-cannot-connect-to-keystore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Plunge to Android Programming</title>
		<link>http://www.sanjeevshrestha.com/first-plunge-to-android-programming/</link>
		<comments>http://www.sanjeevshrestha.com/first-plunge-to-android-programming/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 11:30:54 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[android programming]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[open handset alliance]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com/?p=1</guid>
		<description><![CDATA[I dived into Android programming a week back and thought of maintaining my own blog about android programming, so here it is. so what is android? how did it start? and where it is heading? and more importantly how to program with Android? I will try to explain these in my own personal view.&#160;Google quotes [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com/wp-content/uploads/2009/11/android-logo1.jpg" />I dived into Android programming a week back and thought of maintaining my own blog about android programming, so here it is. so what is android? how did it start? and where it is heading? and more importantly how to program with Android? I will try to explain these in my own personal view.<br />&nbsp;<br />Google quotes Android as <i><b>&#8220;Android is a software stack for mobile devices that includes an operating system, middleware and key applications&#8221;</b></i>. Technically Android, as a system, is a Java-based operating system that runs on the Linux 2.6 kernel. <span id="more-1"></span></p>
<p>Earlier we had different platforms for mobile devices running different sets of applications. Hence mobile computing earlier had, in my view, limited its charm to few developers. But now everything is changing, everything is going mobile. The devices are powerful and internet is common in these devices. Android arrives here to bridge the gap between developers and mobile world with one common platform and rich sets of features.</p>
<p>Android, as of this post, is tagged a version 2.0 release. I am particularly interested in android because it is opensource and is a solution to one big problem &#8220;<i><b>diverse devices, diverse platforms</b></i>&#8220;. Open Handset Alliance and Google released Android to overcome this problem by providing a common platform for developers. The Open Handset Alliance is a group of hardware and software developers, including Google, NTT DoCoMo, Sprint Nextel, and HTC, whose goal is to create a more open cell phone environment. So friends Android is here to stay for long.<br /><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=4c52ece4-c453-89b7-ba0a-db77d657e68d" /></p>
<p>Android applications are developed using Java and can be ported rather easily to the new platform. Yes, only Java currently. If you are a Java Developer, Android is half battle won. If you are not a Java Developer, you should know at least a little Java to begin. </p>
<p>I created my first <b>Hello World</b> application yesterday and it feels great <img src='http://www.sanjeevshrestha.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=d63f116b-7f85-8e77-b8fc-ca39528e2bb3" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com/first-plunge-to-android-programming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
