<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>cmb-web.co.uk &#187; Android</title>
	<link>http://www.cmb-web.co.uk</link>
	<description></description>
	<pubDate>Thu, 05 Aug 2010 20:17:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>Android numeric input</title>
		<link>http://www.cmb-web.co.uk/index.php/2010/07/android-numeric-input/</link>
		<comments>http://www.cmb-web.co.uk/index.php/2010/07/android-numeric-input/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 15:13:20 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.cmb-web.co.uk/index.php/2010/07/android-numeric-input/</guid>
		<description><![CDATA[To restrict the input for an EditText to a numeric value, you can add the following to the layout file:
&#60;EditText
...
android:singleLine="true"
android:inputType="numberDecimal"
...
&#62;
Then use, for example, Double.parseDouble(&#8230;) to retrieve the value in code.
Incidentally, the documentation recommends avoiding floats and using double instead.
]]></description>
			<content:encoded><![CDATA[<p>To restrict the input for an EditText to a numeric value, you can add the following to the layout file:</p>
<p><code>&lt;EditText</code><br />
<code>...</code><br />
<code>android:singleLine="true"</code><br />
<code>android:inputType="numberDecimal"</code><br />
<code>...</code><br />
<code>&gt;</code></p>
<p>Then use, for example, Double.parseDouble(&#8230;) to retrieve the value in code.</p>
<p>Incidentally, the documentation recommends <a href="http://developer.android.com/guide/practices/design/performance.html#avoidfloat" title="Avoid floating point numbers in Android">avoiding floats</a> and using double instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmb-web.co.uk/index.php/2010/07/android-numeric-input/feed/</wfw:commentRss>
		</item>
		<item>
		<title>main.out.xml: Error parsing XML: no element found</title>
		<link>http://www.cmb-web.co.uk/index.php/2010/04/mainoutxml-error-parsing-xml-no-element-found/</link>
		<comments>http://www.cmb-web.co.uk/index.php/2010/04/mainoutxml-error-parsing-xml-no-element-found/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 07:50:10 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.cmb-web.co.uk/index.php/2010/04/mainoutxml-error-parsing-xml-no-element-found/</guid>
		<description><![CDATA[When you build and run your Android application in Eclipse you can get the following error message:
...res\layout\main.out.xml:1: error: Error parsing XML: no element found
This occurs when you try and run the application from the main.xml layout file. The application cannot run from here and needs to be run from the java file.
The answer is to [...]]]></description>
			<content:encoded><![CDATA[<p>When you build and run your Android application in Eclipse you can get the following error message:</p>
<p><code>...res\layout\main.out.xml:1: error: Error parsing XML: no element found</code></p>
<p>This occurs when you try and run the application from the <code>main.xml</code> layout file. The application cannot run from here and needs to be run from the java file.</p>
<p>The answer is to ensure that a java file is selected when you hit run, as you should run the java not the xml file.  The easiest way to ensure you don&#8217;t do this is to use the<code> Run History</code> options in Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmb-web.co.uk/index.php/2010/04/mainoutxml-error-parsing-xml-no-element-found/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
