package com.monmonja.firstDemo;

import android.os.Bundle;
import android.view.ViewGroup;

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

public class Main extends MapActivity {
	private MapView mapView;
	private MapController mapController;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.main);
        
        this.mapView = (MapView) this.findViewById(R.id.mapView);
        
        ViewGroup zoom = (ViewGroup) this.findViewById(R.id.zoom);
        zoom.addView(this.mapView.getZoomControls());
        
        this.mapController = this.mapView.getController();
        this.mapController.setZoom(16);
        this.gotoMyHome();
    }
    
    private void gotoMyHome(){
    	Double lat = 22.312381*1E6;
        Double lng = 114.225242*1E6; 
        this.mapController.setCenter(new GeoPoint(lat.intValue(),lng.intValue()));
    }

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


}