SDL android live-wallpaper

Hi, Anyone of You did an android live wallpaper using SDL2? How do you prepare SdlActivity? I found this link https://bugzilla.libsdl.org/show_bug.cgi?id=1351, but i can’t make it work for me(tried to edit it for for many ways to make it similar to actual SdlActivity). But it always ends in some errors in initialization. Someone had similar problem?