1
00:00:00,390 --> 00:00:02,640
And this is our main activity class.

2
00:00:02,940 --> 00:00:09,810
So as you can see here this main activity class actually extends from this app combat activity here

3
00:00:10,220 --> 00:00:12,270
at combat activities or class.

4
00:00:12,300 --> 00:00:13,050
OK.

5
00:00:13,380 --> 00:00:21,060
And this main activity class actually inherits all of the features and behaviors of this app combat

6
00:00:21,060 --> 00:00:21,600
activity.

7
00:00:21,600 --> 00:00:22,210
OK.

8
00:00:22,410 --> 00:00:27,390
And we can use those features and behaviors in our application.

9
00:00:27,780 --> 00:00:34,590
So you may wonder how we can actually find the behaviors or features or instance variables of other

10
00:00:34,590 --> 00:00:38,150
classes that are actually predefined for us.

11
00:00:38,460 --> 00:00:42,330
And the answer is to actually use the Java documentation's.

12
00:00:42,360 --> 00:00:45,220
So how we can actually find the Java documentation.

13
00:00:45,540 --> 00:00:52,500
So in order to find out about the Java documentation's or about the Android documentation's you need

14
00:00:52,500 --> 00:01:02,220
to open the Open your web browser and here just type in hushed TTP as Colon slash slash docs dot Oracle

15
00:01:02,520 --> 00:01:11,990
dot com slash Java asthe slash 8 slash docs slash API and then press enter on your keyboard.

16
00:01:12,180 --> 00:01:19,260
So as you can see here now as you can see these are all the packages that are actually predefined for

17
00:01:19,260 --> 00:01:24,960
us in order to help us create our own Android applications rapidly.

18
00:01:25,110 --> 00:01:31,140
And as you can see here these are all the packages that are available for us and these are all the classes

19
00:01:31,560 --> 00:01:37,860
that are available for us and we can use them and I highly recommend that you actually read all of these

20
00:01:37,860 --> 00:01:40,230
descriptions about these packages.

21
00:01:40,230 --> 00:01:43,380
For example this is the job of that applet package.

22
00:01:43,380 --> 00:01:43,680
OK.

23
00:01:43,680 --> 00:01:46,420
And this is the description for this package.

24
00:01:46,470 --> 00:01:54,480
So as you can see this package provides the classes necessary to create an applet and take classes and

25
00:01:54,480 --> 00:01:58,180
applet uses to communicate with its applet context.

26
00:01:58,200 --> 00:01:58,770
OK.

27
00:01:58,980 --> 00:02:05,100
Or if you want to actually vote with the network you can actually find the job of that net package as

28
00:02:05,100 --> 00:02:06,280
you can see here.

29
00:02:06,390 --> 00:02:08,140
This is the jobs that net package.

30
00:02:08,190 --> 00:02:12,940
So this package provides the classes for implement any networking applications.

31
00:02:12,960 --> 00:02:13,640
OK.

32
00:02:13,860 --> 00:02:19,020
So if you want to actually create an application that is related to the network we can actually use

33
00:02:19,020 --> 00:02:25,230
the methods and classes inside this package or as against it this is the Java that total package this

34
00:02:25,230 --> 00:02:31,860
package contains the collections Flamebird legacy collection collects classes events model dates and

35
00:02:31,860 --> 00:02:38,540
time facilities international law zation and other classes and lots of other packages.

36
00:02:38,580 --> 00:02:45,240
OK so this documentation is going to be your best friend when you want to actually create Java or Android

37
00:02:45,270 --> 00:02:51,510
applications or if you want to actually find out about documentation's about about the Android inside

38
00:02:51,510 --> 00:02:53,420
your web browser just typing here.

39
00:02:53,460 --> 00:02:57,690
Developers that Android dot com slash guide slash index that is Steimle.

40
00:02:57,690 --> 00:02:58,220
OK.

41
00:02:58,320 --> 00:03:03,270
So as you can see here for example if you want to actually create an application that uses the media

42
00:03:03,270 --> 00:03:10,090
and camera if I just click on this arrow here and here for example if I click on this media playback

43
00:03:10,090 --> 00:03:18,210
back here as you can see it's going to actually show me some are descriptions and codes that are required

44
00:03:18,510 --> 00:03:22,670
for actually creating applications that is related to media playback.

45
00:03:22,680 --> 00:03:23,670
OK.

46
00:03:24,120 --> 00:03:25,780
So hopefully that makes sense.

47
00:03:25,800 --> 00:03:33,710
So you don't actually have to know about all of these descriptions or methods now but are at the end

48
00:03:33,710 --> 00:03:36,320
of this course you will be more familiar with these concepts.

49
00:03:36,330 --> 00:03:36,790
OK.

50
00:03:36,810 --> 00:03:39,020
So let's go back inside the Android studio.

51
00:03:39,150 --> 00:03:39,870
OK.

52
00:03:39,870 --> 00:03:47,370
As I said earlier in this tutorial this main activity class actually inherits from this app Compaq's

53
00:03:47,460 --> 00:03:48,420
activity here.

54
00:03:48,450 --> 00:03:49,020
OK.

55
00:03:49,080 --> 00:03:56,400
If I hold the command key on my keyboard and press that app combat activity here as I can see this is

56
00:03:56,400 --> 00:03:58,200
the average computer activity.

57
00:03:58,380 --> 00:04:05,070
But if you are using a Windows machine you need to actually hold the control key on your keyboard and

58
00:04:05,070 --> 00:04:07,200
then click on Add combat activity here.

59
00:04:07,200 --> 00:04:12,720
OK so as you can see here these are the Misfit's that is inside after combat activity.

60
00:04:12,720 --> 00:04:13,130
OK.

61
00:04:13,200 --> 00:04:19,650
So as you can see here this Apple computer activity actually inherits from this fragment activity here.

62
00:04:19,680 --> 00:04:20,300
OK.

63
00:04:20,430 --> 00:04:28,920
I'll talk more about implements later but for now just know that these are combat activity inherits

64
00:04:29,250 --> 00:04:34,260
from this fragment activity inside this app Campana activity.

65
00:04:34,270 --> 00:04:40,390
We've got these methods and create Meffert on post create Manford and other methods.

66
00:04:40,680 --> 00:04:46,930
And inside these main activity it as you can see we are using these Smurfit uncreate Smurfit.

67
00:04:47,190 --> 00:04:55,980
So because we are actually inheriting all of the behaviors that is inside this app compared to activity

68
00:04:56,430 --> 00:04:59,860
we can actually use the Smurfette here.

69
00:05:00,040 --> 00:05:00,490
OK.

70
00:05:00,550 --> 00:05:03,690
And inside display if we can put our own implementation.

71
00:05:03,700 --> 00:05:04,630
OK.

72
00:05:05,020 --> 00:05:07,980
So let's go back inside the Apple computer activity.

73
00:05:08,140 --> 00:05:15,460
And here if I hold the command key on my keyboard and click on fragment activity here.

74
00:05:15,580 --> 00:05:22,500
Now as you can see these are the behaviors that is inside these this fragment activity here.

75
00:05:22,510 --> 00:05:23,140
OK.

76
00:05:23,440 --> 00:05:31,080
And again this fragment activity actually extends or inherits from the base fragment activity honeycomb.

77
00:05:31,090 --> 00:05:31,980
OK.

78
00:05:32,590 --> 00:05:35,130
So hopefully that makes sense.

79
00:05:35,350 --> 00:05:43,950
Let's actually close this tab here and again close this up fragment activity that java file here.

80
00:05:44,140 --> 00:05:46,450
So now I want to actually create some examples.

81
00:05:46,680 --> 00:05:47,250
OK.

82
00:05:47,410 --> 00:05:51,280
Now let's go inside the content underline made that example.

83
00:05:51,400 --> 00:05:56,230
And here just dragging up linearly out into the screen here.

84
00:05:56,240 --> 00:05:58,410
OK linearly out vertical.

85
00:05:58,720 --> 00:05:59,670
Okay.

86
00:06:00,280 --> 00:06:07,630
And just put it here and just click on these relatively out here and just find the padding attribute

87
00:06:07,630 --> 00:06:14,160
here and just open this padding attributes by just clicking on this little triangle here.

88
00:06:14,410 --> 00:06:17,800
And for the oh I'll just type in zero.

89
00:06:18,250 --> 00:06:19,470
OK.

90
00:06:20,200 --> 00:06:29,770
Now as you can see here are the feet and the height of these are linear layout is actually much padded.

91
00:06:29,800 --> 00:06:30,270
OK.

92
00:06:30,310 --> 00:06:34,420
So as you can see here are the width and height of this linear layout.

93
00:06:34,440 --> 00:06:36,050
It covers the entire screen.

94
00:06:36,130 --> 00:06:40,630
So if you just click on these linear layouts where Stichel here and here you can actually see that the

95
00:06:40,630 --> 00:06:47,740
attributes related to this linear layout lay out which as you can see it is match parent and lay out

96
00:06:47,740 --> 00:06:48,130
height.

97
00:06:48,130 --> 00:06:49,390
It is much padding.

98
00:06:49,440 --> 00:06:56,260
OK so large this will and just are dragging here and here just double click and this takes you here

99
00:06:56,680 --> 00:06:59,130
for the text just typed in animal.

100
00:07:00,250 --> 00:07:03,110
And for the idea the anemone.

101
00:07:03,130 --> 00:07:03,720
OK.

102
00:07:06,300 --> 00:07:14,610
And again dragging another takes you into this linearly out and double click on this text you for the

103
00:07:14,610 --> 00:07:23,250
text us type in here chats and for the ID TXI the chat OK.

104
00:07:24,030 --> 00:07:32,440
And again like in another text you hear just just double click on this text you hear for the text just

105
00:07:32,440 --> 00:07:40,110
type in here line and for the ID the lion OK.

106
00:07:41,670 --> 00:07:48,940
And again just like in another text you hear double click on it for the text just type in here.

107
00:07:48,980 --> 00:07:51,400
Leppert OK.

108
00:07:51,750 --> 00:07:55,250
And the idea here is the Lepard.

109
00:07:55,260 --> 00:07:56,440
OK.

110
00:07:57,480 --> 00:08:05,210
And again and drag and other text you hear just double click on this text view.

111
00:08:05,640 --> 00:08:12,490
And for the text just typing here word and for the idea to use the word ok.

112
00:08:13,050 --> 00:08:16,460
Select all of these text use here and then.

113
00:08:16,470 --> 00:08:19,720
So you might actually give padding to these text views.

114
00:08:19,830 --> 00:08:27,390
So I need to actually find the padding attributes here and here for the I'll just type in here 10 and

115
00:08:27,390 --> 00:08:31,270
I want to give Omar Amergin to these text use.

116
00:08:31,350 --> 00:08:37,910
So I just need to find in the lay out margin here and 40 or just type in here 10.

117
00:08:38,380 --> 00:08:39,470
OK.

118
00:08:40,110 --> 00:08:49,530
So now as you can see I've got five takes to use here and I gave a takes and an idea to each of these

119
00:08:49,530 --> 00:08:50,370
takes us here.

120
00:08:50,370 --> 00:08:50,750
OK.

121
00:08:50,790 --> 00:08:57,640
So that I can actually interact with these objects which are on this screen Vilda overcoats.

122
00:08:57,660 --> 00:08:58,080
OK.

123
00:08:58,080 --> 00:09:01,430
So let's actually go back and say the main activity here.

124
00:09:01,860 --> 00:09:04,970
And as you can see here this is our main activity.

125
00:09:04,980 --> 00:09:05,770
OK.

126
00:09:05,970 --> 00:09:11,330
Now I want to actually create five different classes with these names.

127
00:09:11,340 --> 00:09:11,850
OK.

128
00:09:12,000 --> 00:09:19,130
A class called animal or class called chat's a class called lion and a class called the leopard.

129
00:09:19,140 --> 00:09:20,990
And finally a class called Bird.

130
00:09:21,030 --> 00:09:21,600
OK.

131
00:09:21,690 --> 00:09:23,040
So let's see how we can do that.

132
00:09:23,040 --> 00:09:28,560
So in order to create a class you need to actually click on doubleclick on this Java folder here and

133
00:09:28,560 --> 00:09:30,300
then double click on this folder here.

134
00:09:30,420 --> 00:09:34,080
And then in it you actually click on File new Java class.

135
00:09:34,080 --> 00:09:35,450
OK.

136
00:09:35,820 --> 00:09:41,740
So for the class name just type in here element and then click on OK.

137
00:09:42,210 --> 00:09:47,850
So as you can see here this is our Animal class and this class is inside this package here.

138
00:09:47,850 --> 00:09:48,500
OK.

