Yes for building your own app, that code looks like Java code which you can't run from within Tasker, i have no desire to build my own app to do this, i already have it built in Tasker.
The purpose to this was to request Pent to allow the Flash Alert (User defined Toast) to have an icon displayed just like he does in the Tasker created error messages.