Code refactoring.
Added access to PlatformActivity.
Prepared callback for user input in DrawingView.