<?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>fieldmarshallhradek.com &#187; Android</title>
	<atom:link href="http://fieldmarshallhradek.com/tag/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://fieldmarshallhradek.com</link>
	<description>Everything is funny as long as it is happening to somebody else</description>
	<lastBuildDate>Wed, 08 Feb 2012 08:21:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Strange Shared Preferences Loss</title>
		<link>http://fieldmarshallhradek.com/2011/02/strange-shared-preferences-loss/</link>
		<comments>http://fieldmarshallhradek.com/2011/02/strange-shared-preferences-loss/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 23:15:45 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://fieldmarshallhradek.com/?p=1138</guid>
		<description><![CDATA[Since recently deciding to try and avoid developing on the emulator I&#8217;ve come across a super annoying bug within Android which would basically lock you from being able to write to the shared preferences of your app. Examples are abound &#8230; <a href="http://fieldmarshallhradek.com/2011/02/strange-shared-preferences-loss/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since recently deciding to try and avoid developing on the emulator I&#8217;ve come across a super annoying bug within Android which would basically lock you from being able to write to the shared preferences of your app. <a href="http://groups.google.com/group/android-developers/browse_thread/thread/568884aa0b8bbe94">Examples</a> are <a href="http://code.google.com/p/android/issues/detail?id=2047">abound</a> but basically installing your app over an existing version of the app on your device will potentially muck with the permissions in the shared preferences space. This may not always be a problem except if you read/write from that space. The reason it has suddenly become noticed since trying to avoid developing on the emulator is that I use the &#8220;Run&#8221; button as I did with the emulator and I believe that using this way of overwriting the existing version eventually causes this issue.</p>
<p>However, according to some of the posts with similar symptoms, end users were experiencing the issue on app upgrade!</p>
<p>While developing recently I ran into this problem and it drove me crazy. I had spent some time trying to trouble shoot restarting the device, my dev machine, Eclipse, the ADB; all to no avail. Uninstalling the app didn&#8217;t work either. </p>
<p>I eventually got a work around where I was able to delete the shared preferences directory and its contents which then reinstalling the app allowed it to function correctly. After this point I am trying to uninstall the app and then install it &mdash; via command line script.</p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Ffieldmarshallhradek.com%2F2011%2F02%2Fstrange-shared-preferences-loss%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Ffieldmarshallhradek.com%2F2011%2F02%2Fstrange-shared-preferences-loss%2F&amp;text=Strange+Shared+Preferences+Loss&amp;via=hradek" target="_blank" class="mr_social_sharing_popup_link"><img src="http://fieldmarshallhradek.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><g:plusone size="medium" count="false" href="http://fieldmarshallhradek.com/2011/02/strange-shared-preferences-loss/"></g:plusone></span></div>]]></content:encoded>
			<wfw:commentRss>http://fieldmarshallhradek.com/2011/02/strange-shared-preferences-loss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Testing Revelations</title>
		<link>http://fieldmarshallhradek.com/2011/02/some-testing-revlations/</link>
		<comments>http://fieldmarshallhradek.com/2011/02/some-testing-revlations/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 18:33:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://fieldmarshallhradek.com/?p=1102</guid>
		<description><![CDATA[Testing in Android is tricky. First off, the emulator is a wonderful development tool but that is where it stops. It should never substitute testing on actual devices. That wasn&#8217;t apparent to me until recently. The HTC Evo, for example, &#8230; <a href="http://fieldmarshallhradek.com/2011/02/some-testing-revlations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Testing in Android is tricky. First off, the emulator is a wonderful development tool but that is where it stops. It should never substitute testing on actual devices. That wasn&#8217;t apparent to me until recently. The HTC Evo, for example, handles pre-main activity launches much better then the MyTouch 4G. The Nexus S has got a super processor which may encourage race conditions to show up. HTC Sense devices don&#8217;t handle redirects. Emulator is perfect. Devices not so much.</p>
<p>Another testing revelation is slowing the machine down for network tests. I have been using wi-fi to get through my tests quickly and 3G/4G are still pretty quick. A neat trick is to do that on the computer the device is connected via wi-fi or USB to.</p>
<p>Set a pipe to something really slow:</p>
<pre class="brush:shell">sudo ipfw pipe 1 config bw 5KByte/s</pre>
<p>Set that pipe to port 80:</p>
<pre class="brush:shell">sudo ipfw add 1 pipe 1 src-port 80</pre>
<p>When done delete it:</p>
<pre class="brush:shell">sudo ipfw delete 1</pre>
<p>When testing I&#8217;ve made a habit of uninstalling the app and then reinstalling it. The DDMS is quite annoying but it disconnects much less frequency when using an actual device rather than the emulator. Unfortunately, the file interface doesn&#8217;t always allow us access to delete files. The <a href="http://openintents.org/en/filemanager">OI File Manager</a> is an easy tool to get onto the device and manage cache files, etc.</p>
<p>Using the ADB Monkey tester has its share of things you can discover about your app. The Google documentation suggests using static classes and boy have those come to haunt me. Monkey has helped a lot in that it backgrounds your app in ways you&#8217;d never think to test. This can help destroy references which you are relying on giving you an opportunity to discover and fix issues before loosing your creation upon the world.</p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Ffieldmarshallhradek.com%2F2011%2F02%2Fsome-testing-revlations%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Ffieldmarshallhradek.com%2F2011%2F02%2Fsome-testing-revlations%2F&amp;text=Some+Testing+Revelations&amp;via=hradek" target="_blank" class="mr_social_sharing_popup_link"><img src="http://fieldmarshallhradek.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><g:plusone size="medium" count="false" href="http://fieldmarshallhradek.com/2011/02/some-testing-revlations/"></g:plusone></span></div>]]></content:encoded>
			<wfw:commentRss>http://fieldmarshallhradek.com/2011/02/some-testing-revlations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back In The Game</title>
		<link>http://fieldmarshallhradek.com/2010/06/back-in-the-game/</link>
		<comments>http://fieldmarshallhradek.com/2010/06/back-in-the-game/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 02:02:12 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flicka]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://fieldmarshallhradek.com/?p=933</guid>
		<description><![CDATA[Yeah, so I&#8217;m playing Age of Conan (and totally loving it!), but what I really wanted to post is that I am doing my first full code-a-thon today and it feels good. I feel like I am back in the &#8230; <a href="http://fieldmarshallhradek.com/2010/06/back-in-the-game/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yeah, so I&#8217;m playing Age of Conan (and totally loving it!), but what I really wanted to post is that I am doing my first full code-a-thon today and it feels good. I feel like I am back in the game.</p>
<p>For today we&#8217;re working on a couple things. I want to make Flicka be able to upload pictures and take pictures with the camera. Maybe even fix some problems with the search and the menu button. Koa is going to be fixing some layout stuff and hopefully sexify the search.</p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Ffieldmarshallhradek.com%2F2010%2F06%2Fback-in-the-game%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Ffieldmarshallhradek.com%2F2010%2F06%2Fback-in-the-game%2F&amp;text=Back+In+The+Game&amp;via=hradek" target="_blank" class="mr_social_sharing_popup_link"><img src="http://fieldmarshallhradek.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><g:plusone size="medium" count="false" href="http://fieldmarshallhradek.com/2010/06/back-in-the-game/"></g:plusone></span></div>]]></content:encoded>
			<wfw:commentRss>http://fieldmarshallhradek.com/2010/06/back-in-the-game/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>D&#8217;oh Too Much</title>
		<link>http://fieldmarshallhradek.com/2010/03/doh-too-much/</link>
		<comments>http://fieldmarshallhradek.com/2010/03/doh-too-much/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 00:56:54 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flicka]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://fieldmarshallhradek.com/?p=713</guid>
		<description><![CDATA[We&#8217;re planning on releasing a video on the 26th to show off Flicka. We&#8217;ve got some issues to fix and tomorrow&#8217;s Code-a-thon would have been perfect to set up and get ready to do this. And tomorrow at noon I&#8217;m &#8230; <a href="http://fieldmarshallhradek.com/2010/03/doh-too-much/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re planning on releasing a video on the 26th to show off <a href="http://www.flicka.mobi">Flicka</a>. We&#8217;ve got some issues to fix and tomorrow&#8217;s Code-a-thon would have been perfect to set up and get ready to do this.</p>
<p>And tomorrow at noon I&#8217;m headed down to AboutUs for a sort of developer exchange. It&#8217;s more like they have a great understanding of Agile and we at Domaintools would love to learn a little more about their immensely productive sprints.</p>
<p>I remain cautiously optimistic. Our products are vastly different and so is our code base so I fear that also their process may be great, it&#8217;s great <em>for them.</em></p>
<p>So with me being gone tomorrow and most of Friday I am afraid we won&#8217;t get to release the video. It&#8217;s a little demoralizing. We started talking about Flicka a while ago and although I know we won&#8217;t hurt people by delaying the video by a couple days it&#8217;s super nice to stay on target. Here&#8217;s to late nights and willpower.</p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Ffieldmarshallhradek.com%2F2010%2F03%2Fdoh-too-much%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Ffieldmarshallhradek.com%2F2010%2F03%2Fdoh-too-much%2F&amp;text=D%E2%80%99oh+Too+Much&amp;via=hradek" target="_blank" class="mr_social_sharing_popup_link"><img src="http://fieldmarshallhradek.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><g:plusone size="medium" count="false" href="http://fieldmarshallhradek.com/2010/03/doh-too-much/"></g:plusone></span></div>]]></content:encoded>
			<wfw:commentRss>http://fieldmarshallhradek.com/2010/03/doh-too-much/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rox0r Gamez y0 &amp; Other Stuff</title>
		<link>http://fieldmarshallhradek.com/2010/03/roxor-gamez-yo/</link>
		<comments>http://fieldmarshallhradek.com/2010/03/roxor-gamez-yo/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 23:58:22 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flicka]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[reading]]></category>

		<guid isPermaLink="false">http://fieldmarshallhradek.com/?p=700</guid>
		<description><![CDATA[I&#8217;ve been super busy, first off, so although I&#8217;m about to go off about how awesome Dragon Age: Origins is keep in mind I play a few hours a week. Anyway, the story writing and just everything is awesome. Some &#8230; <a href="http://fieldmarshallhradek.com/2010/03/roxor-gamez-yo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been super busy, first off, so although I&#8217;m about to go off about how awesome <em>Dragon Age: Origins</em> is keep in mind I play a few hours a week. Anyway, the story writing and just everything is awesome. Some of the modeling for when characters are speaking is off. There are some wonky parts in the story. Overall, though, it&#8217;s been fun.</p>
<p>The expansion (<em>Dragon Age: Awakening</em>) came out yesterday and it looks like it&#8217;ll continue where I left off. Inside was a <a href="http://www.1up.com/do/newsStory?cId=3178311">curious card</a> with 2.11.2011 printed on it. I am a little worried about a sequel being rushed out. I haven&#8217;t played any of the Mass Effect series. With how good this has been I might have to broaden my horizons.</p>
<p>Now for some interesting viewing. It&#8217;s long but chalk full of so-called conspiracies and stuff. I dig it. I know Alex Jones and some of the Prison Planet/Infowars stuff can go off the deep end but I appreciate some of the things these guys point out.</p>
<div style="margin-bottom: 10px;" align="center"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/VebOTc-7shU&amp;rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/VebOTc-7shU&amp;rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></div>
<div style="margin-bottom: 10px; text-align: left;">It&#8217;s been a stressful couple weeks. Work issues. Church issues. The office has been fairly quiet this week since most of the team is out on vacation or sick. As a lead developer I&#8217;ve seen my code time drop significantly. I still have a lot to look at and learn but my contributions are more about what I can provide for the team rather than lines of code I can push out.</div>
<div style="margin-bottom: 10px; text-align: left;">I&#8217;ve been working on <a href="http://www.flicka.mobi/">Flicka</a> and it is coming along quite nicely. The library we have been using has been relegated to a wrapper for the Flickr API. It&#8217;s disappointing how limiting it has become especially since it doesn&#8217;t offer a lot of the functionality offered up by the API itself. The developers are probably busy but I actually wouldn&#8217;t mind helping out and working on the library. Might be neat to be part of an open-source project.</div>
<div style="margin-bottom: 10px; text-align: left;">It&#8217;s a good learning experience. I&#8217;ve gone in and torn apart and added functionality to the source, learned a lot about Java and the Android SDK, and managing my time even when I don&#8217;t really want to go through and test <em>that</em> bug for the 100th time! Right now I am fleshing out the Groups and Group Info sections. After that I need to rethink the caching for Contacts and Contact Info sections. Then off to working out notifications and uploading pictures.</div>
<div style="margin-bottom: 10px; text-align: left;">I recently subscribed to <em>The Economist</em> to get my fill of news and analysis. It has some bias but overall seems fairly comprehensive without all the useless sports and celebrity gossip you find elsewhere. I&#8217;ve been reading <em>Good Soldier Švejk. </em>It&#8217;s been quite a hilarious journey. The translation isn&#8217;t the best but the gist is all there. It&#8217;s actually got me contemplating finding some more stuff to read by Czech authors.</div>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Ffieldmarshallhradek.com%2F2010%2F03%2Froxor-gamez-yo%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Ffieldmarshallhradek.com%2F2010%2F03%2Froxor-gamez-yo%2F&amp;text=Rox0r+Gamez+y0+%26+Other+Stuff&amp;via=hradek" target="_blank" class="mr_social_sharing_popup_link"><img src="http://fieldmarshallhradek.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><g:plusone size="medium" count="false" href="http://fieldmarshallhradek.com/2010/03/roxor-gamez-yo/"></g:plusone></span></div>]]></content:encoded>
			<wfw:commentRss>http://fieldmarshallhradek.com/2010/03/roxor-gamez-yo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

