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,
Related
Perhaps in the new version of Android, when you run the app, the app icon moves to the center of the mobile screen screen and becomes slightly larger and shows the native splash screen as the default. But this has a lot of problems.
I implemented it with flutter_launcher_icons, and white padding keeps attaching around the app icon, on the launch screen.
So I just took the old way of changing the ic_launcher icon and successfully removed the white padding. But the problem is that when I do flutte run --release instead of debug mode, white padding starts to stick again. I'm having a really hard time with this. Anyone know of this issue?
I want to know if there's some way to maintain an Android activity always on top regardless of any other apps present in the phone device that might put on top on it, except for home screen via home button, which cannot be helped.
I've checked that if a whatsapp popup displays over my activity, that activity starts showing a strange behavior.
Maybe this can be controlled by some events, but I think it's much easier to avoid anything that might put on top of app, so no strange behavior appears.
Is there any way to do that?
It depends on the level of control that you have over the device. If your app is going to be publicly available you cannot (and should not) do much to prevent other components from coming on top of the stack.
Apart from that, one thing you can do is check for UI changes through this: https://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener or/and activity lifecycle events (like onPause) and prevent whatever this "strange behaviour" is.
The inverse way to deal with this is to prevent any app from having the "Draw Over Other Apps" permission, but as I said it depends on the environment of your deployment.
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.
I have an android app which does run full screen .. done by the mainifest file
Works fine on units with seperate buttons like Samsung s3
Now running the same app on another unit without physical buttoms they will apear in the buttom of the screen see the red cirkel on attached image
I need a hint to remove this bar in code?
http://i44.tinypic.com/35ba1lj.jpg (image)
You cannot remove this bar for security and usability reasons.
Doing so would make it impossible for the user to exit your app naturally, as both the back and the home button will disappear. Not only is this terrible for usability and system consistency, but it also poses a security risk as malicious apps can take over the system by removing the bar.
I would like to make an icon counter for andoid just like the Email and the Samsung Apps applications i have seen such requests from other developers, but you all say it can't be done.
if so how come those 2 apps and other apps can do it?
do i have to make like more than one icon image and swap them or something?
is it really cant be done and why?
thanks.
you all say it can't be done.
That is because it cannot be done, except by the maker of the home screen, or via an app widget (instead of a launcher icon).
if so how come those 2 apps and other apps can do it?
Because Samsung wrote the home screen and can do what it wants with its home screen.
do i have to make like more than one icon image and swap them or something?
That will not work, as you cannot change the launcher icon at runtime.
is it really cant be done and why?
It really can be done by making an app widget, or by making your own home screen.