@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.maps);
    MapView mapView = (MapView) findViewById(R.id.mapview);
    handler = new Handler();
    this.activity = this;

    mapView.setBuiltInZoomControls(true);

    map = new HashMap<String, OverlayItem>();

    mapOverlays = mapView.getOverlays();

    pin_green = this.getResources().getDrawable(R.drawable.maps_pin_green);
    pin_green.setBounds(0, 0, pin_green.getIntrinsicWidth(), pin_green.getIntrinsicHeight());
    pin_orange = this.getResources().getDrawable(R.drawable.maps_pin_orange);
    pin_orange.setBounds(0, 0, pin_orange.getIntrinsicWidth(), pin_orange.getIntrinsicHeight());

    overlay = new MapItemnizedOverlay(pin_green, this);

    mapController = mapView.getController();
    mapOverlays.add(overlay);

    MessageOrchestrator.getInstance().addDrawManager(DRAWMANAGER_TYPE.MAP, this);
  }
 @Override
 public void onBackPressed() {
   Intent intent = new Intent(this, HelperActivity.class);
   HistoryManager.getInstance().stopTask();
   HistoryManager.getInstance().saveHistory(getApplicationContext());
   MessageOrchestrator.getInstance().removeDrawManager(DRAWMANAGER_TYPE.MAP);
   startActivity(intent);
   finish();
 }