My guess is Point class is from the wrong package.
There are two Point class in the Android Library.
On Apr 16, 4:25 am, Kyle R <[EMAIL PROTECTED]> wrote:
> Any idea what is causing this? I'm trying to use the map services
> directly from another example, and the function is not recognizing the
> documented arguments.
>
> Code inside the main class is ...
>
> @Override
> public void onCreate(Bundle icicle)
> {
> super.onCreate(icicle);
>
> MapView mapView = new MapView(this);
> mMapController = mapView.getController();
> mOverlayController = mapView.createOverlayController();
>
> mLocationManager =
> (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>
> setContentView(mapView);
>
> mMapController.zoomTo(15);
>
> updateView();
>
> }
>
> public void updateView()
> {
> android.location.Location mCurrentLocation =
>
> (android.location.Location)mLocationManager.getCurrentLocation("gps");
>
> Double lat = mCurrentLocation.getLatitude()*1E6;
> Double lng = mCurrentLocation.getLongitude()*1E6;
> mPoint = new Point(lat.intValue(), lng.intValue());
>
> // This is unrecognized
> mMapController.centerMapTo(mPoint, false);
>
> MyLocationOverlay myLocationOverlay = new MyLocationOverlay(lat,
> lng);
> mOverlayController.add(myLocationOverlay, true);
> }
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---