i create the window like in this example: http://wiki.maemo.org/SimpleGL_example and surfaceflinger uses egl, i hope that explains it a little and to your other question, i wouldn't know how to do that (probably one of the reasons why i am failing is because i don't know much about graphics)