Notification bar is not a part of window - android

There is a thin bar at the top of the phone screen's that shows battery and clock and notifications.
When I try to run my app in fullscreen, this bar is purely black, meaning if I paint the whole window white with
SDL_RenderClear(renderer) the color of bar does not change. So it means it is not a part of the window right?
I found two similar threads in discourse.libsdl.org that are mentioning the exact same issue.
I tried the methods that both of them mentioned but It had no effect for me.
One thread was created by devvr and the other by Starg.
I created my window with SDL_WINDOW_FULLSCREEN and SDL_WINDOW_BORDERLESS flags.
And after that I did this SDL_SetWindowFullscreen(window,SDL_TRUE);
I tested the app only on Samsung Galaxy A22, but I'm not sure if it is a device related problem.
I tested the app on Samsung Galaxy J5, and the notification bar was totally hidden there (meaning i have no issue there).
I also tested the app on Samsung Galaxy A30 and I faced the same issue (notification bar is not a part of the window)
Another thing that I noticed is that the window height that SDL_GetCurrentDisplayMode is giving me on A22 and A30 is actually a little bit bigger than the actual size (meaning the objects at the bottom of the window can't be seen in the screen).
So i think that SDL_GetCurrentDisplayMode is actually doing okay and is giving me the right width and height but because the notification bar is not considered a part of the window, I am facing this issue too.

Related

Android Bug - display area blocked - old UI fragments shining through current UI

I don't know if this is the right place to ask for a solution.
I have a weird bug on Samsung S9 Android 8.0:
The area for the 3 Buttons (Menu, Home, Back) is blocked for some apps, so their UI ends on the top border of this area although I set these buttons to not fixed so that I have to swipe up to see them. One of these apps is Instagram.
Also, there is the problem that the outline of some UI is shining through the current UI of each app, no matter which app is currently running. This UI is always the same. I removed all UI elements from an app I'm working on so that I have a completely white screen. Then I made a video because on screenshots the UI fragments are not visible:
https://der-magere-student.com/public/media/WIN_20210115_02_29_04_Pro.mp4
On the bottom you can see:
In more or less black: the android menu buttons (BUT NOT THE REAL ONES, the real ones are hidden until I swipe up)
In more or less white: 4 of the five toolbar button of Instagram (home (house icon), the magnifying glass, the Plus (inside the android home button), and the heart) The fifth is not visible
On the top you can see:
The right side of the WhatsApp toolbar: From right to left. The more icon, the call icon, and the video call icon
horizontally centered with a bit offset from the top display border you maybe can see a little bar. I don't know where this comes from
There is a lot more but it's not visible on the video and also not identifiable for me. But I can see something.
Does anyone know where this bug comes from? Is it known? How to fix it?
You're looking at OLED screen burn-in. It's not a software problem; it's actually wear on the screen that happens slowly over time.
The UI you're seeing at the bottom of the screen is Android's navigation buttons, which are particularly notorious for getting burned into the screen (see, for instance, this image from this article), because they're always in about the same spot. Newer versions of Android take measures to reduce the burn-in from them, but there's only so much that it's possible to do.
Try opening something that shows a white screen with the navigation buttons hidden: you'll see the same thing.

Unity: Navigation bar overlaying content

I'm having an issue where the Android navigation bar is convering my content on only some specific phones.
I'm setting
ApplicationChrome.statusBarState = ApplicationChrome.navigationBarState = ApplicationChrome.States.Visible;
on the opening scene but the content still remains underneath the navigation bar on Pixel 3 XL (Android 10). It appears correctly on a Galaxy S8 however so I'm at a loss :/.
For what it's worth I've tried all possible ApplicationChrome.States and I am not seeing a solution. I've also tried it both ways with the application being full screen and not full screen with no luck.
I'm using Unity 2019.1.14f1.
Thank you!

android actionbar button sizing issues

I'm having sizing issues with my action bar buttons on Android 4.2.2. On all other versions, the sizes are acceptable (thought it's still maddening that I can't get one standard size). Android 4.2 appears to be constraining the widths of the buttons (which are rectangular and not squares) down to fit within the width of whatever 4.2 feels that the action bar buttons ought to be. Is there a way to instruct the program how wide action bar buttons ought to be, or how wide my specific buttons ought to be?
I've created a test project that has my action bar background and one of my buttons, in order to try to track down the problem. Here is how it appears in the emulator for the problematic 4.2:
http://i1364.photobucket.com/albums/r728/jasonjtyler/ScreenShot2013-06-27at110115AM_zps9b1bd09a.png?t=1372349904
Here it is in 4.0, which is basically representative of the other versions also (besides 4.2):
http://i1364.photobucket.com/albums/r728/jasonjtyler/ScreenShot2013-06-27at110951AM_zpsa5734a91.png?t=1372349914
Thanks for any help.
Jason
Um... What I see in a picture in not in line with design guides and doesn't look good.
My guess is that you are trying to do something the way you shouldn't do it.
Make your button standrard sizes and in a shape of a square not a rectangle.
For cancel option there exists standard image of a cross.
I think you should use this image, but customised it to your desing.
Action bar icon size in Android 4.2

Android:Layout move upwards & about 20dp area from the top hides behind the status bar

I am using this link! for cropping an image and after getting the cropped image somehow whole layout moves about 20dp upwards and hides behind the status bar (this is random behaviour i.e happens sometimes) I tried many things to fix this problem but couldn't get to the solution, mainly because I dont know what is causing the problem.
This is a device specific problem, occurs occasionally in galaxy s and htc desire but frequently on samsung Ace. I tested app on samsung note and htc desire HD it works fine no such problem in these devices.
There is one more thing I should mention here that is: when layout hides under the status bar if I popup the keyboard by clicking on textfield layout gets back to normal i.e hidden area gets visible again. I cannot attach the image but found similar question Android - Status bar hides part of view sometimes exactly this is the behaviour of my layout.
Note:Recently i found out that camera activity is causing the layout to move upwards. To verify this start camera in samsung Galaxy Ace and just press back and note the layout movement in icons of home screen.
I have fixed the problem by using crop method inside the camera activity check this Set Camera Size - Parameters vs Intent? last answer of the post helped me to solve the issue.

White screen appears on phone when I use AndEngine

There's problem with HTC Hero and AndEngine's BaseGameActivity: when launched, there's only white screen, without any graphics like background and sprites. But I can see objects like lines (org.anddev.andengine.entity.primitive.Line) etc. and also I can tap on invisible buttons and my code is performing, but it's still white screen.
When I'm launch this app on other devices everything is ok.
Where is the problem?
Seems like my TextureAtlases was too big for this phone and I have to use several smaller atlases.

Categories

Resources