im programming an app that draws on screen several plots. The problem is that every time the window is hiden and showed again, OnDraw()is called and the window is repainted, so my graph dissapears. I cannot allow Ondraw call the ploting function whenever the window need to be repainted, because the graphs need of hard signal procesing.
My question is if there is any method to save the current state of the window, so each call to ondraw() or othe function i write, will paint what i want?
If not, how can i prevent the window to be repainted each time ondraw is called?
thanks in advance.