<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>As I go from “Hello world” to full app, I will try to serialize some of my information here.</description><title>Android Development Notes</title><generator>Tumblr (3.0; @android-development)</generator><link>http://android-development.tumblr.com/</link><item><title>i just realized it totally looks like he’s winking</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_me6s19YzTc1qcfauso1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;i just realized it totally looks like he’s winking&lt;/p&gt;</description><link>http://android-development.tumblr.com/post/36785080455</link><guid>http://android-development.tumblr.com/post/36785080455</guid><pubDate>Wed, 28 Nov 2012 22:10:40 -0500</pubDate></item><item><title>Awesome! Having a test device rules.</title><description>&lt;p&gt;So, this warning was plaguing me for a while:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ActivityManager: Warning: Activity not started, its current task has been brought to the front&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;#8220;What is this crap?&amp;#8221; I thought.  &amp;#8220;Why won&amp;#8217;t the emulator start?!&amp;#8221;&lt;/p&gt;
&lt;p&gt;Then I looked down at my G1, which I had plugged in to my computer via USB to charge, and realized that &lt;em&gt;my app was already running on my phone&lt;/em&gt;.  I have no idea how this happened.  Eclipse just found my phone plugged in and handed it the app, which it happily ran.  Too effing cool!&lt;/p&gt;
&lt;p&gt;&amp;#8220;Hello world&amp;#8221; achieved!  I&amp;#8217;m calling it a night.&lt;/p&gt;</description><link>http://android-development.tumblr.com/post/813977864</link><guid>http://android-development.tumblr.com/post/813977864</guid><pubDate>Thu, 15 Jul 2010 01:37:00 -0400</pubDate></item><item><title>XML and GUI Building</title><description>&lt;p&gt;Ugh, I guess I will assent to working with XML to the extent that it is necessary.  Why would you use XML for an &lt;em&gt;intra-IDE &lt;/em&gt;data format?!  For God&amp;#8217;s sake, it&amp;#8217;s an IDE!  The data format can be whatever you want!  Just make the interface &lt;em&gt;not suck&lt;/em&gt;, and&amp;#8212;oh.  Well, there&amp;#8217;s my answer.&lt;/p&gt;
&lt;p&gt;The raw basics for layout actually aren&amp;#8217;t bad:&lt;/p&gt;
&lt;pre&gt;&lt;code class="html"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical" &lt;br/&gt;     android:layout_width="fill_parent"&lt;br/&gt;     android:layout_height="fill_parent" &lt;br/&gt;     android:background="@color/MyColor"&lt;br/&gt;&amp;gt;

&amp;lt;EditText android:id="@+id/EditText01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:inputType="numberSigned|numberDecimal"&amp;gt;&amp;lt;/EditText&amp;gt;
	&amp;lt;RadioGroup android:id="@+id/RadioGroup01"
		android:layout_width="wrap_content" android:layout_height="wrap_content"&amp;gt;
		&amp;lt;RadioButton android:id="@+id/RadioButton01"
			android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/celsius" android:checked="true"&amp;gt;&amp;lt;/RadioButton&amp;gt;
		&amp;lt;RadioButton android:id="@+id/RadioButton02"
			android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/fahrenheit"&amp;gt;&amp;lt;/RadioButton&amp;gt;
	&amp;lt;/RadioGroup&amp;gt;
	&amp;lt;Button android:id="@+id/Button01"
		android:layout_height="wrap_content" android:onClick="@string/buttonHandler" android:layout_width="wrap_content" android:text="@string/calc"&amp;gt;&amp;lt;/Button&amp;gt;
&amp;lt;/LinearLayout&amp;gt;
&lt;/code&gt;&lt;br/&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#8217;m sure it gets hairier once you start building really complex and functional interfaces, but this doesn&amp;#8217;t have any of the bloat that usually makes me terrified of XML.  Also, I like the way it separates constants like strings and colors from the actual layout by letting you reference an XML file (as in android:text=&amp;#8221;@string/someconstant&amp;#8221;).  I wonder how much of this is Eclipse, how much of it is Eclipse Helios, and how much of it is the Android SDK.&lt;/p&gt;</description><link>http://android-development.tumblr.com/post/813928875</link><guid>http://android-development.tumblr.com/post/813928875</guid><pubDate>Thu, 15 Jul 2010 01:22:14 -0400</pubDate><category>ide</category><category>gui</category><category>xml</category></item><item><title>Syntax Highlighting in Tumblr</title><description>&lt;a href="http://drnicwilliams.com/2007/03/08/syntax-highlighting-in-tumblr/"&gt;Syntax Highlighting in Tumblr&lt;/a&gt;</description><link>http://android-development.tumblr.com/post/813911761</link><guid>http://android-development.tumblr.com/post/813911761</guid><pubDate>Thu, 15 Jul 2010 01:17:00 -0400</pubDate></item><item><title>Setting up the SDK</title><description>&lt;p&gt;&lt;strong&gt;My Development Platform&lt;/strong&gt;: Windows XP SP3&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My Testing Device&lt;/strong&gt;: G1 with CyanogenMod-4.2.15.1 (running Android 1.6)&lt;/p&gt;
&lt;p&gt;This is mostly a summary of what I found &lt;a href="http://developer.android.com/sdk/index.html"&gt;here&lt;/a&gt; and &lt;a href="http://www.vogella.de/articles/Android/article.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve never done Java development, nor any development with any IDEs, so this was kind of a hassle.  I predict that I&amp;#8217;m going to hate working without a command line.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Download the &lt;a target="_blank" href="http://developer.android.com/sdk/index.html"&gt;Android SDK&lt;/a&gt; from the official Android site. &lt;ol&gt;&lt;li&gt;Extract it.&lt;/li&gt;
&lt;li&gt;Run &lt;strong&gt;SDK Setup.exe&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;It complained about SSL errors, so I cancelled out of everything, went to &amp;#8220;Settings&amp;#8221; and set &amp;#8220;Force HTTPS to be downloaded through HTTP.&amp;#8221;&lt;/li&gt;
&lt;li&gt;In retrospect, I only needed to download API version 4, which is specifically for Android 1.6.  But, I downloaded them all, and it took forever.&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;Download &amp;#8220;&lt;a target="_blank" href="http://www.eclipse.org/downloads/"&gt;Eclipse IDE for Java Developers&lt;/a&gt;&amp;#8221; (99&amp;#160;MB) from the Eclipse site.  Turns out this is a special flavor of Eclipse called &amp;#8220;Helios.&amp;#8221;&lt;/li&gt;
&lt;li&gt;Download &amp;#8220;&lt;a target="_blank" href="http://java.sun.com/javase/downloads/index.jsp"&gt;Java Platform (JDK)&lt;/a&gt;&amp;#8221; from the Java site.&lt;/li&gt;
&lt;li&gt;Install them both.&lt;/li&gt;
&lt;li&gt;Open Eclipse, go to Help -&amp;gt; Install New Software.&lt;/li&gt;
&lt;li&gt;Select &amp;#8220;Android&amp;#8221; in the &amp;#8220;Work with:&amp;#8221; drop down menu.  If &amp;#8220;Android&amp;#8221; isn&amp;#8217;t there, add it with this URL: &lt;a href="https://dl-ssl.google.com/android/eclipse/"&gt;https://dl-ssl.google.com/android/eclipse/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install Developer tools and restart Eclipse.&lt;/li&gt;
&lt;li&gt;Go to Window -&amp;gt; Android Device and SDK manager, and create a new virtual device for testing.&lt;/li&gt;
&lt;li&gt;Go to New -&amp;gt; Other&amp;#8230; -&amp;gt; Android -&amp;gt; Project and select your desired API version.&lt;/li&gt;
&lt;li&gt;I tried adding some values to res/values/strings.xml, but I was getting NullPointerExceptions.  Some Googling turned up &lt;a href="http://groups.google.com/group/android-developers/browse_thread/thread/5ea69f7367b725a5?pli=1"&gt;this thread&lt;/a&gt;, where the Helios developers apologized for the bug and someone suggests a workaround, which is going to Window -&amp;gt; Preferences -&amp;gt; XML -&amp;gt; XML Files -&amp;gt; Editor and unchecking &amp;#8220;Use inferred grammar&amp;#8230;&amp;#8221;&lt;/li&gt;
&lt;/ol&gt;</description><link>http://android-development.tumblr.com/post/813792812</link><guid>http://android-development.tumblr.com/post/813792812</guid><pubDate>Thu, 15 Jul 2010 00:41:38 -0400</pubDate><category>hello-world</category><category>ide</category></item></channel></rss>
