Android Question Canvas - share instance

Saverio

Member
Licensed User
Longtime User
Hi there,

There's a way to share the canvas instance between some events?

For example:
Canvas1 declared in Sub Globals
initialized in Sub Activity_Create with some view
re-use the canvas from buttons events

It seems, once that Sub Activity_Create ends, the canvas will be freed

The question is, there's a way to use the same canvas for multiple draw,
from different events, without re-initialize the canvas each time?

Thanks
 
Top