Progress bar till google map is displayed
<p>I want to display a progress bar until the map google map is displayed.Here is the coding to display  google map   .Please help me in adding progress bar until the map is displayed .
    where to do i add progress bar  </p>

<pre><code>           public class MapOverlay extends com.google.android.maps.Overlay
         {

        @Override
        public boolean draw(Canvas canvas, MapView mapView, 
         boolean shadow, long when) 
         { 



        super.draw(canvas, mapView, shadow);                   

         //---translate the GeoPoint to screen pixels---
        Point screenPts = new Point();
        mapView.getProjection().toPixels(p, screenPts);
        progressDialog.dismiss();
       //---add the marker---
       Bitmap bmp = BitmapFactory.decodeResource(
        getResources(), R.drawable.pushpin);            
      canvas.drawBitmap(bmp, screenPts.x, screenPts.y-20, null);         
     return true;

     } 
      public void onCreate(Bundle savedInstanceState) 
     {

   super.onCreate(savedInstanceState);
       setContentView(R.layout.main);

          // requestWindowFeature(Window.FEATURE_NO_TITLE);  // Suppress title bar to give more space
           setContentView(R.layout.showthemap);

             Add map controller with zoom controls
            mapView = (MapView) findViewById(R.id.mv);
            mapView.setSatellite(true);
            mapView.setTraffic(false);
            mapView.setBuiltInZoomControls(true);   // Set android:clickable=true in main.xml
            int maxZoom = mapView.getMaxZoomLevel();
            int initZoom = (int)(0.80*(double)maxZoom);
            mapControl = mapView.getController();
            mapControl.setZoom(initZoom);
            // Convert lat/long in degrees into integers in microdegrees
            latE6 =  (int) (lat*1e6);
            lonE6 = (int) (lon*1e6);
            p = new GeoPoint(latE6, lonE6);

            mapControl.animateTo(p); 

           ShowTheMap.MapOverlay s1=new ShowTheMap().new MapOverlay();   
            //---Add a location marker---
            MapOverlay mapOverlay = new MapOverlay();
            List&lt;Overlay&gt; listOfOverlays = mapView.getOverlays();
            listOfOverlays.clear();
            listOfOverlays.add(mapOverlay);
            mapView.invalidate();
             }
                 } 
</code></pre>
