Solved it:
I have set different criteria:

Criteria criteria = new Criteria();
//criteria.setAccuracy(Criteria.ACCURACY_FINE);
// more criteria

If I remove those, the code works fine. . .

Stephan

2010/12/31 Stephan Wiesner <testexpe...@googlemail.com>

> Hi,
> I have a MapActivity, using Google Maps and need to center that map on my
> current position.
> The map is displayed correctly and I can even mark my current location
> with
>
>  MyLocationOverlay here = new MyLocationOverlay(this, mapView);
> here.enableCompass(); // compass is displayed
>  here.enableMyLocation(); // blue circle is displayed correctly
> mapOverlays.add(here);
>                 GeoPoint p = here.getMyLocation(); // p is null ???
> if (p != null) mapController.animateTo(p);
>
> If the blue circle marks my position correctly, how do I get this position
> so that I can animate there?
>
>
> thanks,
> Stephan
>

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to