Android geopoint from double

Android-geopoint-from-double-featured.png

I am having error: “The constructor GeoPoint(double, double) is undefined”. Why is it so? How to do it right? As I understand there are all necessary libraries linked and syntax seems to be right.

package com.fewpeople.geoplanner;

import android.app.Activity;
import android.os.Bundle;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

public class GeoplannerActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

final MapView mMapView = (MapView) findViewById(R.id.mapview);

MapController mMapController = mMapView.getController();

double x, y;
x= 60.113337;
y= 55.151317;

mMapController.animateTo(new GeoPoint(x, y));

mMapController.setZoom(15);

}

protected boolean isRouteDisplayed() {
return false;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>