Cannot run sketch on old Android kitkat device, using Processing 4 IDE

Here is the original forum post concerning this issue. Please check out the github discussion also and the author will explain why the original distributed code did not work:
https://discourse.processing.org/t/androidmode-fails-on-new-galaxy-tab-a8/41742