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

Damir picture Damir · Jan 11, 2012 · Viewed 25.1k times · Source

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.

Answer

April Smith picture April Smith · Jan 11, 2012

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