title: How should i find latitude and longitude of my location?
body: <p>I want to get latitude and longitude of my location and after, i convert there to Location. but i dont know How should i get latitude and longitude of my location?</p>
  
  <p>Location.java:</p>
  
  <pre><code>public class Location extends MapActivity {
  
  MapView map;
  MapController controller;
  GeoPoint mygeo;
  GeoPoint searchgeo;
  
  @Override
  public void onCreate(Bundle onSavedInstance){
      super.onCreate(onSavedInstance);
      setContentView(R.layout.location);
  
      map=(MapView)findViewById(R.id.mapView);
      LinearLayout zoomLayout=(LinearLayout)findViewById(R.id.zoom);
      View zoomView=map.getZoomControls();
      zoomLayout.addView(zoomView,new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,Gravity.BOTTOM+Gravity.CENTER_HORIZONTAL));
  
      map.displayZoomControls(true);
      //
      controller=map.getController();
      map.setSatellite(true);
  
      initMyLocation();
  
  
  }
  private void initMyLocation(){
      final MyLocationOverlay overlay=new MyLocationOverlay(this,map);
      overlay.enableMyLocation();
      overlay.enableCompass();
      overlay.runOnFirstFix(new Runnable(){
          public void run(){
              controller.setZoom(8);
              controller.animateTo(overlay.getMyLocation());
          }
      });
      map.getOverlays().add(overlay);
  
  }
  
  
  @Override 
  public boolean isRouteDisplayed(){
      return false;
  }
   }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Cheers</p>