Archive for the ‘OpenStreetMap’ Category

RoboGuice – Pitfall – RuntimeException on Activities

October 4th, 2011 4 comments

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.

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 :-)

To cut to the core of the problem: If your activity is throwing this:

E/AndroidRuntime( 246): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 246): java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.gurkensalat.osm.osmsync/com.gurkensalat.osm.osmsync.HelloAndroidActivity}: java.lang.ClassCastException:
E/AndroidRuntime( 246): at

maybe you need to declare your actual application class type in AndroidManifest.xml:

<application android:icon="@drawable/icon"

First OpenStreetMap-Edit after one year

March 22nd, 2010 Comments off

How time flies if you don’t pay attention…

I made my last change in OpenStreetMap just about exactly one year ago:

osm edits First OpenStreetMap Edit after one year

Categories: OpenStreetMap Tags:

(Deutsch) Rest in Peace N810, du wurdest gerächt

July 6th, 2009 1 comment

Sorry, this entry is only available in Deutsch.

(Deutsch) Garmin Oregon 3.01-beta mit flexiblen Kartennamen

July 2nd, 2009 1 comment

Sorry, this entry is only available in Deutsch.