I've read every questions on this site about how to put a splash screen on app start-up to avoid the white screen problem. However the white screen still pops-up when the app has been in the background for a while. Is there anyway to either make it transparent or redirect the app to the splash screen if the app has been in the background for a while?
To get rid of the white screen which is because of android's cold start, and appears when the app loads to memory, you can add the following style item to your AppTheme.
<item name="android:windowDisablePreview">true</item>
Related
I have an app where I used the dark theme. I have also added a splash screen where I have added an animation. The background of the SplashActivity is white. When I first start the app, I get a dark screen and then the splash screen is displayed. How to get rid of that dark screen and see directly the splash screen? Thanks
Its related to Cold Start. It happens when your app starts for the first time as explained in the android documentation. However to deal with it I prefer the solution of having background drawable and set it to app theme if your Splash screen is static but in your case as you are using animations you need to use mixture of both techniques i.e. setting the splash screen theme as drawable which is loaded during cold start and later on when it finishes you render your animated stuff.
I want to get rid of the blank screen displayed few seconds after the app launch, but I only found the "Translucent Theme Solution" so far. But I cant apply this solution to my app, because the launcher activity is a log one, and with a button "disconnect" i want to be able to go back to it, without the translucent theme.
Is there anyway to do it?
Thanks a lot !
After a long time search in Google, I found many users saying to make the main Activity as translucent to avoid the white screen while opening the application.
Also, I observed that clicking on the app icon in then menu takes time to open the app when translucent is used.
Is this the correct way to avoid the white screen?
I have a problem of white screen when I relaunch background app.
I click home button and then I click on app logo, my application resume and sometimes I have a white screen.
Do you know what's happening please?
This is the time that your application takes starting, before first activity is displayed.
If you extended the application class, you can look at the onCreate method, if there is much code here.
You can minimize the effects, setting the default window background to a color or drawable in a theme:
<item name="android:windowBackground">#color/mycolor</item>
my problem is In android mobiles when click on my application it is need to show the splash screen but in micromax a110 when I start the application an white screen is coming first then after only the splash screen is appearing. But For my application I need to display only splash screen not any white screen. The application is containing the html,css and javascript coding. SO please suggest any solution for this issue
<item name="android:windowDisablePreview">true</item>
put this line in your style it prevents white screen from opening before splash
I have the same problem. I have found that white screen is due to loading of DOM. In this case solution is to show a simple HTML page first which would say something like 'loading..' and then load your actual page with full of css and javascript.