<?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>bingshui.org &#187; Android 2.1</title>
	<atom:link href="http://www.bingshui.org/tag/android-2-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bingshui.org</link>
	<description>the Life of Zim</description>
	<lastBuildDate>Tue, 10 Aug 2010 13:48:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Playing with the Android SDK on the Nexus One</title>
		<link>http://www.bingshui.org/tech/playing-with-the-android-sdk-on-the-nexus-one/</link>
		<comments>http://www.bingshui.org/tech/playing-with-the-android-sdk-on-the-nexus-one/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 02:22:49 +0000</pubDate>
		<dc:creator>dzimney</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Android 2.1]]></category>
		<category><![CDATA[Android SDK]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Nexus One]]></category>
		<category><![CDATA[OS X 10.6]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://www.bingshui.org/?p=1084</guid>
		<description><![CDATA[About a week ago I got the Nexus One from Google. Today I decided to delve into the SDK and see if I could get a &#8220;Hello, World!&#8221; script running on the phone. Following the Android Developers website, I downloaded the SDK and installed the Eclipse plugin for Android. I was able to get the [...]]]></description>
			<content:encoded><![CDATA[<p>About a week ago I got the <a href="http://www.google.com/phone/">Nexus One</a> from <a href="http://google.com">Google</a>. Today I decided to delve into the SDK and see if I could get a &#8220;Hello, World!&#8221; script running on the phone. Following the <a href="http://developer.android.com/index.html">Android Developers</a> website, I downloaded the SDK and installed the <a href="http://www.eclipse.org/">Eclipse</a> plugin for Android. I was able to get the <a href="http://developer.android.com/guide/tutorials/hello-world.html">Hello, World! script</a> running fine in the virtual Android machine, but when I started trying to connect my phone for debugging I started running into issues. I&#8217;m using the Nexus One which is currently on Android 2.1 and I&#8217;m on OS X 10.6 (Snow Leopard). It seemed that whenever I ran the command <code>adb devices</code>in the terminal, I got an empty list of devices. Frustrating. </p>
<p>Well after scouring the internets with no results, I remembered that when I installed the SDKs with Eclipse, there seemed to be a lack of overlap between the two. When installing the Eclipse Plugin, it creates a folder in the workspace called com.google.android.sdk, except this SDK doesn&#8217;t line up with <a href="http://developer.android.com/sdk/android-2.1.html">the SDK from the Android Developers site</a>. When I had initially put things together I simply copied over some of the files created by Eclipse to avoid breaking the plugin. But when running <code>adb devices</code>, it was running from the Eclipse provided SDK. Upon trying again with the <code>adb</code> command from the Android Developer&#8217;s SDK, the phone shows up on the list of devices. So now I&#8217;m copying arranging files to use the good SDK.</p>
<p>Not sure if this will have an effect on the Eclipse plugin. I&#8217;m assuming not. My guess is that the Eclipse plugin was simply packaged with an older version of the SDK. We&#8217;ll see though. So happy to see the Android SDK is in Java though. Way better than the iPhone SDK.</p>
<p>UPDATE:<br />
Looks like you don&#8217;t want to overwrite any files. Simply leave the com.google.android.sdk directory as is and point to the downloaded SDK in the Android preferences pane in Eclipse (SDK Location). I had to delete and recreate my helloworld project in Eclipse to repair the errors due to the missing core library (android.jar).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bingshui.org/tech/playing-with-the-android-sdk-on-the-nexus-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
