I am having the same issue. Did you solve it? thanks
On Jun 17, 12:33 pm, "Brad Gies" <[email protected]> wrote: > I’m having problems getting a MapActivity to work on 1.5r2. As far as I can > tell I’ve done everything I need to do, but what am I missing? > The Google Maps key was generated on the Google Maps website using the Debug > keystore at the location in my Android setup. > > What does "Unabletoresolvesuperclassof > Lcom/bgies/truckerphonetest/DirectionActivity;" actually mean? As far as I > can tell, the activity is setup properly.... At least it is setup exactly > the same way I have other activities setup... with the exception that it's > the only activity that has a mapView in it. > > I can't run it either on my G1 or the emulator... so I assume it's something > I am doing wrong. The project setup does have the Google APIs [Android 1.5], > and the AVD for the emulator does show the target as Google APIs when I > select it. > > From my Android Manifest : > > <application android:icon="@drawable/icon" > android:label="@string/app_name" android:debuggable="true"> > <uses-library android:name="com.google.android.maps" /> > ...... > <activity android:label="Directions" > android:name=".DirectionActivity"></activity> > ...... > </application> > > <uses-sdk android:minSdkVersion="3" /> > > <uses-permission > android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission> > <uses-permission > android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission> > <uses-permission > android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission> > <uses-permission > android:name="android.permission.INTERNET"></uses-permission> > > The DirectionActivity java file : > > public class DirectionActivity extends MapActivity implements > LocationListener > { > > @Override > public void onCreate(Bundle savedInstanceState) > { > super.onCreate(savedInstanceState); > setContentView(R.layout.mapactivity); > > ....... > > } > > The Map Activity layout. > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > > <RelativeLayout > xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > > <com.google.android.maps.MapView > android:id="@+id/map" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:enabled="true" > > android:apiKey="0c6V4m2aQickt4UqmSI_3VtVmW-y7m75TBbGr2g" > android:clickable="true" > /> > > <LinearLayout android:id="@+id/zoomview" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignBottom="@id/map" > android:layout_centerHorizontal="true" > > /> > > </RelativeLayout> > </LinearLayout> > > 06-17 11:40:57.735: INFO/ActivityManager(58): Starting activity: Intent { > comp={com.bgies.truckerphonetest/com.bgies.truckerphonetest.DirectionActivi t > y} (has extras) } > 06-17 11:40:58.105: WARN/dalvikvm(1342):Unabletoresolvesuperclassof > Lcom/bgies/truckerphonetest/DirectionActivity; (192) > 06-17 11:40:58.105: WARN/dalvikvm(1342): Link of class > 'Lcom/bgies/truckerphonetest/DirectionActivity;' failed > 06-17 11:41:05.496: DEBUG/AndroidRuntime(1342): Shutting down VM > 06-17 11:41:05.496: WARN/dalvikvm(1342): threadid=3: thread exiting with > uncaught exception (group=0x4000fe70) > 06-17 11:41:05.496: ERROR/AndroidRuntime(1342): Uncaught handler: thread > main exiting due to uncaught exception > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): > java.lang.RuntimeException:Unableto instantiate activity > ComponentInfo{com.bgies.truckerphonetest/com.bgies.truckerphonetest.Directi o > nActivity}: java.lang.ClassNotFoundException: > com.bgies.truckerphonetest.DirectionActivity in loader > dalvik.system.pathclassloa...@430f76c8 > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2194) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.ActivityThread.access$1800(ActivityThread.java:112) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.os.Handler.dispatchMessage(Handler.java:99) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.os.Looper.loop(Looper.java:123) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.ActivityThread.main(ActivityThread.java:3948) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > java.lang.reflect.Method.invokeNative(Native Method) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > java.lang.reflect.Method.invoke(Method.java:521) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 7 > 82) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > dalvik.system.NativeStart.main(Native Method) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): Caused by: > java.lang.ClassNotFoundException: > com.bgies.truckerphonetest.DirectionActivity in loader > dalvik.system.pathclassloa...@430f76c8 > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > java.lang.ClassLoader.loadClass(ClassLoader.java:573) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > java.lang.ClassLoader.loadClass(ClassLoader.java:532) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.Instrumentation.newActivity(Instrumentation.java:1097) > 06-17 11:41:05.625: ERROR/AndroidRuntime(1342): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186) > > Sincerely, > > Brad Gies > > > ----------------------------------------------------------------- > Brad Gies > 27415 Greenfield Rd, # 2, > Southfield, MI, USA > 48076www.bgies.com www.truckerphone.com www.EDI-Easy.com www.EDI-Simple.com > ----------------------------------------------------------------- > > Moderation in everything, including abstinence --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

