SDL android live-wallpaper

Hi, Anyone of You did an android live wallpaper using SDL2? How do you prepare SdlActivity? I found this link, 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?