<?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>Android from scratch &#187; ADT plugin</title>
	<atom:link href="http://android.opensourceror.org/category/adt-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://android.opensourceror.org</link>
	<description>n00bs leading the n00bs</description>
	<lastBuildDate>Thu, 28 Jan 2010 01:50:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Editing XML resources for Android in Eclipse</title>
		<link>http://android.opensourceror.org/2009/12/30/editing-xml-resources-for-android-in-eclipse/</link>
		<comments>http://android.opensourceror.org/2009/12/30/editing-xml-resources-for-android-in-eclipse/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 15:22:04 +0000</pubDate>
		<dc:creator>luke</dc:creator>
				<category><![CDATA[ADT plugin]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[SDK level 2.0.1]]></category>
		<category><![CDATA[n00b frustrations]]></category>
		<category><![CDATA[ADT]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[auto-complete]]></category>
		<category><![CDATA[auto-format]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[suggest]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://android.opensourceror.org/2009/12/30/editing-xml-resources-for-android-in-eclipse/</guid>
		<description><![CDATA[Just the other day, I was griping about the way Eclipse ADT tools dump out XML in long unreadable lines like this:
As with so many things, Eclipse is your friend if you just know how to set it up. As it turns out, Artem Russakovskii of Beer Planet recently wrote an excellent post with instructions [...]]]></description>
			<content:encoded><![CDATA[<p>Just the other day, I was griping about the way Eclipse ADT tools dump out XML in long unreadable lines like this:<img style="max-width: 800px;" src="http://android.opensourceror.org/wp-content/uploads/2009/12/resource_before.png" /></p>
<p>As with so many things, Eclipse is your friend if you just know how to set it up. As it turns out, Artem Russakovskii of <a target="_blank" href="http://beerpla.net/">Beer Planet</a> recently wrote an <a target="_blank" href="http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/">excellent post with instructions</a> for configuring Eclipse to auto-format your XML pleasingly so it will look more like this:<br /><img style="max-width: 800px;" src="http://android.opensourceror.org/wp-content/uploads/2009/12/resource_after.png" /></p>
<p>I can do no better than to <a target="_blank" href="http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/">refer you to the post</a>. In case he moves it or something, the short-and-sweet version is:
<ol>
<li>Window -&gt; Preferences -&gt; XML -&gt; XML Files -&gt; Editor</li>
<li>Source -&gt; Cleanup Document</li>
</ol>
<p>Making your XML readable means it&#8217;s also a lot more writeable. The ADT GUIs for working with resources are very handy, and you might not think you want to write XML by hand, but Eclipse is your friend here, too: it will suggest and auto-complete tags and attributes for you.<br /><img style="max-width: 800px;" src="http://android.opensourceror.org/wp-content/uploads/2009/12/eclipse_suggest_clipped.png" /></p>
<p>Eclipse can suggest and auto-complete allowed tags, attributes, and values for attributes based on the XML schemas supplied by the SDK. If Eclipse isn&#8217;t automatically suggesting (or like me, you&#8217;ve turned off auto-suggestions because they&#8217;re annoying), you can just press Ctrl-Space with your cursor placed where you&#8217;d like a suggestion in the document, use the arrow keys to choose a suggestion, and hit Enter to accept one. As you can see above, the suggestions come with at least minimal descriptions to jog your memory. This makes writing XML &#8220;by hand&#8221; almost completely painless.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=6e317e63-e54b-87e7-83e2-803b19847838" /></div>
]]></content:encoded>
			<wfw:commentRss>http://android.opensourceror.org/2009/12/30/editing-xml-resources-for-android-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Eclipse ADT plugin for creating projects says I need to choose a target, but there&#8217;s nowhere to choose a target!</title>
		<link>http://android.opensourceror.org/2009/12/14/the-eclipse-adt-plugin-for-creating-projects-says-i-need-to-choose-a-target-but-theres-nowhere-to-choose-a-target/</link>
		<comments>http://android.opensourceror.org/2009/12/14/the-eclipse-adt-plugin-for-creating-projects-says-i-need-to-choose-a-target-but-theres-nowhere-to-choose-a-target/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 15:03:48 +0000</pubDate>
		<dc:creator>luke</dc:creator>
				<category><![CDATA[ADT plugin]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[SDK level 2.0.1]]></category>
		<category><![CDATA[n00b frustrations]]></category>
		<category><![CDATA[ADT]]></category>
		<category><![CDATA[build target]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[dialog]]></category>

		<guid isPermaLink="false">http://android.opensourceror.org/?p=26</guid>
		<description><![CDATA[This was a particularly frustrating one, but it&#8217;s really simple to resolve.


This is a simple problem of screen real estate. When the dialog is not long enough vertically, the part that is shrunk (down to nothing!) to fit is the Build Target selection box. The only way to get it to show up is to [...]]]></description>
			<content:encoded><![CDATA[<p>This was a particularly frustrating one, but it&#8217;s really simple to resolve.</p>
<div style="width: auto; height: auto;"></div>
<div style="width: auto; height: auto;">
<div id="attachment_29" class="wp-caption alignnone" style="width: 535px"><img class="size-full wp-image-29" title="No build targets??" src="http://android.opensourceror.org/wp-content/uploads/2009/12/new_project_no_build.png" alt="Creating a project - how do I specify the build target when none is listed??? " width="525" height="652" /><p class="wp-caption-text">Creating a project - how do I specify the build target when none is listed??? </p></div>
<p>This is a simple problem of screen real estate. When the dialog is not long enough vertically, the part that is shrunk (down to nothing!) to fit is the Build Target selection box. The only way to get it to show up is to expand the dialog vertically &#8211; you may have to increase your screen resolution to fit it all in (I found this out while working on an Eee PC &#8211; a screen height of 600 pixels won&#8217;t cut it!).</p></div>
<div style="width: auto; height: auto;">
<p>For completeness, I should probably mention that your SDK comes with no build targets &#8211; you have to download some after unzipping it. But if that&#8217;s your problem, you should still see a white space in the Build Target selection box where the targets would be.</p></div>
<div style="width: auto; height: auto;">
<p>This is a pretty strange design problem. Seems to me it would make more sense to occlude the bottom of the dialog in this situation rather than something essential in the middle. Or just put a scrollbar on the dialog!? I found a few other people complaining about this problem.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://android.opensourceror.org/2009/12/14/the-eclipse-adt-plugin-for-creating-projects-says-i-need-to-choose-a-target-but-theres-nowhere-to-choose-a-target/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Missing dependencies for the Eclipse ADT plugin</title>
		<link>http://android.opensourceror.org/2009/12/07/missing-dependencies-for-the-eclipse-adt-plugin/</link>
		<comments>http://android.opensourceror.org/2009/12/07/missing-dependencies-for-the-eclipse-adt-plugin/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:26:43 +0000</pubDate>
		<dc:creator>luke</dc:creator>
				<category><![CDATA[ADT plugin]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[SDK level 2.0]]></category>
		<category><![CDATA[n00b frustrations]]></category>

		<guid isPermaLink="false">http://android.opensourceror.org/?p=3</guid>
		<description><![CDATA[When installing the plugin, depending on your setup, Eclipse may fail with a message that dependencies are missing.
]]></description>
			<content:encoded><![CDATA[<p>When installing the plugin, depending on your setup, Eclipse may fail with a message that dependencies are missing.</p>
<div style="width: auto; height: auto;">
<div class="wp-caption aligncenter" style="width: 747px"><img title="Dependency missing" src="https://wave.googleusercontent.com/wave/attachment/ADT_install_fail.png?id=6aACraaZ2&amp;key=AH0qf5wFAEUN_8OIViTLNCJ12R9_Lvx9Lg" alt="com.android.ide.eclipse.adt.feature.group requires org.eclipse.wst.xml.ui 0.0.0 but it could not be found" width="737" height="525" /><p class="wp-caption-text">com.android.ide.eclipse.adt.feature.group requires &#39;org.eclipse.wst.xml.ui 0.0.0&#39; but it could not be found</p></div>
</div>
<p>Unless your Eclipse is too old (the plugin requires 3.4 or above) this is not really a problem with Eclipse, the SDK, or ADT, but rather how various operating systems package Eclipse. The appropriate components need to be installed or Eclipse needs to be configured with the appropriate software update site for its version so that it can resolve dependencies for you.<span id="more-3"></span></p>
<p>For eclipse 3.5 (galileo) the appropriate update site is <a href="http://download.eclipse.org/releases/galileo" target="_blank">http://download.eclipse.org/releases/galileo</a> &#8211; if it is missing, you add it in the same place you add the plugin:</p>
<div style="width: auto; height: auto;">
<div class="wp-caption aligncenter" style="width: 672px"><img title="Eclipse update site" src="https://wave.googleusercontent.com/wave/attachment/Adding_update_site.png?id=6aACraaZ3&amp;key=AH0qf5zL5_VZlxgXIeps1233IcP_4jnnNA" alt="Adding the Galileo (Eclipse 3.5) update site" width="662" height="556" /><p class="wp-caption-text">Adding the Galileo (Eclipse 3.5) update site</p></div>
</div>
<p><strong>OS-specific experiences</strong></p>
<p>Under Windows, using the Java Developers version of Eclipse, I had no problems.</p>
<p>In Ubuntu 9.10 the default Eclipse install from the Ubuntu Software Center is almost useless. You need to use Synaptic to add to Eclipse after the default install is done; add the eclipse-jdt package. You also need to add the update site as above &#8211; it comes with none configured.</p>
<p>In Fedora, after installing elipse-platform and eclipse-jdt, I needed to go to Eclipse&#8217;s Software Sites dialog and enable the base site that was already there but disabled.</p>
<p>I haven&#8217;t tried it on Mac OS X; it probably just works, but comment here if that&#8217;s not so.<span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://android.opensourceror.org/2009/12/07/missing-dependencies-for-the-eclipse-adt-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

