Today I started experimenting with the Sony SDK to add floating windows (Small Apps in the Sony lingo) capabilities to my app. All the documentation I found was for Eclipse and, apparently, nobody thought of documenting how to use it with Android Studio.
So, here are my findings after a lot of struggle. Beware, I am not sure this is the correct way to do it, but it works! At least for me. :)