Okay, so this is no time we'll come over to our user interface. And the noise interface, we're going to work with several activities. We're going to have a splash activity, that is activity, crud activity, as well as the current activity. So we'll start with the splash activity. Now, what's the rollover screen? Well, of course, normally is a splash screen, if you want to, especially show you a brand for example, your logo, okay, your total your subtitle for your company, you can show it, even the splash screen now.
However, it's important to know that splash screen is normally optional, and also consistent with the amount of pain that is pressure to be shown. Okay? So, we're also going to use it for something very important in the truth easy to preload our data is okay. We're not just going to show it for aesthetic purposes, but to reach to preload our galleries in memory, such as That will never get over to there is activity or data is already pre loaded. So just filter them down okay. So we'll start here by writing our inputs.
So an important content and context input hundred is the vendor input important to view returning mission returning mission. The portal to view returning mission returning mission is important to jet image view the input anchored to jet the text view then input anchor text the top top productivity then input anxiolytics equal the consumer group providers input info composure personal then personal data in common cache manager then pasilla Gary Coleman the tutors Then personal diary, view model diary model, then I will be GitHub the confession x Did you pump the fuel pump context proper public class splash activity extents appcompat activity. So our first task will be to define of course the widgets that we're going to render in our special activity, then M is inclined view by ID. So, I was pressed Springfield's private image view m logo, then private text view, main character as the separator, the private void initialize widgets, then m logo equal to find view by ID or detected m logo, the main character are the ID two main character, then subtitle Undertaker subtitle so The next method we're going to create is a method that is going to allow us to navigate over to a dish to our next activity, okay?
Which is our various activity after a specific number of seconds or milliseconds, okay? So, this will go to sleep a thread for like around half a second, okay? And you can change that number before proceeding over to our database activity. So, this method is optional, okay, so you can exclude it from your project. So we're going to go over to our database activity after one second but half a second. So privately proceed, thread t equal to new thread the actual read public void from then try then sleep 500 milliseconds, then you tell the top 10 activity, pressure activity to do As a context, and then there is activity did class as a credit activity, then finished the current activity, then so production, we're going to catch any truck and exception he stopped this then to start to start on a thread, okay where the next method we're going to create is going to allow us to actually preload our data to be able to pull other berries and hold it in memory.
So we're going to be there calculating hospice screen. And this is going to save us some time because when these is navigating over to the receptivity, will have already pre loaded our data. So come on, say private void clear data, Gary to model that model equal to form a group project dusted off, this didn't get the review model class, the entire review more group get the data to solve this then there is the if there is not equal to null, and there is it says, zero, then cache manager or memory cache equal to Doris, in cache manager to Darris, dirty equal to first, then proceed. Okay, so you can see we're using the view model providers to clean up the view model instance. Then, you know, a mutable live data by calling design. Then of course, we register the observer using the observer method, the observer is this richer, okay?
And then we're going to be given it this will return for us. Our dad is richer, so check if it's not quote and then we'll go To add it to a cache Okay, all there is memory cache right there. Okay, then proceed to the next activity. Okay so private void shows pression emission in an emission, but from topical to an emission here's the corrode and emission. Then these are named top to bottom, then m logo. Let's start on emission, stop and emission 15 equal to an emission enters the payload and emission is the Africa unlimited in the main title will start on a mission fit in then some Tater let's start a new mission for doing this.
That pervert Doris Okay, so this is how we're showing our special mission feature. We first learn the new mission to define when define new missions. Top to bottom as well as fading, who can actually find them in the morning, just in our resources. So if we go over to the earning folder in our resources, we can see we have several animations filled in as well as the top to become so these are the ones that were using culture okay. So, we apply for doing a search filled in animations to a main character as the sub character. Then they go from Top Gun to preach to our vocal, okay.
Then once you've done that and then pre loaded So, activate, then attach this context context to this. Then super touch base context, flow pump context for the new business, then activate, protected preferred credit, then Bangor saved instance state, then superbrat on credit second step, then set content view our cloud activities fresh, then this debt initial is widgets, then this shows pressure on emotion and transit. Okay, so you can see here we've just overridden two methods. The first one is going to allow us to pump Of course often SoftLayer funds in this activity, the custom from the tracing Of course, using our cryptography library. The second method, of course, is a classical equipment which is invoked when activities created, okay. So we just invoke these two methods.
So this, this is it. This is our show our splash activity. So this is a creature let's proceed To the next part