I have two points in the canvas, now I’m able to draw a line between those points like this below image by using
This code canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);

I want to draw the arc between two points like below image.

How can I draw like this.
Finally I got the solution from this code:
To calculate
startAngle, use this code:Here,
point1means where you want to start drawing the Arc.sweepAnglemeans the angle between two lines. We have to calculate that by using two points like the blue points in my Question image.