title: Android AppWidget maps activity problem
body: <p>Right.</p>
  
  <p>So I have an app widget.</p>
  
  <p>It has 4 buttons, one one of the buttons I want it to show me the current location of the user on the map.</p>
  
  <p>So - I make a new activity as below:</p>
  
  <pre><code>package com.android.driverwidget;
  
  import java.util.List;
  
  import android.os.Bundle;
  
  import com.google.android.maps.MapActivity;
  import com.google.android.maps.MapController;
  import com.google.android.maps.MapView;
  import com.google.android.maps.MyLocationOverlay;
  import com.google.android.maps.Overlay;
  
  
  
  public class MyLocation extends MapActivity{
  
  
  
          public void onCreate(Bundle icicle) {
            super.onCreate(icicle);
  
            setContentView(R.layout.main);
  
            MapView myMapView = (MapView)findViewById(R.id.mapview);
            MapController mapController = myMapView.getController();
  
            List&lt;Overlay&gt; overlays = myMapView.getOverlays();
            MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this,             myMapView);
            overlays.add(myLocationOverlay);
            myLocationOverlay.enableMyLocation();
          }
  
  
            protected boolean isRouteDisplayed() {
  
              return false;
            }
  
  
  
  
  }
  </code></pre>
  
  <p>And then I added the appropriate uses library line to the manifest</p>
  
  <pre><code>&lt;activity android:name=".MyLocation"
      android:label="myLocation"&gt;
       &lt;/activity&gt;
  
     &lt;uses-library android:name="com.google.android.maps" /&gt;
  </code></pre>
  
  <p>Ok yet - when I run the app the following errors occur, looks like it cannot find the MapActivity class, im running it on the GoogleApps 1.5 instead of normal android 1.5 as well.</p>
  
  <p><a href="http://pastebin.com/m3ee8dba2" rel="nofollow noreferrer">http://pastebin.com/m3ee8dba2</a></p>
  
  <p>Somebody plz help me - i am now dying.</p>