processing-android
processing-android copied to clipboard
exit() not called when stopping a sketch from the GUI
If I register the exit method using registerMethod("exit", this); inside setup() it will not be called when I stop the sketch from the GUI stop button. This is important when using webcam in order to dispose it... speaking of dispose: shouldn't it be dispose() instead of exit()?
Registered exit method works fine when exiting using back button on devices.
This is not just for android, this is also in the normal processing.