<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3648090700883700772</id><updated>2011-07-30T15:16:49.394-04:00</updated><title type='text'>05h</title><subtitle type='html'>Android Development</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://05hdev.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3648090700883700772/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://05hdev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Josh</name><uri>http://www.blogger.com/profile/11231034169718341502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3648090700883700772.post-7363871712538604192</id><published>2009-03-18T00:07:00.001-04:00</published><updated>2009-07-24T11:32:40.352-04:00</updated><title type='text'>First App: Demo1</title><content type='html'>I've successfully written an Android App.  It's not much, it simply presents the user with a word, and allows the user to change its color.  Of course I added a few options and details to make it more interesting, but at its best it's not very useful.&lt;br /&gt;&lt;br /&gt;What is useful however, is understanding how an Android program works.  For example, to create a simple button one must define the attributes of the button in XML, then tell the Java code where the button is, what the button is called and again what to do with the button.&lt;br /&gt;&lt;br /&gt;Here's the meat of my code:&lt;br /&gt;// Generate some random numbers for a color&lt;br /&gt;Random(System.currentTimeMillis());&lt;br /&gt;num_Rnd_r = m_rnd.nextInt(255); // 255 is the upper limit&lt;br /&gt;etc...&lt;br /&gt;&lt;br /&gt;// I then color the text with my numbers using RGB&lt;br /&gt;txt_Color.setTextColor(Color.rgb(num_Rnd_r, num_Rnd_g, num_Rnd_b));&lt;br /&gt;&lt;br /&gt;When the menu button is pressed, options appear allowing the user to: edit the text being colored, start over, or hide the details (button tap count &amp;amp; RGB values).&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Nlm_qe8Wnqk/Sf0E8KdDPfI/AAAAAAAAAAU/lML05CRjnRs/s1600-h/Picture+2.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://3.bp.blogspot.com/_Nlm_qe8Wnqk/Sf0E8KdDPfI/AAAAAAAAAAU/lML05CRjnRs/s320/Picture+2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5331422965521399282" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3648090700883700772-7363871712538604192?l=05hdev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://05hdev.blogspot.com/feeds/7363871712538604192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://05hdev.blogspot.com/2009/03/first-app-demo1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3648090700883700772/posts/default/7363871712538604192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3648090700883700772/posts/default/7363871712538604192'/><link rel='alternate' type='text/html' href='http://05hdev.blogspot.com/2009/03/first-app-demo1.html' title='First App: Demo1'/><author><name>Josh</name><uri>http://www.blogger.com/profile/11231034169718341502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Nlm_qe8Wnqk/Sf0E8KdDPfI/AAAAAAAAAAU/lML05CRjnRs/s72-c/Picture+2.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
