Android Question Delay between app start and LoadLayout

Alessandro71

Well-Known Member
Licensed User
Longtime User
my app has a starter service and a main activity.
The starter service perform some initialization, while Activity_Create of the main activity loads the layout.
Since the initialization can take up as much as 2 seconds, there is an empty white activity (with the app name on the title bar) clearly visible before the layout is loaded and painted.
Is there a way to avoid this?
A black background on the default white activity will suffice, but it seems not to be influenced by the activity background color set in the designer.
 

cxdzbl

Active Member
Licensed User
Why? What is your app doing at that point?
The same is true with me, but when I change the style to the following, this problem doesn't happen.
SetApplicationAttribute(android:theme, "@android:style/Theme.Translucent")
 
Upvote 0
Top