I am working on a project that extends the Map Activity class once.This project can only have this one activity.
I would like to implement the Canvas however since from my knowledge it depends on the Activity class, this has proven to be a road block.
My query is how can I bypass this issue? Is there a way I can actually draw on a canvas minus the Activity class? Any ideas would be gladly welcome. Thanks
You can get an instance of
Canvaslike this:I use this snippet in a
BroadcastReceiverthat is not an Activity and you can see that I draw on it.