-1

this is my map activity and i need to put several pin locations on this map according to my own coordinates returned from my own database from another server.

public class MainActivity extends MapActivity {

MapView map;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    map = (MapView)findViewById(R.id.mvMain);
    map.setBuiltInZoomControls(true);
    MapController myMapController = map.getController();
    myMapController.setCenter(new GeoPoint((int)(7.5653 * 1E6),(int)(80.4303 * 1E6)));
    myMapController.setZoom(8);

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;
}

@Override
protected boolean isRouteDisplayed() {
    // TODO Auto-generated method stub
    return false;
}

}

Omarj
  • 1,151
  • 2
  • 16
  • 43
Chinthyfy
  • 11
  • 3

1 Answers1

0

You should make a good search before u ask.

but here an sample for similar question

previous answer

and here Good tutorial

Community
  • 1
  • 1
Omarj
  • 1,151
  • 2
  • 16
  • 43