문제

In the following code:

if(c.moveToFirst())

    {


     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());


     }

Where c is cursor obtained form a database where I have stored GPS data (longitude,latitude)

          Cursor c=db.getAllData();

And:

theRouteDraw(); is a method that draws a line between two GPS points.

In the way I proceeded above in my geoPointsArray[] I have all this points and then

I pass it to theRouteDraw(); where the line between this points is drawn instantly!!!!

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

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!!

Any idea how to do that?????????????????

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top