1
00:00:00,830 --> 00:00:01,410
Welcome back.

2
00:00:01,640 --> 00:00:06,320
Now, at this point, a little challenge for you tried to do the same thing for the Sinon button, so.

3
00:00:07,330 --> 00:00:13,780
Pretty much all the signs and activity you can see this layout is what I want to have in the end.

4
00:00:13,790 --> 00:00:16,550
So this is the activity that I want you to prepare.

5
00:00:16,930 --> 00:00:18,970
So please go ahead and try to do that yourself.

6
00:00:18,980 --> 00:00:24,460
I mean, you have seen everything you need to do for this and the last video where we create the sign

7
00:00:24,460 --> 00:00:26,490
up activity and everything.

8
00:00:26,800 --> 00:00:27,180
All right.

9
00:00:27,190 --> 00:00:28,960
So try to do that yourself.

10
00:00:31,410 --> 00:00:33,810
All right, so I hope you tried it.

11
00:00:34,170 --> 00:00:36,870
So first of all, we will need a new activity.

12
00:00:38,120 --> 00:00:40,760
Which will be our sign then activity.

13
00:00:42,610 --> 00:00:46,150
So here, a sign in activity.

14
00:00:53,020 --> 00:01:02,380
Then we go to our manifest, we do the same orientation and theming for assignment activity.

15
00:01:04,019 --> 00:01:08,250
We prepared the different strengths that we will need for it.

16
00:01:10,710 --> 00:01:14,820
And our case should just be this one here, signing description, text.

17
00:01:15,510 --> 00:01:22,770
The rest is pretty much the same right then in the dimensions, we just need one other dimension because

18
00:01:22,770 --> 00:01:25,500
we can use the same that we had already.

19
00:01:25,500 --> 00:01:29,480
So this authentication screen margin top is a little different.

20
00:01:31,030 --> 00:01:32,080
If we compare.

21
00:01:34,530 --> 00:01:35,480
Sign in.

22
00:01:36,960 --> 00:01:38,070
And then sign up.

23
00:01:40,860 --> 00:01:43,110
And then in the sign in.

24
00:01:44,190 --> 00:01:49,530
XML file here, we basically have the same code as in the sign up one.

25
00:01:52,660 --> 00:01:55,210
The only difference is that we.

26
00:01:56,130 --> 00:01:59,970
Now, just have email and password and to name added text is not in there.

27
00:02:00,960 --> 00:02:03,190
OK, the rest is pretty much the same.

28
00:02:03,990 --> 00:02:09,660
The other difference that we have is or something that I want to change is the.

29
00:02:11,420 --> 00:02:16,280
But name and that should be at the very bottom, so here, putting a sign in.

30
00:02:18,010 --> 00:02:22,330
Actually, here, it's fine because I think we changed it in the other one, right, so it's going to

31
00:02:22,330 --> 00:02:23,060
be fine this way.

32
00:02:23,110 --> 00:02:25,110
So this one is going to be putting a sign in.

33
00:02:25,120 --> 00:02:26,590
So that's the XML file.

34
00:02:26,950 --> 00:02:30,010
You can, of course, download it and check it out in more detail.

35
00:02:30,010 --> 00:02:34,580
But we've looked through it in the last video, so I think it's not going to add that much value.

36
00:02:34,690 --> 00:02:39,970
So then let's go over to sign in activity, because here we want to do the same things as we've done

37
00:02:39,970 --> 00:02:40,260
here.

38
00:02:40,540 --> 00:02:47,080
So we also have this set up action bar, which we're going to do the same thing with at this point.

39
00:02:47,080 --> 00:02:49,480
You could, of course, go ahead and.

40
00:02:50,580 --> 00:02:51,930
Yet an external.

41
00:02:54,130 --> 00:03:00,430
Class for it, where you have such a function name or such a function that you can then reuse, but

42
00:03:00,430 --> 00:03:04,050
I think in this case it's still just OK, all right.

43
00:03:04,050 --> 00:03:07,330
To copy and pasting here is just going to be fine for now.

44
00:03:08,080 --> 00:03:10,270
OK, so here, set up a bar.

45
00:03:10,300 --> 00:03:15,760
But as I said, if you would go ahead and re duplicate this code over and over at one point, it would

46
00:03:15,760 --> 00:03:21,320
really make sense to go ahead and create a helper class which will just take care of methods that are

47
00:03:21,320 --> 00:03:22,390
reused all the time.

48
00:03:22,770 --> 00:03:23,510
All the time.

49
00:03:23,890 --> 00:03:24,150
Yeah.

50
00:03:24,160 --> 00:03:29,170
As we see here, we used in this case to set up action bar is reduced, could of course create an object

51
00:03:29,170 --> 00:03:32,710
of order, sign up activity and then called the site up action bar from there.

52
00:03:32,710 --> 00:03:35,620
But that wouldn't make too much sense, I think.

53
00:03:35,740 --> 00:03:37,990
So let's just do it in here directly.

54
00:03:39,200 --> 00:03:46,640
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

55
00:03:46,640 --> 00:03:51,260
go and get rid of this layout bar.

56
00:03:53,760 --> 00:04:02,010
Then we need a way to get here, and that's from the intro activity, so here we do the same thing as

57
00:04:02,010 --> 00:04:12,870
we have done with our sign up intro sew button sign in intro that set on a click listener.

58
00:04:14,040 --> 00:04:17,250
And of course, we don't want to go to the sign up activity.

59
00:04:17,250 --> 00:04:22,710
We want to go to the sign in activity and the rest is pretty much the same here.

60
00:04:24,140 --> 00:04:29,510
All right, and at this point, we can test it, I tried it and you could have skipped this video,

61
00:04:29,510 --> 00:04:32,360
of course, if you tried it and were successful.

62
00:04:32,600 --> 00:04:38,320
But basically this is going to be the approach for creating these kind of activities for us.

63
00:04:42,220 --> 00:04:45,910
All right, so Produ Menasche, let's sign in this time.

64
00:04:48,570 --> 00:04:53,030
And sent me to the sign up, so let me go to the sign and I get this.

65
00:04:53,060 --> 00:04:53,850
This time it worked.

66
00:04:54,480 --> 00:04:55,380
So sign in.

67
00:04:55,990 --> 00:04:59,180
Okay, so it seems there was some bug before.

68
00:04:59,700 --> 00:05:00,900
I'm not sure what it was.

69
00:05:01,440 --> 00:05:03,790
Let's see if we find this bug again.

70
00:05:04,500 --> 00:05:05,860
Well, that works fine.

71
00:05:06,330 --> 00:05:14,130
OK, so at this point, it's finally time to look into Firebase and how to use authentication in order

72
00:05:14,130 --> 00:05:20,400
to only allow the user to login if he already has an account and if it has entered the right account

73
00:05:20,400 --> 00:05:24,630
details and of course, also allow him to create a new account.

74
00:05:25,320 --> 00:05:25,850
All right.

75
00:05:25,850 --> 00:05:27,280
So let's do that in the next video.

76
00:05:27,300 --> 00:05:27,860
See you there.

