I have refer the link here Drawing dotted (….)trail path instead of a line (________), in that
Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),R.drawable.greenflag);
Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),R.drawable.redflag);
In drawble.greenflag, that is image file or xml file ?
use this to draw line between two geo points