So I am having a strange behavior which I cannot explain and it only happens when I try to extend the MapActivity class. This is super simple stuff so I am bewildered why this is happening. The class is clearly there if you use the resources tab so I am curious why the Classloader fails to include it. If I dont extend from MapActivity and point to another layout it all works. Is there a trick here?
package com.noi.android.maptest; import android.os.Bundle; import com.google.android.maps.MapActivity; public class MapTest extends MapActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.maplocator_activity); } @Override protected boolean isRouteDisplayed() { return false; } } <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/main" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.android.maps.MapView android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="ABQIAAAAlCiea28KB-SECRETFROMHERE"/> </LinearLayout> 11-29 20:02:08.867: ERROR/AndroidRuntime(327): Uncaught handler: thread main exiting due to uncaught exception 11-29 20:02:08.877: ERROR/AndroidRuntime(327): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.noi.android.maptest/ com.noi.android.maptest.MapTest}: java.lang.ClassNotFoundException: com.noi.android.maptest.MapTest in loader [EMAIL PROTECTED] 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2068) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.os.Handler.dispatchMessage(Handler.java:88) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.os.Looper.loop(Looper.java:123) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.ActivityThread.main(ActivityThread.java:3742) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at java.lang.reflect.Method.invokeNative(Native Method) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at java.lang.reflect.Method.invoke(Method.java:515) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at dalvik.system.NativeStart.main(Native Method) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): Caused by: java.lang.ClassNotFoundException: com.noi.android.maptest.MapTest in loader [EMAIL PROTECTED] 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:215) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at java.lang.ClassLoader.loadClass(ClassLoader.java:453) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at java.lang.ClassLoader.loadClass(ClassLoader.java:421) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.Instrumentation.newActivity(Instrumentation.java:1096) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2060) 11-29 20:02:08.877: ERROR/AndroidRuntime(327): ... 11 more --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---