I have an OnDraw method which draws a set of rectangles [ like an indoor map].On the touch event, a new Activity Intent is called.After the new activity is called,I want to know, how to redraw the rectangles on the buttonClick event( showing a new path in the map).
Below i have mentioned what ive done so far.
- 1.I have drawn a map on a surface view using DrawRect()
- 2.Then I catch the rectangle coordinates onTouch event
- 3.Using a webService, i calculate a shortest path to a location
- 4.After catching the touched rectangle coordinates, i jump in to a new activity
- 5.I want to re draw my map(including the path) when i click A button on the new activity
Please give me an idea about how to override and redraw the On Draw method???
Thank you!