DrawLine can connect multiple lines. The x,y, of a succeeding line must be the x1,y1 of the previous line. Unless you specifically 'erase' what you draw persists..
Yes, I understand what you want to do. I don't want to say impossible ...it is a matter of scaling and the tools you might need are described in the previous post.
If you use a Google Static Map,the lines that connect the points every 10 seconds are called polylines; when you use them to show walking progress, they are called a trak.
When you fire a LocationSensor 'every 10 seconds' you might not get a satellite fix and if you get a fix the LocationSensor
Accuracy might be such that it is 50 ..that is 50 meters or it could be 4 or 5 meters, seldom less than that because the GPS in an Android phone is not very precise.. What position is reported by the LS might easily be off by ten meters or so. You probably have read and done the two examples in
Exploring with Location Sensor in AI2The location sensor object is used to communicate with the global positioning satellite receiver (GPS) in your phone/tablet. When the LocationSensor communicates with the built-in GPS receiver, the GPS can determine the location of your device. The sensor can also work with network/wifi location services. Finding a location using the network uses very different techniques to determine a location. Location means, the device's present latitude and longitude or it can mean your street address. . Do the accuracy example, or download the aia again and see what happens with the raw GPS data you are trying to generate that is the basis for your plot. The example presently posts GPS coordinates I think every minute; change the timing to 10 seconds and see what happens . Depending on your timing (and actual coding) checking every 10 seconds will not give you the precision you hope for and may actually introduce positional errors.
Anyway, have fun.