That class used to exist in Android but does not anymore. If I had to guess, the device manufacturer may not have licensed Google Maps and are using one that is inconsistent with their version of the OS.
The "workaround" would be to try to wrap your call to super.onCreate() in a try/catch block, and let the user know that their device is incompatible, before exiting as gracefully as you can (which may not be all that gracefully). On Tue, Apr 12, 2011 at 8:44 AM, Michael Schollmeyer <[email protected]> wrote: > Hi, > I am getting a NoClassDefFoundError when starting a MapActivity. It works > fine on all but one device with the > fingerprint generic/wwe10/wwe10/:2.2/FRF85B/eng.flyrea.20110316.112313:user/test-keys. > Seems to be a device from efirstview.com. > I tried to add the missing class but this leads to a > different NoClassDefFoundError. I cannot run experiments because I don't > have the device myself. > Any ideas how to find a workaround? > > The exception is: > A top-level exception java.lang.NoClassDefFoundError > java.lang.NoClassDefFoundError: android.net.NetworkConnectivityListener > at com.google.android.maps.MapActivity.onCreate(MapActivity.java:199) > at > com.mictale.gpsessentials.map.WaypointMapActivity.onCreate(WaypointMapActivity.java:240) > at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) > at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) > at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) > at android.app.ActivityThread.access$2300(ActivityThread.java:125) > at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) > at android.os.Handler.dispatchMessage(Handler.java:99) > at android.os.Looper.loop(Looper.java:123) > at android.app.ActivityThread.main(ActivityThread.java:4627) > at java.lang.reflect.Method.invokeNative(Native Method) > at java.lang.reflect.Method.invoke(Method.java:521) > at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) > at dalvik.system.NativeStart.main(Native Method) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9.2 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

