<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Hakan's ramblings</title>
	
	<link>http://blog.gurkensalat.com</link>
	<description>Some things I'd like to talk about</description>
	<lastBuildDate>Tue, 04 Oct 2011 18:15:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/HakansRamblings" /><feedburner:info uri="hakansramblings" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>RoboGuice – Pitfall – RuntimeException on Activities</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/1HX9yVTMTEM/roboguice-pitfall-android-name</link>
		<comments>http://blog.gurkensalat.com/2011/10/roboguice-pitfall-android-name#comments</comments>
		<pubDate>Tue, 04 Oct 2011 18:15:35 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[OpenStreetMap]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.gurkensalat.com/?p=474</guid>
		<description><![CDATA[Last weekend, I started developing a application to sync OpenStreetMap contacts into my Android devices. Wanting to avoid boilerplate code, and to experiment a little with Dependency Injection in Android, i based my work on RoboGuice. I think I followed all the example code, but my activities would simply crash with a RuntimeException on startup. [...]]]></description>
				<content:encoded><![CDATA[<p>Last weekend, I started developing a application to sync <a href="http://www.openstreetmap.org/" title="OpenStreetMap" target="_blank" class="liexternal">OpenStreetMap</a> contacts into my <a href="http://blog.gurkensalat.com/tag/android" title="Android" target="_blank" class="liexternal">Android</a> devices.</p>
<p>Wanting to avoid boilerplate code, and to experiment a little with Dependency Injection in Android, i based my work on <a href="http://code.google.com/p/roboguice/" title="RoboGuice" target="_blank" class="liexternal">RoboGuice</a>. I think I followed all the example code, but my activities would simply crash with a RuntimeException on startup.</p>
<p>Since finding the root cause of this problem was not as trivial as I wished it to be, I decided to write this up as an article for myself and of course for all the other Android developers out there who don’t want to waste time hunting this issue when they could be gold-plating their apps :-)</p>
<p>To cut to the core of the problem: If your activity is throwing this:</p>
<p><code><br />
E/AndroidRuntime( 246): Uncaught handler: thread main exiting due to uncaught exception<br />
E/AndroidRuntime( 246): java.lang.RuntimeException: Unable to start activity<br />
ComponentInfo{com.gurkensalat.osm.osmsync/com.gurkensalat.osm.osmsync.HelloAndroidActivity}: java.lang.ClassCastException: android.app.Application<br />
E/AndroidRuntime( 246): at<br />
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)<br />
...<br />
</code></p>
<p>maybe you need to declare your actual application class type in AndroidManifest.xml:</p>
<p><code><br />
&lt;application android:icon="@drawable/icon"<br />
android:label="@string/app_name"<br />
android:name="roboguice.application.RoboApplication"&gt;<br />
...<br />
&lt;/application&gt;<br />
</code></p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/1HX9yVTMTEM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2011/10/roboguice-pitfall-android-name/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<georss:point>48.12956 11.34869</georss:point><geo:lat>48.12956</geo:lat><geo:long>11.34869</geo:long>	<feedburner:origLink>http://blog.gurkensalat.com/2011/10/roboguice-pitfall-android-name</feedburner:origLink></item>
		<item>
		<title>All-New Nook – Reader with eInk display running Android</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/ZLT3sbjjcBs/nook-second-generation</link>
		<comments>http://blog.gurkensalat.com/2011/07/nook-second-generation#comments</comments>
		<pubDate>Tue, 26 Jul 2011 16:42:49 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[EBooks]]></category>
		<category><![CDATA[Aldiko]]></category>

		<guid isPermaLink="false">http://blog.gurkensalat.com/?p=422</guid>
		<description><![CDATA[Using my Desire and S II to read books on lunch breaks can become pretty addictive :-) The only bad thing is that reading on an eInk display can become pretty addictive as well, but my previous readers had either no wireless capability or an useless operating system. So, one day while reading through my [...]]]></description>
				<content:encoded><![CDATA[<p>Using my <a href="http://blog.gurkensalat.com/2010/04/the-android-is-landed" title="The Android is landed" target="_blank" class="liexternal">Desire</a> and <a href="http://blog.gurkensalat.com/2011/05/samsung-galaxy-s-ii" title="Samsung Galaxy S II – I want to read the display in the sun as well" target="_blank" class="liexternal">S II</a> to read <a href="http://blog.gurkensalat.com/tag/ebooks" title="Tag - EBooks" target="_blank" class="liexternal">books</a> on lunch breaks can become pretty addictive :-)</p>
<p>The only bad thing is that reading on an eInk display can become pretty addictive as well, but my previous readers had either no wireless capability or an useless operating system.</p>
<p>So, one day while reading through my blogs, suddenly I stumbled on this little wonder device&#8230; smallish form factor, <a href="http://blog.gurkensalat.com/tag/android" title="Tag - Android" target="_blank" class="liexternal">useful operating</a> system and an eInk display&#8230; I was hooked from the first day on :-)</p>
<p>Actually ordering this thing and getting it to germany was a little adventure in itself, but in the end, I have a reader that is very close to my dream device&#8230; Now, if only <a href="http://blog.gurkensalat.com/tag/aldiko" title="Tag - Aldiko" target="_blank" class="liexternal">Aldiko</a> could synchronize its bookmarks between devices :-)</p>
<p>&nbsp;</p>
<p><a href="http://blog.gurkensalat.com/2011/07/nook-second-generation/nook-second-generation" rel="attachment wp-att-437" target="_blank" class="liimagelink"><img class="alignleft size-full wp-image-437" title="Nook Second generation" src="http://blog.gurkensalat.com/wp-content/uploads/2011/07/nook-second-generation.jpg" alt="nook second generation All New Nook   Reader with eInk display running Android" width="480" height="480" /></a></p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/ZLT3sbjjcBs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2011/07/nook-second-generation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.gurkensalat.com/2011/07/nook-second-generation</feedburner:origLink></item>
		<item>
		<title>Samsung Galaxy S II – I want to read the display in the sun as well</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/f0pquh_eObg/samsung-galaxy-s-ii</link>
		<comments>http://blog.gurkensalat.com/2011/05/samsung-galaxy-s-ii#comments</comments>
		<pubDate>Wed, 18 May 2011 16:33:57 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[EBooks]]></category>
		<category><![CDATA[Geocaching]]></category>

		<guid isPermaLink="false">http://blog.gurkensalat.com/?p=419</guid>
		<description><![CDATA[For a very long time, I was satisfied with my HTC Desire&#8230; O.k., having to empty my email inbox every few days because the internal memory was way too little sucked. And installing a custom rom just so I could have a slightly more usable app2sd sucket a little bit more. But what really broke [...]]]></description>
				<content:encoded><![CDATA[<p>For a very long time, I was satisfied with my <a href="http://blog.gurkensalat.com/2010/04/the-android-is-landed" title="The Android is landed" target="_blank" class="liexternal">HTC Desire</a>&#8230;</p>
<p>O.k., having to empty my email inbox every few days because the internal memory was way too little sucked. And installing a custom rom just so I could have a slightly more usable app2sd sucket a little bit more. But what really broke the camel&#8217;s back was the poor visibility of the display in the sun. Which meant that I could not read any ebooks while relaxing after lunch or go to a quick geocaching hunt just as the fancy hit me.</p>
<p>So, without futher ado, since many many other people already wrote everything necessary about this cool device, here is my second android device:</p>
<p>&nbsp;</p>
<p><a href="http://blog.gurkensalat.com/2011/05/samsung-galaxy-s-ii/samsung_galaxy_sii-2" rel="attachment wp-att-440" target="_blank" class="liimagelink"><img class="alignleft size-full wp-image-440" title="Samsung Galaxy S II" src="http://blog.gurkensalat.com/wp-content/uploads/2011/05/samsung_galaxy_sII1.jpg" alt="samsung galaxy sII1 Samsung Galaxy S II   I want to read the display in the sun as well" width="511" height="399" /></a></p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/f0pquh_eObg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2011/05/samsung-galaxy-s-ii/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.gurkensalat.com/2011/05/samsung-galaxy-s-ii</feedburner:origLink></item>
		<item>
		<title>(Deutsch) Perry Rhodan bei beam-ebooks geht doch noch weiter :-)</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/fHBP66-FDMA/perry-rhodan-bei-beam-ebooks-geht-doch-noch-weiter</link>
		<comments>http://blog.gurkensalat.com/2010/06/perry-rhodan-bei-beam-ebooks-geht-doch-noch-weiter#comments</comments>
		<pubDate>Fri, 25 Jun 2010 06:25:26 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[EBooks]]></category>
		<category><![CDATA[Perry Rhodan]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=397</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.gurkensalat.com/feed?lang=de" target="_blank" class="liexternal">Deutsch</a>.</p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/fHBP66-FDMA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2010/06/perry-rhodan-bei-beam-ebooks-geht-doch-noch-weiter/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.gurkensalat.com/2010/06/perry-rhodan-bei-beam-ebooks-geht-doch-noch-weiter</feedburner:origLink></item>
		<item>
		<title>The Android is landed</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/fzTLSi3wyZc/the-android-is-landed</link>
		<comments>http://blog.gurkensalat.com/2010/04/the-android-is-landed#comments</comments>
		<pubDate>Fri, 16 Apr 2010 09:41:23 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=392</guid>
		<description><![CDATA[After long last, the german parcel service brought me my HTC Desire, the first Android device in the house :-)]]></description>
				<content:encoded><![CDATA[<p>After long last, the german parcel service brought me my HTC Desire, the first Android device in the house :-)</p>
<p><a href="/wp-content/uploads/2010/04/qita_5.jpg" class="liimagelink"><img class="size-full wp-image-393 alignleft" title="HTC Desire" src="/wp-content/uploads/2010/04/qita_5.jpg" alt="qita 5 The Android is landed" width="200" height="200" /></a></p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/fzTLSi3wyZc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2010/04/the-android-is-landed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.gurkensalat.com/2010/04/the-android-is-landed</feedburner:origLink></item>
		<item>
		<title>First OpenStreetMap-Edit after one year</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/CLKVej9Hq_Y/erster-openstreetmap-edit-nach-einem-jahr</link>
		<comments>http://blog.gurkensalat.com/2010/03/erster-openstreetmap-edit-nach-einem-jahr#comments</comments>
		<pubDate>Mon, 22 Mar 2010 15:01:29 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[OpenStreetMap]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=390</guid>
		<description><![CDATA[How time flies if you don&#8217;t pay attention&#8230; I made my last change in OpenStreetMap just about exactly one year ago:]]></description>
				<content:encoded><![CDATA[<p>How time flies if you don&#8217;t pay attention&#8230;</p>
<p>I made my last change in <a href="http://www.openstreetmap.org" target="_blank" class="liexternal">OpenStreetMap</a> just about exactly one year ago:</p>
<p><a href="/wp-content/uploads/2010/03/osm-edits.png" class="liimagelink"><img class="alignright size-full wp-image-389" title="osm-edits" src="/wp-content/uploads/2010/03/osm-edits.png" alt="osm edits First OpenStreetMap Edit after one year" width="624" height="133" /></a></p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/CLKVej9Hq_Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2010/03/erster-openstreetmap-edit-nach-einem-jahr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.gurkensalat.com/2010/03/erster-openstreetmap-edit-nach-einem-jahr</feedburner:origLink></item>
		<item>
		<title>(Deutsch) Joel und Twitter – er schreibt mir aus der Seele…</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/9o7VCogu3Ak/joel-und-twitter-er-schreibt-mir-aus-der-seele</link>
		<comments>http://blog.gurkensalat.com/2010/03/joel-und-twitter-er-schreibt-mir-aus-der-seele#comments</comments>
		<pubDate>Mon, 15 Mar 2010 11:02:04 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[Allgemeines]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=385</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.gurkensalat.com/feed?lang=de" target="_blank" class="liexternal">Deutsch</a>.</p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/9o7VCogu3Ak" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2010/03/joel-und-twitter-er-schreibt-mir-aus-der-seele/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.gurkensalat.com/2010/03/joel-und-twitter-er-schreibt-mir-aus-der-seele</feedburner:origLink></item>
		<item>
		<title>(Deutsch) Freda, eBook-Reader für Windows Mobile</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/0QYIAqGi-ZE/freda-ebook-reader-fur-windows-mobile</link>
		<comments>http://blog.gurkensalat.com/2009/12/freda-ebook-reader-fur-windows-mobile#comments</comments>
		<pubDate>Fri, 18 Dec 2009 17:21:11 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[EBooks]]></category>
		<category><![CDATA[Perry Rhodan]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=377</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.gurkensalat.com/feed?lang=de" target="_blank" class="liexternal">Deutsch</a>.</p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/0QYIAqGi-ZE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2009/12/freda-ebook-reader-fur-windows-mobile/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<georss:point>48.1296514 11.3488314</georss:point><geo:lat>48.1296514</geo:lat><geo:long>11.3488314</geo:long>	<feedburner:origLink>http://blog.gurkensalat.com/2009/12/freda-ebook-reader-fur-windows-mobile</feedburner:origLink></item>
		<item>
		<title>(Deutsch) Kein txtr vom Weinachtsmann</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/jL-eIBVqd48/kein-txtr-vom-weinachtsmann</link>
		<comments>http://blog.gurkensalat.com/2009/11/kein-txtr-vom-weinachtsmann#comments</comments>
		<pubDate>Mon, 30 Nov 2009 15:49:56 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[EBooks]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=375</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.gurkensalat.com/feed?lang=de" target="_blank" class="liexternal">Deutsch</a>.</p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/jL-eIBVqd48" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2009/11/kein-txtr-vom-weinachtsmann/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>48.1387064 11.6412547</georss:point><geo:lat>48.1387064</geo:lat><geo:long>11.6412547</geo:long>	<feedburner:origLink>http://blog.gurkensalat.com/2009/11/kein-txtr-vom-weinachtsmann</feedburner:origLink></item>
		<item>
		<title>(Deutsch) ePubRead – Bücher im Firefox lesen</title>
		<link>http://feedproxy.google.com/~r/HakansRamblings/~3/Ee_7HYlKhqI/epubread-bucher-im-firefox-lesen</link>
		<comments>http://blog.gurkensalat.com/2009/11/epubread-bucher-im-firefox-lesen#comments</comments>
		<pubDate>Tue, 24 Nov 2009 06:29:04 +0000</pubDate>
		<dc:creator>hakan</dc:creator>
				<category><![CDATA[EBooks]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.gurkensalat.com/blog/?p=372</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.gurkensalat.com/feed?lang=de" target="_blank" class="liexternal">Deutsch</a>.</p>
<img src="http://feeds.feedburner.com/~r/HakansRamblings/~4/Ee_7HYlKhqI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.gurkensalat.com/2009/11/epubread-bucher-im-firefox-lesen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>48.1296514 11.3488314</georss:point><geo:lat>48.1296514</geo:lat><geo:long>11.3488314</geo:long>	<feedburner:origLink>http://blog.gurkensalat.com/2009/11/epubread-bucher-im-firefox-lesen</feedburner:origLink></item>
	</channel>
</rss>
