>From the MapView documentation:
"A MapView can only be constructed (or inflated) by a
MapActivity<file:///C:/Software/android/docs/reference/com/google/android/maps/MapActivity.html>.
This is because it depends on threads which access the network and
filesystem in the background; these threads must be shepherded by the
lifecycle management in
MapActivity."<file:///C:/Software/android/docs/reference/com/google/android/maps/MapActivity.html>

Don't derive from Activity, but from MapActivity.

Ludwig

2008/11/2 mikew5673 <[EMAIL PROTECTED]>

>
> Hi all,
>
> trying to build my first Google Map application a strange problem when
> using MapView and MapController makes me go nuts. I have implemented
> an Activity which imports those two classes. The project compiles and
> all permissions are given. When I try to test the application, I see
> the following logs:
>
> 11-02 20:53:47.220: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapView;)
> 11-02 20:53:47.230: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapController;)
> 11-02 20:53:47.230: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapView;)
> 11-02 20:53:47.240: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapController;)
> 11-02 20:53:47.321: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapView;)
> 11-02 20:53:47.340: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapController;)
> 11-02 20:53:47.340: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapView;)
> 11-02 20:53:47.350: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapController;)
> 11-02 20:53:47.370: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapView;)
> 11-02 20:53:47.380: WARN/dalvikvm(736): VFY: unable to find class
> referenced in signature (Lcom/google/android/maps/MapController;)
> 11-02 20:53:47.390: WARN/dalvikvm(736): VFY: unable to resolve virtual
> method 12: Lcom/google/android/maps/MapView;.getZoomLevel ()I
> 11-02 20:53:47.400: WARN/dalvikvm(736): VFY:  rejecting opcode 0x6e at
> 0x0000
> 11-02 20:53:47.410: WARN/dalvikvm(736): VFY:  rejected Lde/mw/
> navitainer/NavitainerGoogleMapsActivity;.zoomIn (Lcom/google/android/
> maps/MapView;Lcom/google/android/maps/MapController;)V
> 11-02 20:53:47.410: WARN/dalvikvm(736): Verifier rejected class Lde/mw/
> navitainer/NavitainerGoogleMapsActivity;
> 11-02 20:53:47.410: WARN/dalvikvm(736): Class init failed in
> newInstance call (Lde/mw/navitainer/NavitainerGoogleMapsActivity;)
>
> I tried to enhance the manifest with
> <uses-library android:name="com.google.android.maps" />
>
> but the application fails also to startup. The application was
> compiled with a JDK 6 und built with Eclipse plugin for Europa.
>
> Many thanks for any hint,
> Mike
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to