android how to draw cicles ,rectangles on canvas?
<p>In my app i am able to draw something on canvas within on touch event.</p>

<p>But problem is, at a time single item can be draw within touch event. means if i will put lineto() and moveto() then it ll draw lines.
if addCircle() ll given then circle drawn.and also for Rect and oval.</p>

<p>But i want to give different buttons for that. By default line will be drawn. If i press Circle then circle will drawn, if Rect button press then Rectangle will draw on canvas by using same touch event.</p>

<p>So i want to know what i ll write under on touch events so that it will work for every button click?
Give me a way.
Thank you</p>
