Android: Black screen but touch events working - android

I notice a strange behavior for my app.
After a while while the app is Foreground or background when it tries to go to the next activity it shows a black screen but the touch events works. There is no crash and the strangest thing is that if he presses in the black screen and navigates to the next activity everything is ok BUT again from there if he goes further then again he has a black screen
This happes regardless version or device.
I am quite sure that has to do with memory and there is not much to do but if anyone had a similar behavior please comment.

Related

Back button not responsive when the splash screen is showing (new Splash API for Android 12)

Since the new Android Splash Screen API for Android 12, the back button is no longer responsive while the splash screen is showing, it looks like the UI thread has taken over completely and there is no way I can reenable the back button, this is a problem, for example, if a user accidentally opens the application, he normally clicks the back button and it's solved immediately the app closes, (or at least that was the behavior of my app before this new API), but now this a bad UX.
So I'm wondering if you have found a way to solve this and enable the Back button while the splash screen is showing while the data is loading?
I have tested many tutorials and I have downloaded the source code, and in all of them, the back button is not responsive.
For example this one:
https://github.com/philipplackner/SplashScreenAndroid12
Thank you for your help, it's really appreciated.

Flutter keyboard makes screen jump down and shows part of the same view above the current view on Android device

I am running an app built in Flutter on Pax A920 device with Android 7.1.2 installed.
Whenever the keyboard appears, the screen jumps down, and shows parts of the current view above the screen. When I dismiss the keyboard, everything goes back to normal.
This behaviour can be seen in the photo below. Sorry for the image quality, I cannot take screenshots on this device.
Photo of the unexpected behaviour
I cannot really show any code examples since this happens every time the keyboard appears, from different screens with different navigation stacks.
This works fine on iOS devices and on the Android emulators I have tried, so clearly this has something to do with the device/OS I'm running this on.
Has anyone experienced this or something similar and has an idea of how to prevent this?

Android wear app goes black screen when I tap anything

I made my first hello world app, launched it on my smart watch (Gear Live), and it looks fine.
But then, as soon as my finger touches the screen, my watch turns into a pure black screen, and my hello world app is gone. There is nothing in Logcat, not a single word.
Is there a debug setting on this or something that I overlooked?
EDIT: Did more tests, out of 20 times I launched this app from Android Studio, all 20 of them showed "Hello World" on my watch, and 17 of them crashed when I tap anything. 3 of them did not crash when I tap, and they do not crash no matter what I do (until I swipe from left, which closes it).

Android app black screen after touch

Ok i can replicate this all the time now with these steps:
Open the app then press back which takes me out the app.
Open the app up again and just after the splash page i get black screen and freezes.
On back press i call finish(); is this correct way to terminate the app? I can only assume something's not getting closed properly first time round and causing app not to load properly when i reopen it.
Anyone heard of this before?

Question about app restart after its being destroyed

When my application is killed due to being in the background for too long (Android freeing resources) or user using task killer or something similar, in onCreate I detect new application state and execute some initializations that my app needs to work properly. While this initialization is taking place, screen turn white and my app name is written in the top left corner (this is, I guess, what Android does by default). After 1-3 seconds, after all my app settings are recreated, my app screen shows up.
I am using my own header which is understandingly not shown during this "white phase".
My question is how can I customize this white screen? or at least I would be happy if I can remove my app name since it looks weird (positioned to left, no margins, etc..) and have only white screen.
I noticed that Gmail app has white screen only when similar happen.
Any ideas are welcomed.
Thanks,

Categories

Resources