Hi @svan ,
Note that your code is not specific to Android but it’s a simple sketch structure that can also work on Processing Java.
The nice point about Processing and all the variants is that the API (the functions and how it works) is similar between Java, Python, JavaScript and Android of course. 
They should do so!! I think that the Processing website and The Coding Train’s video are the first links people look at when learning Processing and the forum comes after when they have issues 
I agree with @akenaton that a repository on GitHub is more adapted for this and you can create your own (and then share it on the forum) !