Android dimension screen

Hello, I have troble with determining screen size.
Anybody can send me working example how get screen width and height on
android (with fullscreen)–
View this message in context: http://sdl.5483.n7.nabble.com/Android-dimension-screen-tp47322.html
Sent from the SDL mailing list archive at Nabble.com.

SDL_Rect rc;
SDL_GetDisplayBounds(0, &rc);> ----- Original Message -----

From: SDL [mailto:sdl-bounces@lists.libsdl.org] On Behalf Of mikolaj9
Sent: Friday, August 5, 2016 11:22 PM
To: sdl at lists.libsdl.org
Subject: [SDL] Android dimension screen

Hello, I have troble with determining screen size.
Anybody can send me working example how get screen width and height on
android (with fullscreen)


View this message in context:
http://sdl.5483.n7.nabble.com/Android-dimension-screen-tp47322.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I too have issues with the same problem. I’ve tried the above solution as well as getCurrentDisplayMode and RendererOutput etc but the returned values for screen height are always short by the height of the navigation bar but never account for the status bar.

This is the only big issue I’ve face so far trying to port my test demo to Android and I’m not sure if it’s an SDL or Android (or the much more likely me) problem.

Ok,so feel free to ignore my post, as expected the problem was me.

When I polled for screen dimensions, the screen layout had not been fixed. I was getting dimensions prior to the full screen options taking effect. Once the Navigation and status bar are hidden, the screen dimensions report correctly.

Just need to work out how to delay calculating dimensions until the layout is fixed.