Welcome back.
Now, at this point, a little challenge for you tried to do the same thing for the Sinon button, so.
Pretty much all the signs and activity you can see this layout is what I want to have in the end.
So this is the activity that I want you to prepare.
So please go ahead and try to do that yourself.
I mean, you have seen everything you need to do for this and the last video where we create the sign
up activity and everything.
All right.
So try to do that yourself.
All right, so I hope you tried it.
So first of all, we will need a new activity.
Which will be our sign then activity.
So here, a sign in activity.
Then we go to our manifest, we do the same orientation and theming for assignment activity.
We prepared the different strengths that we will need for it.
And our case should just be this one here, signing description, text.
The rest is pretty much the same right then in the dimensions, we just need one other dimension because
we can use the same that we had already.
So this authentication screen margin top is a little different.
If we compare.
Sign in.
And then sign up.
And then in the sign in.
XML file here, we basically have the same code as in the sign up one.
The only difference is that we.
Now, just have email and password and to name added text is not in there.
OK, the rest is pretty much the same.
The other difference that we have is or something that I want to change is the.
But name and that should be at the very bottom, so here, putting a sign in.
Actually, here, it's fine because I think we changed it in the other one, right, so it's going to
be fine this way.
So this one is going to be putting a sign in.
So that's the XML file.
You can, of course, download it and check it out in more detail.
But we've looked through it in the last video, so I think it's not going to add that much value.
So then let's go over to sign in activity, because here we want to do the same things as we've done
here.
So we also have this set up action bar, which we're going to do the same thing with at this point.
You could, of course, go ahead and.
Yet an external.
Class for it, where you have such a function name or such a function that you can then reuse, but
I think in this case it's still just OK, all right.
To copy and pasting here is just going to be fine for now.
OK, so here, set up a bar.
But as I said, if you would go ahead and re duplicate this code over and over at one point, it would
really make sense to go ahead and create a helper class which will just take care of methods that are
reused all the time.
All the time.
Yeah.
As we see here, we used in this case to set up action bar is reduced, could of course create an object
of order, sign up activity and then called the site up action bar from there.
But that wouldn't make too much sense, I think.
So let's just do it in here directly.
And then, of course, we also want to set the flags so that we don't have the bar at the top, so let's
go and get rid of this layout bar.
Then we need a way to get here, and that's from the intro activity, so here we do the same thing as
we have done with our sign up intro sew button sign in intro that set on a click listener.
And of course, we don't want to go to the sign up activity.
We want to go to the sign in activity and the rest is pretty much the same here.
All right, and at this point, we can test it, I tried it and you could have skipped this video,
of course, if you tried it and were successful.
But basically this is going to be the approach for creating these kind of activities for us.
All right, so Produ Menasche, let's sign in this time.
And sent me to the sign up, so let me go to the sign and I get this.
This time it worked.
So sign in.
Okay, so it seems there was some bug before.
I'm not sure what it was.
Let's see if we find this bug again.
Well, that works fine.
OK, so at this point, it's finally time to look into Firebase and how to use authentication in order
to only allow the user to login if he already has an account and if it has entered the right account
details and of course, also allow him to create a new account.
All right.
So let's do that in the next video.
See you there.