Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid black screen in android while my app is loading?

How to avoid black screen in android while my app is loading ? I have removed all things from onCreate to AsyncTask but still I have black screen at the beginning. My default ( first ) activity is Main and if there is one parameter I momentarily load Personal activity withou showing Main, otherwise I show Main activity. Can anyone suggest me solution ? I tried with http://blog.iangclifton.com/2011/01/01/android-splash-screens-done-right/ but it doesn't help.

like image 664
Damir Avatar asked Jan 11 '12 10:01

Damir


People also ask

Why does my phone screen go black when I open an app?

One of the reasons behind the Android phone black screen won't turn on is the incompatible apps you have installed on your device. So, to fix the black screen problem, all you need to do is get rid of incompatible applications and programs from your Android device in safe mode.

How do I get rid of black screen on apps?

To do so, power off your Android by long pressing the power key. Switch it back on in recovery mode (Volume Up Key + Home Key + Power Key) and select wipe cache partition. Deleting caches might work in bringing your device back on track by deleting the possible bugs.

How do I fix a black screen on my Android phone?

Reboot into recovery mode to fix black screen issues Power off the device. Press and hold the volume down and power button until the Android System Recovery screen appears. Navigate using volume keys and select using the power key. Select Wipe cache partition and allow to complete.

Why are my apps black?

Fix issues with apps that show in Dark theme If your app shows a different color scheme than you expect, it could be because: You changed the theme settings for your phone. You have battery saver turned on for your phone. The app doesn't offer multiple color schemes.


1 Answers

i'm not sure.

but, Try this in Manifest inside your activity

android:theme="@android:style/Theme.Translucent" 

Or

android:theme="@android:style/Theme.Light"

I have seen a good solution about splash screen... hope it useful

https://stackoverflow.com/a/8654361/762919

like image 149
April Smith Avatar answered Sep 19 '22 10:09

April Smith