title: draw a route in android maps
body: <p>In the following code:</p>
  
  <p>if(c.moveToFirst()) </p>
  
  <pre><code>    {
  
  
       do{
  
  
     longitude=Integer.parseInt(c.getString(0));
  
  
     latitude=Integer.parseInt(c.getString(1));
  
  
      p = new GeoPoint(latitude,longitude);
  
  
     geoPointsArray.add(p);
  
  
     theRouteDraw();
  
  
     }while(c.moveToNext());
  
  
       }
  </code></pre>
  
  <p>Where c is cursor obtained form a database where I have stored GPS data (longitude,latitude)</p>
  
  <pre><code>          Cursor c=db.getAllData();
  </code></pre>
  
  <p>And:</p>
  
  <p>theRouteDraw();  is a method that draws a line between two GPS points.</p>
  
  <p>In the way I proceeded above in my     geoPointsArray[] I have all this points and then</p>
  
  <p>I pass it to  theRouteDraw(); where the line between this points is drawn instantly!!!!</p>
  
  <p>Now I wanna set a delay in the above code in order to put a point in  geoPointsArray[] and call theRouteDraw().......the line to be drawn step by step</p>
  
  <p>If I don't use a delay my app gets blocked for a while(not FC) until the line is drawn......cause it gets to manyy points which need to be connected on the map!!</p>
  
  <p>Any idea how to do that?????????????????</p>