Konstantin Konopko
Konstantin Konopko

Reputation: 5422

Flash of activity with dark background while created

I have an activity with bark background launched as singleInstanse, and when it's starts the first time it has a shot white flash (white background shown) before showing its content. How can I prevent that? Or may be it is possible set up activity's default background color at start? Thanks.

Upvotes: 1

Views: 1146

Answers (2)

Esmaeel Ibraheem
Esmaeel Ibraheem

Reputation: 316

your app theme should have background color... thid color will replace the dark screen.

Upvotes: 0

Sound Conception
Sound Conception

Reputation: 5421

This is due to what is called the preview window during app launching.

A very clear explanation of the issue and how to get around it is given by Cyril Mottier in android-app-launching-made-gorgeous

Upvotes: 2

Related Questions