I did not make an b4a-example but the lib "should" work if you do it the right way and it will work if you create the needed outputstream which you need to create in b4a and give to the right method to save the animation after adding all frames (bitmap´s)
And i said; untested.
Maybe i did a big mistake and it just crashes. Who knows