Android Question Replace initial blank activity with Splash Screen

trueboss323

Active Member
Licensed User
Longtime User
Right now, when the user opens my app, they are greeted with a black screen that lasts for a few seconds before the main activity appears. Instead I would like it to to have a splash screen of the app's icon , and then have that icon animate to zoom out to fit as the Activity action bar icon. Or something similar. So at least this gives a nice animation. I know this is possible and it shouldn't be difficult but I was unable to find any help with this.
 

trueboss323

Active Member
Licensed User
Longtime User
It's pretty good but it wasn't exactly what I'm looking for. Take for example the Youtube app when you open it , the youtube icon immediately appears with the splash screen sliding from the bottom to the top. Then it fades after a moment and shows the main activity.
 
Upvote 0

trueboss323

Active Member
Licensed User
Longtime User
That one is based on webview, which requries to have webview loaded to start the animation. The one i'm talking about loads instatly the moment you launch the app. You see this in apps like Youtube, Maps , Facebook, Twitter, etc.
 
Upvote 0

trueboss323

Active Member
Licensed User
Longtime User
Anyone?

I tried it again by opening the Youtube app , I get instantly greeted with the splash screen when I open it. With my app, I get a blank activity, with the Title bar at top while my app loads until LoadLayout is called. But even when I place this at the very beginning of the sub I still get that blank activity lasting for a few seconds , it would be much better if I could replace that with a splash screen just like Youtube and other Google apps .
 
Upvote 0

trueboss323

Active Member
Licensed User
Longtime User
I am using the AppCompact theme. In your example when it says 'Waiting for IDE debugger to connect" there is a bit of a delay and shows that white screen. And that is the screen I am trying to replace with a splash screen.
 
Upvote 0

trueboss323

Active Member
Licensed User
Longtime User
So this the above statement is not relevant, right?

Why does it take your activity several seconds to show? What are you doing in Activity_Create (or Service_Create of the Starter service)?

This just doesn't happen with my app , I have the same issue on other projects. I did a test of creating a simple app that doesn't load too many resources , but that still has the delay. Can this be an Android limitation ? But then how could apps like Youtube , Maps, Facebook not have this issue ?
 
Upvote 0

trueboss323

Active Member
Licensed User
Longtime User
I found this old topic , that explains what I am talking about. Moreover what bluedude was saying that there is a delay between the time it takes for Activity Create / LoadLayout to be called. That thread is over 5 years now and I wonder if anything has changed, especially now that the emulators are faster , if we could still do anything about it ?
 
Upvote 0
Top