set SDLSurface a public class

When I wanted to override SDLSurface I got an error that this class is not public. And it is created directly in SDLActivity.onCreate. Can I render the SDLSurface in a separate .java file and add the createSDLSurface method to SDLActivity? This will simplify the extension of SDL2. Thank you