<?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>Industrial Solutions</title>
	<atom:link href="http://creating-industrial-solutions.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://creating-industrial-solutions.com</link>
	<description>We provide the solutions for your industrial environment</description>
	<lastBuildDate>Wed, 22 Feb 2012 14:18:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Meet ipcas at the embedded world 2012</title>
		<link>http://creating-industrial-solutions.com/2012/02/meet-ipcas-at-the-embedded-world-2012/</link>
		<comments>http://creating-industrial-solutions.com/2012/02/meet-ipcas-at-the-embedded-world-2012/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 14:18:36 +0000</pubDate>
		<dc:creator>Daniel Fuhrmannek</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[Booth 323]]></category>
		<category><![CDATA[embedded world]]></category>
		<category><![CDATA[embedded world 2012]]></category>
		<category><![CDATA[ipcas]]></category>

		<guid isPermaLink="false">http://creating-industrial-solutions.com/?p=625</guid>
		<description><![CDATA[The world&#8217;s biggest exhibition for embedded technologies is celebrating its 10th anniversary. The embedded world Exhibition&#038;Conference is the top event for the international embedded community. More then 800 exhibitors from around the world will attend the exhibition. We would like to give you a cordial welcome to our stand in Hall 1, Booth 323. Tuesday [...]]]></description>
			<content:encoded><![CDATA[<p>The world&#8217;s biggest exhibition for embedded technologies is celebrating its 10th anniversary.<br />
The <a href="http://www.embedded-world.de/en/" title="embedded world 2012">embedded world Exhibition&#038;Conference</a> is the top event for the international embedded community. More then 800 exhibitors from around the world will attend the exhibition.</p>
<p><a href="http://www.ipcas.com/embedded-world-2012.html"><img src="http://creating-industrial-solutions.com/wp-content/uploads/2012/02/ipcas-at-the-embedded-world-2012-Hall-1-booth-323-28.2-1.3-580x344.jpg" alt="ipcas at the embedded world 2012 - Hall 1, Booth 323. Tuesday 28 February - Thursday 1 March 2012 - Exhibition Centre Nuremberg, Germany" title="ipcas at the embedded world 2012 - Hall 1, Booth 323. Tuesday 28 February - Thursday 1 March 2012 - Exhibition Centre Nuremberg, Germany" width="580" height="344" class="alignnone size-large wp-image-626" /></a></p>
<p>We would like to give you a cordial welcome to our stand in <strong>Hall 1</strong>, <strong>Booth 323</strong>. <strong>Tuesday 28 February &#8211; Thursday 1 March 2012</strong> &#8211; Exhibition Centre Nuremberg, Germany.</p>
<p>Please seize the opportunity to get first-hand information on our cutting-edge products in the field of embedded and industrial hardware.</p>
<p><strong>We look forward to your visit!</strong></p>
<p><a href="http://www.ipcas.com/embedded-world-2012.html"><b>Request your free ticket</b> today &gt;&gt;</a></p>
<p>For more information, please call <a href="http://www.ipcas.com/contact/contacts/hardware-distribution.html">Ms. Acker</a> +49 (0)9131 7677-137 who will be most glad to help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://creating-industrial-solutions.com/2012/02/meet-ipcas-at-the-embedded-world-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10.000+ Downloads</title>
		<link>http://creating-industrial-solutions.com/2012/02/10-000-downloads-ity-country-caller-id/</link>
		<comments>http://creating-industrial-solutions.com/2012/02/10-000-downloads-ity-country-caller-id/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 08:26:24 +0000</pubDate>
		<dc:creator>Daniel Fuhrmannek</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Caller ID]]></category>
		<category><![CDATA[City]]></category>
		<category><![CDATA[Country]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[ipcas]]></category>

		<guid isPermaLink="false">http://creating-industrial-solutions.com/?p=617</guid>
		<description><![CDATA[Our Android app City, Country, Caller ID has reached the magic number of 10,000 installations. Thanks for the numerous suggestions and comments that helped us to improve the app constantly. Where does the call come from? City, Country, Caller ID is a free Android app, which displays the city or the country of the caller.]]></description>
			<content:encoded><![CDATA[<p>Our Android app <a href="https://market.android.com/details?id=de.ipcas.callerCity&#038;hl=en">City, Country, Caller ID</a> has reached the magic number of 10,000 installations.<br />
Thanks for the numerous suggestions and comments that helped us to improve the app constantly.</p>
<p><img src="http://creating-industrial-solutions.com/wp-content/uploads/2012/02/ipcas-android-caller-city-downloads.jpg" alt="ipcas-android-caller-city-downloads" title="ipcas-android-caller-city-downloads" width="406" height="281" class="alignnone size-full wp-image-619" /></p>
<p>Where does the call come from? City, Country, Caller ID is a free Android app, which displays the city or the country of the caller.</p>
<p style="text-align: center;"><a href="https://market.android.com/details?id=de.ipcas.callerCity&#038;hl=en"><img class="size-full wp-image-620 aligncenter" title="Android Market" src="http://creating-industrial-solutions.com/wp-content/uploads/2012/02/60_avail_market_logo2.png" alt="" width="260" height="60" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://creating-industrial-solutions.com/2012/02/10-000-downloads-ity-country-caller-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>embedded world 2012</title>
		<link>http://creating-industrial-solutions.com/2012/01/embedded-world-2012/</link>
		<comments>http://creating-industrial-solutions.com/2012/01/embedded-world-2012/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 10:25:39 +0000</pubDate>
		<dc:creator>Daniel Fuhrmannek</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[embedded world 2012]]></category>
		<category><![CDATA[hall 1 booth 323]]></category>

		<guid isPermaLink="false">http://creating-industrial-solutions.com/?p=611</guid>
		<description><![CDATA[Visit ipcas at the embedded world 2012 in Nuermberg From 28.2. to 1.3.2012, booth 323 in hall 1 request a free ticket &#62;&#62;]]></description>
			<content:encoded><![CDATA[<p>Visit ipcas at the <a href="http://www.embedded-world.de/en/default.ashx">embedded world 2012</a> in Nuermberg</p>
<p>From 28.2. to 1.3.2012, booth 323 in hall 1</p>
<p><a href="http://creating-industrial-solutions.com/wp-content/uploads/2012/01/embedded-world-2012-hall-1-booth-323.jpg"><img src="http://creating-industrial-solutions.com/wp-content/uploads/2012/01/embedded-world-2012-hall-1-booth-323-580x751.jpg" alt="embedded world 2012: 28.2. -1.3.2011, booth 323 in hall 1" title="embedded world 2012: 28.2. -1.3.2011, booth 323 in hall 1" width="580" height="751" class="alignleft size-large wp-image-613" /></a></p>
<p><a href="http://www.ipcas.com/embedded-world-2012.html">request a free ticket &gt;&gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creating-industrial-solutions.com/2012/01/embedded-world-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merry Christmas and a Happy New Year 2012</title>
		<link>http://creating-industrial-solutions.com/2011/12/merry-christmas-and-a-happy-new-year-2012/</link>
		<comments>http://creating-industrial-solutions.com/2011/12/merry-christmas-and-a-happy-new-year-2012/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:19:07 +0000</pubDate>
		<dc:creator>Daniel Fuhrmannek</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Christmas Wishes]]></category>
		<category><![CDATA[Happy New Year 2012]]></category>
		<category><![CDATA[Merry Christmas]]></category>

		<guid isPermaLink="false">http://creating-industrial-solutions.com/?p=603</guid>
		<description><![CDATA[Christmas Wishes The eventful year is now drawing to a close. Christmas time gives us an opportunity to reflect on the past and draw strength for the future. We thank you for the trust you have shown in us, for your loyalty as well as the pleasant cooperation. We wish you and your family a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://creating-industrial-solutions.com/wp-content/uploads/2011/12/merry-christmas-and-a-happy-new-year-2012.png"><img class="size-large wp-image-604 alignnone" title="Merry Christmas and a Happy New Year 2012" src="http://creating-industrial-solutions.com/wp-content/uploads/2011/12/merry-christmas-and-a-happy-new-year-2012-580x435.png" alt="Merry Christmas and a Happy New Year 2012" width="580" height="435" /></a></p>
<h2>Christmas Wishes</h2>
<p><strong>The eventful year is now drawing to a close. Christmas time gives us an opportunity to reflect on the past and draw strength for the future.</strong><br />
<strong> We thank you for the trust you have shown in us, for your loyalty as well as the pleasant cooperation.</strong><br />
<strong> We wish you and your family a very Merry Christmas and success and happiness for the forthcoming year.</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://creating-industrial-solutions.com/2011/12/merry-christmas-and-a-happy-new-year-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Color Picker</title>
		<link>http://creating-industrial-solutions.com/2011/12/android-color-picker/</link>
		<comments>http://creating-industrial-solutions.com/2011/12/android-color-picker/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 09:14:30 +0000</pubDate>
		<dc:creator>sascha</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://creating-industrial-solutions.com/?p=583</guid>
		<description><![CDATA[This Android tutorial shows a color picker which we developed for our Android App City, Country, Caller ID. The source code can be downloaded as Eclipse project: Android Color Picker. Here we have, in the first example, a predefined list with colors: We use a GridView with six columns. Within the rows and columns there is [...]]]></description>
			<content:encoded><![CDATA[<p>This Android tutorial shows a color picker which we developed for our Android App <a title="Android Caller ID: City, Country, Caller ID" href="https://market.android.com/details?id=de.ipcas.callerCity" target="_blank">City, Country, Caller ID</a>. The source code can be downloaded as Eclipse project: <a href='http://creating-industrial-solutions.com/wp-content/uploads/2011/12/ColorPicker.zip'>Android Color Picker</a>.</p>
<p>Here we have, in the first example, a predefined list with colors: <a href="http://creating-industrial-solutions.com/2011/12/android-color-picker/android-color-picker/" rel="attachment wp-att-584"><img src="http://creating-industrial-solutions.com/wp-content/uploads/2011/12/android-color-picker-330x550.png" alt="android-color-picker" title="android-color-picker" width="330" height="550" class="alignnone size-medium wp-image-584" /></a></p>
<p>We use a <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" target="_blank">GridView</a> with six columns. Within the rows and columns there is an <a href="http://developer.android.com/reference/android/widget/ImageView.html" target="_blank">ImageView</a> defined, which background color will be set using <em>imageView.setBackgroundColor(colorList.get(position));</em>.</p>
<p>The layout of the GridView is defined in res/layout/color_picker.xml.</p>
<p>Look for the colors in <em>ColorPickerAdapter.java</em>, which are placed in an array (for better reading).</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// for convenience and better reading, we place the colors in a two dimension array</span>
<span style="color: #003399;">String</span> colors<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> <span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;822111&quot;</span>, <span style="color: #0000ff;">&quot;AC2B16&quot;</span>, <span style="color: #0000ff;">&quot;CC3A21&quot;</span>, <span style="color: #0000ff;">&quot;E66550&quot;</span>, <span style="color: #0000ff;">&quot;EFA093&quot;</span>, <span style="color: #0000ff;">&quot;F6C5BE&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;A46A21&quot;</span>, <span style="color: #0000ff;">&quot;CF8933&quot;</span>, <span style="color: #0000ff;">&quot;EAA041&quot;</span>, <span style="color: #0000ff;">&quot;FFBC6B&quot;</span>, <span style="color: #0000ff;">&quot;FFD6A2&quot;</span>, <span style="color: #0000ff;">&quot;FFE6C7&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;AA8831&quot;</span>, <span style="color: #0000ff;">&quot;D5AE49&quot;</span>, <span style="color: #0000ff;">&quot;F2C960&quot;</span>, <span style="color: #0000ff;">&quot;FCDA83&quot;</span>, <span style="color: #0000ff;">&quot;FCE8B3&quot;</span>, <span style="color: #0000ff;">&quot;FEF1D1&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;076239&quot;</span>, <span style="color: #0000ff;">&quot;0B804B&quot;</span>, <span style="color: #0000ff;">&quot;149E60&quot;</span>, <span style="color: #0000ff;">&quot;44B984&quot;</span>, <span style="color: #0000ff;">&quot;89D3B2&quot;</span>, <span style="color: #0000ff;">&quot;B9E4D0&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;1A764D&quot;</span>, <span style="color: #0000ff;">&quot;2A9C68&quot;</span>, <span style="color: #0000ff;">&quot;3DC789&quot;</span>, <span style="color: #0000ff;">&quot;68DFA9&quot;</span>, <span style="color: #0000ff;">&quot;A0EAC9&quot;</span>, <span style="color: #0000ff;">&quot;C6F3DE&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;1C4587&quot;</span>, <span style="color: #0000ff;">&quot;285BAC&quot;</span>, <span style="color: #0000ff;">&quot;3C78D8&quot;</span>, <span style="color: #0000ff;">&quot;6D9EEB&quot;</span>, <span style="color: #0000ff;">&quot;A4C2F4&quot;</span>, <span style="color: #0000ff;">&quot;C9DAF8&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;41236D&quot;</span>, <span style="color: #0000ff;">&quot;653E9B&quot;</span>, <span style="color: #0000ff;">&quot;8E63CE&quot;</span>, <span style="color: #0000ff;">&quot;B694E8&quot;</span>, <span style="color: #0000ff;">&quot;D0BCF1&quot;</span>, <span style="color: #0000ff;">&quot;E4D7F5&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;83334C&quot;</span>, <span style="color: #0000ff;">&quot;B65775&quot;</span>, <span style="color: #0000ff;">&quot;E07798&quot;</span>, <span style="color: #0000ff;">&quot;F7A7C0&quot;</span>, <span style="color: #0000ff;">&quot;FBC8D9&quot;</span>, <span style="color: #0000ff;">&quot;FCDEE8&quot;</span> <span style="color: #009900;">&#125;</span>,
		<span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;000000&quot;</span>, <span style="color: #0000ff;">&quot;434343&quot;</span>, <span style="color: #0000ff;">&quot;666666&quot;</span>, <span style="color: #0000ff;">&quot;999999&quot;</span>, <span style="color: #0000ff;">&quot;CCCCCC&quot;</span>, <span style="color: #0000ff;">&quot;EFEFEF&quot;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
colorList <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ArrayList</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// add the color array to the list</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> colors.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> j <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> j <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> colors<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">parseColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #339933;">+</span> colors<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>In the next step we will assign the Adapter to the GridView:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">GridView gridViewColors <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>GridView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">gridViewColors</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gridViewColors.<span style="color: #006633;">setAdapter</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ColorPickerAdapter<span style="color: #009900;">&#40;</span>getContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The second example shows a Rainbow-Color-Picker where the number of colors is flexible:</p>
<p><a href="http://creating-industrial-solutions.com/2011/12/android-color-picker/android-color-picker-rainbow/" rel="attachment wp-att-585"><img src="http://creating-industrial-solutions.com/wp-content/uploads/2011/12/android-color-picker-rainbow-330x550.png" alt="" title="android-color-picker-rainbow" width="330" height="550" class="alignnone size-medium wp-image-585" /></a></p>
<p>Define the rainbow with the following steps::</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// FF 00 00 --&amp;gt; FF FF 00</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>red <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span>, green <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>, blue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> green <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">;</span> green <span style="color: #339933;">+=</span> step<span style="color: #009900;">&#41;</span>
    colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">rgb</span><span style="color: #009900;">&#40;</span>red, green, blue<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// FF FF 00 --&amp;gt; 00 FF 00</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>red <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span>, green <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span>, blue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> red <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> red <span style="color: #339933;">-=</span> step<span style="color: #009900;">&#41;</span>
    colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">rgb</span><span style="color: #009900;">&#40;</span>red, green, blue<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// 00 FF 00 --&amp;gt; 00 FF FF</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>red <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>, green <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span>, blue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> blue <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">;</span> blue <span style="color: #339933;">+=</span> step<span style="color: #009900;">&#41;</span>
    colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">rgb</span><span style="color: #009900;">&#40;</span>red, green, blue<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// 00 FF FF -- &amp;gt; 00 00 FF</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>red <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>, green <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span>, blue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">;</span> green <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> green <span style="color: #339933;">-=</span> step<span style="color: #009900;">&#41;</span>
    colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">rgb</span><span style="color: #009900;">&#40;</span>red, green, blue<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// 00 00 FF --&amp;gt; FF 00 FF</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>red <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>, green <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>, blue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">;</span> red <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">;</span> red <span style="color: #339933;">+=</span> step<span style="color: #009900;">&#41;</span>
    colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">rgb</span><span style="color: #009900;">&#40;</span>red, green, blue<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// FF 00 FF -- &amp;gt; FF 00 00</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>red <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span>, green <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>, blue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">;</span> blue <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> blue <span style="color: #339933;">-=</span> <span style="color: #cc66cc;">256</span> <span style="color: #339933;">/</span> step<span style="color: #009900;">&#41;</span>
    colorList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">rgb</span><span style="color: #009900;">&#40;</span>red, green, blue<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>Layout tipps</strong></p>
<p>Right now the layout is only optimized for hdpi devices. Looking at a ldpi device (small screen) we get the following screen:</p>
<p><a href="http://creating-industrial-solutions.com/2011/12/android-color-picker/android-color-picker-small-device/" rel="attachment wp-att-586"><img src="http://creating-industrial-solutions.com/wp-content/uploads/2011/12/android-color-picker-small-device.png" alt="" title="android-color-picker-small-device" width="240" height="320" class="alignnone size-full wp-image-586" /></a></p>
<p>We have to adjust the GridView column width in order to have the desired layout on various screens. Creating the file <em>res\values-small\strings.xml</em> and setting the width with <em>colorGridColumnWidth</em> will solve the problem:<br />
<a href="http://creating-industrial-solutions.com/2011/12/android-color-picker/android-color-picker-small-device-fixed/" rel="attachment wp-att-587"><img src="http://creating-industrial-solutions.com/wp-content/uploads/2011/12/android-color-picker-small-device-fixed.png" alt="" title="android-color-picker-small-device-fixed" width="240" height="320" class="alignnone size-full wp-image-587" /></a></p>
<p><strong><a href='http://creating-industrial-solutions.com/wp-content/uploads/2011/12/ColorPicker.zip'>Download Eclipse Project Android Color Picker</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://creating-industrial-solutions.com/2011/12/android-color-picker/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

