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: android.app.Application
E/AndroidRuntime( 246): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
...

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


<application android:icon="@drawable/icon"
android:label="@string/app_name"
android:name="roboguice.application.RoboApplication">
...
</application>

All-New Nook – Reader with eInk display running Android

July 26th, 2011 Comments off

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 blogs, suddenly I stumbled on this little wonder device… smallish form factor, useful operating system and an eInk display… I was hooked from the first day on :-)

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… Now, if only Aldiko could synchronize its bookmarks between devices :-)

 

nook second generation All New Nook   Reader with eInk display running Android

Categories: Android, EBooks Tags: , ,

Samsung Galaxy S II – I want to read the display in the sun as well

May 18th, 2011 Comments off

For a very long time, I was satisfied with my HTC Desire

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’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.

So, without futher ado, since many many other people already wrote everything necessary about this cool device, here is my second android device:

 

samsung galaxy sII1 Samsung Galaxy S II   I want to read the display in the sun as well

Categories: Android, EBooks, Geocaching Tags: ,

(Deutsch) Perry Rhodan bei beam-ebooks geht doch noch weiter :-)

June 25th, 2010 Comments off

Sorry, this entry is only available in Deutsch.

Categories: EBooks Tags: ,

The Android is landed

April 16th, 2010 Comments off

After long last, the german parcel service brought me my HTC Desire, the first Android device in the house :-)

qita 5 The Android is landed

Categories: Android Tags:

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) Joel und Twitter – er schreibt mir aus der Seele…

March 15th, 2010 Comments off

Sorry, this entry is only available in Deutsch.

Categories: Allgemeines Tags:

(Deutsch) Freda, eBook-Reader für Windows Mobile

December 18th, 2009 5 comments

Sorry, this entry is only available in Deutsch.

Categories: EBooks Tags: , ,

(Deutsch) Kein txtr vom Weinachtsmann

November 30th, 2009 Comments off

Sorry, this entry is only available in Deutsch.

Categories: EBooks Tags:

(Deutsch) ePubRead – Bücher im Firefox lesen

November 24th, 2009 Comments off

Sorry, this entry is only available in Deutsch.

Categories: EBooks Tags: ,