Possible Duplicate:
How to draw a line in android
I have to match two options as we do in match the columns by using pencil. If i click a row in one column and match that row with other suitable row in other column then the line dynamically should be drawn between two rows. Firstly i went with drag and drop functionality. but with that i can not draw line dynamically.How that is possible? Please give me suggestions.
Use the Projection from the MapView in order to convert GeoPoints to “screen” points. After that you can use Path to draw the line that you want. The first point should be specified with path.moveTo(x, y) and the rest with path.lineTo(x, y). At the end you call canvas.drawPath(path) and you are done.
Below is a code from my draw() method that draws a polygon around a set of points. Note that you do not have to use path.close() as I did on my code.
}
Refer: Dynamically draw lines between multiple GeoPoints in Android MapView